How to add Counter Graphics to Code ?

In case you have any problems with CrazyStat
Forum rules
Please read FAQ and search the forum before asking questions here.
Always include your CrazyStat version number.
CrazyStat documentation can be found here.

Preferred language of discussion is English so most users can profit from your threads, but German is okay as well.

Bevorzugte Sprache ist Englisch, damit möglichst viele Nutzer von den Threads profitieren können, aber Deutsch wird auch akzeptiert.
Post Reply

How to add Counter Graphics to Code ?

Post by kashi » Mon Mar 02, 2015 10:55 pm

how i can use counter graphics in this code?

<!-- BEGIN CrazyStat 1.71, Copyright (C) 2004-2012 Christopher Kramer /-->
<script type="text/javascript" language="javascript">
var jetzt=new Date();
document.write ('<img src=\"PATH/src/stat.php?breite='+screen.width+'&hoehe='+screen.height+'&colors='+screen.colorDepth+'&datei=FILE&referer='+encodeURIComponent(document.referrer)+'&t='+jetzt.getTime()+'\" alt=\" - - - By CrazyStat - - - \" title=\" - - - By CrazyStat - - - \" border="0" />');
<noscript><img src="PATH/src/stat.php?datei=FILE&referer=noJS" alt=" - - - By CrazyStat - - - " title="- - - By CrazyStat - - - " border="0" /></noscript>
<!-- END CrazyStat /-->

I mean if i want to use 02.gif counter graphics then where i have add 02.gif in above counter code ?

and in which folder i have to put this 02.gif file ?

Site Admin
Posts: 162
Joined: Sat Mar 03, 2012 10:30 pm
Location: Germany

Re: How to add Counter Graphics to Code ?

Post by Christopher » Wed Mar 11, 2015 3:50 pm

First, the counter graphic needs to be in PNG format. See FAQ on how to convert gif to png.
Next (from the install instructions):
Open "stat/usr/config.php" in a text editor (such as Notepad or PSPad) and adjust the settings according to your needs (esp. $config_rel_path). The file name of the counter file has to be set in $config_counter_file_name and $config_counter_enabled=true; must be set to activate the counter.
More information on all configuration settings
So config.php is the place to choose the graphic counter.
And the files are expected to be in stat/usr/counter_styles.
I try to support my users as best as I can.
Please support me and CrazyStat in return. Thanks.

Post Reply