Page 1 of 1
BBclone counter
Posted: Thu Oct 27, 2005 4:56 pm
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.

Re: BBclone counter
Posted: Thu Oct 27, 2005 7:29 pm
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
Posted: Fri Oct 28, 2005 1:06 am
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
Posted: Fri Oct 28, 2005 11:15 am
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
Posted: Fri Oct 28, 2005 12:10 pm
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
Posted: Mon Nov 14, 2005 4:41 am
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
Posted: Mon Nov 14, 2005 9:36 am
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