Page 1 of 1

Hit Counter

Posted: Fri Jun 24, 2016 8:16 am
by billyjoe
Script URL:
Version of script: gcount131
Hosting company: xtremesurf
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: hit counter

Write your message below:

Hello Klemen:

The graphical hit counter has been working well on my cousin's website's welcome page, http://www.guyarseneau.com . Last month and again today however, the unique hits that had reached 237913 suddenly dropped to 43. Manually I reset them to the right number they were. Would you please let me know what I may have wrongly configured to cause such an error, and what can I do to prevent it from happening again?

Thank you and regards,

BillyJoe

PS - BTW, I'm the same Billy Joe that several years ago you helped place two additional images on the graphical hit counter in order to form different sections of a guitar to integrate on my website.

Re: Hit Counter

Posted: Sat Jun 25, 2016 6:46 am
by Klemen
Hi,

This happens if the text database gets corrupted.

However, are you sure you are using the latest version, it should be fairly resistant to it? Tr opening the counter PHP file on the server in a plain text editor and see what the "Version:" line says.

Re: Hit Counter

Posted: Sun Jun 26, 2016 6:17 am
by billyjoe
Hello Klemen:

Sure enough, you thought correctly regarding the version number. I thought I had upgraded to 1.31 because I've had that file on my side since you made the upgrade. Problem is, it seems I never uploaded that version onto the server. The file on the server was still version 1.1.

Now that the correct file, 1.31, is on the server, it didn't show with everything on 666 permissions. I had to set everything at 755 permissions in order to see the counter.
Also, the counter numbers are now displaying vertically instead of horizontally (as they did with previous version). What can I do? This happened before and I did something that fixed it -- but now I can't remember what it was! Please help?

The website is www.guyarseneau.com, and the counter is on the Welcome, or spash page.

Thank you Klemen,

Billy Joe

Re: Hit Counter

Posted: Sun Jun 26, 2016 7:25 am
by billyjoe
Hello again Klemen:

By substituting this line in the new version...

Code: Select all

echo 'document.write(\'<img src="'.$base_url . $style_dir . substr($count,$i,1) . '.' . $ext .'" border="0" />\');';
}
with this line from the older 1.1 version...

Code: Select all

echo 'document.write(\'<img src="'.$base_url . $style_dir . substr($count,$i,1) . '.' . $ext .'" style="max-width:10%; height:auto;" border="0" alt="Visitors">\');'; 
    }

it seems to fix everything. The numbers of the counter now display correctly, horizontally. I don't remember how or where I got this line, but, is it ok to use it on the new version?

What about having to keep permissions at 755, otherwise the counter display?

Regards,

Billy Joe

Re: Hit Counter

Posted: Mon Jun 27, 2016 8:52 am
by Klemen
Sure, that's just the outputted Javascript and it can be formatted in any way you like.

I'm not sure about the permissions, this depends on the server. However, if it worked with old ones before I see no reason why it wouldn't with 1.3.1. Perhaps you should try a clean installation in a new folder and see if that helps?

Re: Hit Counter

Posted: Fri Jul 01, 2016 2:24 am
by billyjoe
Thanks very much Klemen.
Regarding permissions, the requirement must be as you say, due to the server. The counter will
display only with 755 permissions. So long as it's safe and doesn't invite hackers I guess it's OK.

Please have an espresso or a beer on me.

Regards,
Billy Joe