ispCP - Board - Support
awstats button in webtools section - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Enhancements (/forum-43.html)
+--- Thread: awstats button in webtools section (/thread-2164.html)

Pages: 1 2


awstats button in webtools section - macbishop - 01-16-2008 01:23 AM

Hello.

I attached the files to put a button in webtools for awstats

screenshot:

[Image: 332.jpeg]

Files must be placed or replaced in:

webtools.tpl and menu_webtools.tpl -> /var/www/ispcp/gui/themes/omega_original/client
awstatsicon.gif -> /var/www/ispcp/gui/themes/omega_original/images/icons
webtools.php -> /var/www/ispcp/gui/client

Have fun
--
querer es poder


RE: awstats button in webtools section - BeNe - 01-16-2008 01:42 AM

Fine, looks good!
And is this only displayed if AWStats is active ?

Greez BeNe


RE: awstats button in webtools section - macbishop - 01-16-2008 02:21 AM

BeNe Wrote:Fine, looks good!
And is this only displayed if AWStats is active ?

Greez BeNe
mmmh. not thought about... Rolleyes

I will fix it soon Wink


RE: awstats button in webtools section - gOOvER - 01-16-2008 02:56 AM

Maybe there is a new GUI Dev Smile


RE: awstats button in webtools section - macbishop - 01-16-2008 07:13 AM

[fixed]

With the fabulous tpl object of vhcs/ispCP,

In /var/www/ispcp/gui/client/webtools.php, in line 30
Code:
$tpl -> define_dynamic('active_awstats', 'page');
In line 47 I have created a new function:
Code:
function gen_page_awstats($tpl) {
    global $cfg;
    $awstats_act = $cfg['AWSTATS_ACTIVE'];
        if ( $awstats_act != 'yes'){
            $tpl->assign('ACTIVE_AWSTATS', '');                        
        }else{
            $tpl -> assign(
                        array(
                            'AWSTATS_PATH' => 'http://'.$_SESSION['user_logged'].'/stats/',
                            'AWSTATS_TARGET' => '_blank'
                        )
                      );
        }
}
gen_page_awstats($tpl);
and
Code:
<!-- BDP: active_awstats -->
<!-- EDP: active_awstats -->
to delimiting the awstas sections in webtools.tpl and menu_webtools.tpl

I have updated the attached files in the first post.

It's a pity that not full seize the tpl object, I think that is the best of ispCP, with it and a chosen CSS code can make a great system of skins.
--
querer es poder


RE: awstats button in webtools section - RatS - 01-16-2008 07:50 AM

I've added it into trunk! Thank you for your work!


RE: awstats button in webtools section - mac86 - 09-16-2009 11:20 AM

this works with 1.0.2 ????

I've tried, but no look.


RE: awstats button in webtools section - gOOvER - 09-16-2009 03:41 PM

This is allready implemented in ispCP Wink


RE: awstats button in webtools section - mac86 - 09-16-2009 11:20 PM

(09-16-2009 03:41 PM)gOOvER Wrote:  This is allready implemented in ispCP Wink


I don't know why,

but in my ISPCP (v.1.0.2) when I click over AWSTATS icon (on customer domain session ), it redirect http://host.base-domain.tld/stats (and password fails!)

how ever, if I click over "web tools" icon and next click on "web statistics", it redirect to http://customer-domain.tld/stats and password works very well...!

How can I fix it ????

Thank you!


RE: awstats button in webtools section - mac86 - 09-17-2009 10:33 PM

nobody ? :-(