Current time: 11-15-2024, 11:39 AM Hello There, Guest! (LoginRegister)


Post Reply 
awstats button in webtools section
Author Message
macbishop Offline
Junior Member
*

Posts: 68
Joined: Feb 2007
Reputation: 7
Post: #1
awstats button in webtools section
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


Attached File(s)
.zip  webtools.zip (Size: 7.1 KB / Downloads: 35)
(This post was last modified: 01-16-2008 06:41 AM by macbishop.)
01-16-2008 01:23 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: awstats button in webtools section
Fine, looks good!
And is this only displayed if AWStats is active ?

Greez BeNe
01-16-2008 01:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
macbishop Offline
Junior Member
*

Posts: 68
Joined: Feb 2007
Reputation: 7
Post: #3
RE: awstats button in webtools section
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
01-16-2008 02:21 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #4
RE: awstats button in webtools section
Maybe there is a new GUI Dev Smile
01-16-2008 02:56 AM
Visit this user's website Find all posts by this user Quote this message in a reply
macbishop Offline
Junior Member
*

Posts: 68
Joined: Feb 2007
Reputation: 7
Post: #5
RE: awstats button in webtools section
[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
(This post was last modified: 01-16-2008 08:15 AM by macbishop.)
01-16-2008 07:13 AM
Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #6
RE: awstats button in webtools section
I've added it into trunk! Thank you for your work!
01-16-2008 07:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mac86 Offline
Junior Member
*

Posts: 21
Joined: Aug 2009
Reputation: 0
Post: #7
RE: awstats button in webtools section
this works with 1.0.2 ????

I've tried, but no look.
09-16-2009 11:20 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #8
RE: awstats button in webtools section
This is allready implemented in ispCP Wink
09-16-2009 03:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mac86 Offline
Junior Member
*

Posts: 21
Joined: Aug 2009
Reputation: 0
Post: #9
RE: awstats button in webtools section
(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!
09-16-2009 11:20 PM
Find all posts by this user Quote this message in a reply
mac86 Offline
Junior Member
*

Posts: 21
Joined: Aug 2009
Reputation: 0
Post: #10
RE: awstats button in webtools section
nobody ? :-(
09-17-2009 10:33 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 7 Guest(s)