Page 1 of 1

Count in one place, show in another

Posted: Wed Aug 03, 2005 8:31 pm
by Tharkun
Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:
I downloaded the gcount10.zip counter and it works great. But here is the tricky part: is there a way to count visits in the home page (index.html) and show that number of visits in another page (number_of_visits.html for example)?

Posted: Wed Aug 03, 2005 10:57 pm
by Klemen
Hi,

You can use Rene's add-on for viewing count in a separate page:
viewtopic.php?t=291

To not display the count try opening graphcount.php in a plain text editor (Notepad, Wordpad) and replace this code:

Code: Select all

for ($i=0;$i<strlen($count);$i++) {
    $digit=substr("$count",$i,1);
    // Build the image URL ...
    $src = $base_url . $style_folder . $digit . "." . $ext;
    echo "document.write('<img src=\"$src\" border=0>');\n";
}
with this:

Code: Select all

echo ' ';
Haven't tested it, but should work...

Regards