Author Topic: hits counter  (Read 17912 times)

tifo

  • Guest
hits counter
« 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?

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8374
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: hits counter
« Reply #1 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/

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
« Last Edit: December 30, 2006, 05:27:06 PM by ruebenwurzel »

tifo

  • Guest
Re: hits counter
« Reply #2 on: October 13, 2006, 06:20:58 PM »
thanks ... i'll give it a try.

Offline shlack

  • Posts: 25
Re: hits counter
« Reply #3 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

Offline Monky

  • Posts: 47
  • Gender: Male
    • Segelclub Würmsee Starnberg e.V.
Re: hits counter
« Reply #4 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

mandros

  • Guest
Re: hits counter
« Reply #5 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]
« Last Edit: December 13, 2006, 12:17:03 PM by mandros »

Offline marccouture

  • Posts: 219
  • Gender: Male
Re: hits counter
« Reply #6 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!
Marc C.

Offline ruebenwurzel

  • Betatester
  • **
  • Posts: 8374
  • Gender: Male
  • Keep on Rockin
    • Familie Gallas Online
Re: hits counter
« Reply #7 on: December 30, 2006, 05:28:17 PM »
Hello,

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

http://chcounter.org/

Matthias

Offline HF cars and sets

  • Posts: 41
  • Gender: Male
  • HF cars and sets for GP2
    • HF cars and sets for GP2
Re: hits counter
« Reply #8 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!

HF cars and sets - Site
---------------------------------------
"God shaved the queen"

Offline marccouture

  • Posts: 219
  • Gender: Male
Re: hits counter
« Reply #9 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.
Marc C.

mrrbob

  • Guest
Re: hits counter
« Reply #10 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.

###