Gcounter

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
Staina

Gcounter

Post by Staina »

Is some way to display in gcount issue unlike 11 but as a 00011. Advise us how at it if it walks somehow I at it did not come. Thank you
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Try this:

1. open graphcount.php in a plain text editor, like Notepad or Wordpad

2. Find line 80. This is empty line just ABOVE the text
// Print out Javascript code and exit

3. Add this code to that empty line:

$count=sprintf("%05d",$count);

This will make sure the count number is at leasst 5 digits every time (00011). Change 5 to 7 if you want 7 digits: 0000011 and so on...

4. Save, upload, test

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
staina

Post by staina »

Hallo functions it, but picture with issue will display them to a last position on of others positions picture with issue no will display see picture Image
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

You probably pasted that code in the wrong line, it works fine here:
http://www.phpjunkyard.com/gcount/test.htm

Try wth this file (don't forget to edit your website URL inside!)
http://www.phpjunkyard.com/extras/gcount_digits.zip

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
staina

Post by staina »

File gcount_digits.zip is damaged. You can again somewhere this file expose for download


Thank You
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hmmm, I probably transferred it to server in ASCII mode :) Try now, should work ok, I just tested it.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
staina

Post by staina »

Already is it OKs. Thank you
thomas

Thx so much

Post by thomas »

I think you're doing a great job with your PHPJunkYard -- your gcount helped me so much!!!
Post Reply