BBclone counter

Creating and modifying plugins.
Post Reply
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

BBclone counter

Post by Andyman77 »

Hiya,

I would like to know how to install BBClone to s9y?
I have poped this into the .htaccess file:

<FilesMatch "\.(php)$">
php_value short_open_tag "Off"
php_value auto_append_file "/mounted-storage/home7/sub001/sc13854-AEQJ/www/se/count.php"
</FilesMatch>
AddType application/x-httpd-php .htm .html
<FilesMatch "\.(html?)$">
php_value short_open_tag "Off"
php_value auto_append_file "/mounted-storage/home7/sub001/sc13854-AEQJ/www/se/count.php"
</FilesMatch>

And have done the requested files etc. But it doesn't appear to work too well. :?
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: BBclone counter

Post by garvinhicking »

I would suggest to put your include call snippet inside the index.php , immediately after the serendipity_Config.inc.pohp include call.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

Many thanks again, Gavin,
However, it seems to only track who's going to the main page ? is there a way so that it can track pages the visiter clicks?

Many thanks again,

Andy
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

No, the index.php is called for all Serendipity pages, so it should track everything.

I don't know bbClone, if it only trachs $_SERVER['PHP_SELF'] or __FILE__ it might only track the same file for all visits. You need to configure bbClone so that it tracks $_SERVER['REQUEST_URI']...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

many thanks Gavin,

I finally got it to work. by using the .htaccess feature that will automatically add the counter to everypage..
check this link. Mind it will ONLY work with an Apache server.

http://help.bbclone.de/index.php?n=Setup.ActivationCode
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

Hiya Garvin,

Finally got back to be able to play with BBclone.
Ok, when I added your line $_SERVER['REQUEST_URI'].
Wasn't too sure what it did, however, that seemed to not pick up the titles of the pages, but put all pages that were used to create the index page were added. including the CSS pages and all.

have seen BBclone added to quite a few blogs.
PHPopentracker, though good and detailed is rather fiddly and I have tried to get the graphics part to work, but it doesn't seem to want to do so.

I tried using the variable $header_title into the counter and that came up with a blank count.

What variable is used to print the title of a page ?

Many thanks,

Andy
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The title of the page is only available at some later point of the PHP processing, when include/genpage.inc.php is called (event hook 'genpage').

There you can use $serendipity['head_title'] and $serendipty['head_subtitle'] for page titles...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply