PHP Counter --
Add own counter styles
If you want to add your style to PHPGCount that's easy. All you
need is ten (10) images (equall height and widht), each with one
number (0,1,2,3,4,5,6,7,8,9). Save image with number 0 as 0.gif (or
0.jpg or 0.png or whatever format you use), image with 1 to 1.gif,
image with 2 to 2.gif etc... so you have 10 images, each with one
number. Now just create a new folder in the "styles" directory -
the name of the folder will be the name of your style. For example
if you want to call the style "myblue" you would create folder "gcount/styles/myblue" and
upload all ten images to that folder. Then you could just set the
myblue style as the default style or use &style=myblue (as explained
above) where you want the myblue to be used.
If your style images are different type then the default image extension
(as set in graphcount.php in $default_ext) you can add &ext=EXTENSION to
the SCRIPT SRC parameter. Replace extension with the file extension
(without a dot!) of the images of your style.
That probably sounded a bit confusing, but it really isn't, here's
Let's say you are using style web1 by default, which has GIF file format images
with .gif extension. That's why you have $default_ext set to:
$default_ext = "gif" (".gif" extensions, but without the dot (.)).
Now you created your own style myblue. You saved images as JPEG files meaning
they have .jpg extension, which is different from the default one (.gif).
That's why you must add &ext=jpg (.jpg without the dot!) to the
counter code in order to use your style counter:
If you saved the images as GIF (.gif) you would simply use http://www.domain.com/phpgcount/graphcount.php?page=PAGENAME&style=myblue
NOTE: All the styles that come with this counter by default
are GIF type!
This tutorial includes the following section: