WebsiteBaker Community Forum

General Community => Global WebsiteBaker 2.8.x discussion => Topic started by: tifo on October 12, 2006, 10:32:02 AM

Title: hits counter
Post by: tifo on October 12, 2006, 10:32:02 AM
Hi,

I need a hit counter on WB sites as a client is asking for it. I do not want to use 3rd party counters.

I have read another topic on this forum stating that this feature is not going to be in WB.

Has some created a module or code snippet to allow me to use a hit counter on a WB site?
Title: Re: hits counter
Post by: ruebenwurzel on October 12, 2006, 11:40:31 AM
Hello,

in the german subforum we have discussed about chcounter. Don't worry it is multilingual.

Download it from here:

http://chcounter.org/ (http://chcounter.org/)

Unzip the package and copy it in chCounter Folder and install the counter.

To get it working with WB add in the index.php of your Template the following code at the bottom above the </body> Tag

Code: [Select]
<?php
$chCounter_visible 
0;
$chCounter_page_title PAGE_TITLE;
$chCounter_force_new_db_connection FALSE;
include(
WB_PATH.&#39;/chCounter/counter.php&#39;);
?>

Have fun

Matthias
Title: Re: hits counter
Post by: tifo on October 13, 2006, 06:20:58 PM
thanks ... i'll give it a try.
Title: Re: hits counter
Post by: shlack on November 12, 2006, 05:48:48 PM
Hello,

in the german subforum we have discussed about chcounter. Don't worry it is multilingual.

Download it from here:

http://www.christoph-bachner.net/chcounter/en/

...


Looks fine, but it seems that http://www.christoph-bachner.net/chcounter/en/ doesn't work, is there another place to download Chcounter ?

Thanks
Title: Re: hits counter
Post by: Monky on November 12, 2006, 08:05:17 PM
Indeed, the site looks down.
On one of my WB sites I have BBclone doing counter/statistics. I suites me well: simple and just as easy to integrate.
You can download that here: http://bbclone.de/ (and its multilingual too :D)
Good luck
Sebastian
Title: Re: hits counter
Post by: mandros on December 13, 2006, 11:28:46 AM
For those searching for the chcounter 3.1.1 see attachment!

PS: It works great!

 :wink:

[gelöscht durch Administrator]
Title: Re: hits counter
Post by: marccouture on December 13, 2006, 01:31:20 PM
All I can say is... wow.  chCounter is a very, VERY cool addition to WebsiteBaker.  It's just what a client of mine was looking for, simple statistics with fine control.  Many thanks!
Title: Re: hits counter
Post by: ruebenwurzel on December 30, 2006, 05:28:17 PM
Hello,

here is the new url, where chcounter could be downloaded:

http://chcounter.org/ (http://chcounter.org/)

Matthias
Title: Re: hits counter
Post by: HF cars and sets on December 31, 2006, 02:07:42 PM
If you want to have this wonderful chCounter visible on each page of you site, you have to add this code in your used template in the place you want to have the counter showed:
Code: [Select]
<?php
$chCounter_visible 
1;
$chCounter_status = &#39;active&#39;;
$chCounter_page_title PAGE_TITLE;
$chCounter_force_new_db_connection FALSE;
include( 
WB_PATH.&#39;/chcounter/counter.php&#39; );
?>
The  prerequisites are:
1) The chCounter needs to be installed in the WB folder where you can find the folders "admin", "account", "pages" etc.
2) The chCounter  MySQL data bank needs to be the same like the WB data bank
3) The code only needs to be only ONE time in your page/template or the counter will count every visit more than 1 time!
Title: Re: hits counter
Post by: marccouture on September 07, 2007, 02:44:35 PM
I'm trying to hide the counter on a page, and the $chCounter_visible = 0; variable doesn't seem to work.  I've tried moving it around in the template and there is no difference.

See it here: http://pages.usherbrooke.ca/spss

How can I hide the counter?  Thanks.
Title: Re: hits counter
Post by: mrrbob on January 31, 2008, 02:41:16 AM
I use this on just about everything.

http://www.xav.com/scripts/axs/

You can mod the footer or for some templates you can use the form in settings on the wb menu and drop the ax tracking code in the footer section and your done - after the install of the ax system on your site of course. Just upload the code to your cgi-bin in its own dir like this /cgi-bin/ax/ and chmod the ax.pl and ax-admin.pl to 755 and your set.

Just though I would toss this out there if anyone was interested. Anyone who needs more help to set this up just reply and I'll try to help.

###