Count not shown on html page

Post your Click counter digestion problems here
Post Reply
Adri

Count not shown on html page

Post by Adri »

Script URL: http:///www.facilitytalents.nl/clickcount/klik.html
Version of script: 1.1
Version of PHP: ??
Hosting company: http://www.qball.nl
Have you searched THIS FORUM for your problem: Yes
(if not please do before posting)
If so, what terms did you try: Read the all

Write your message below:

Everything is working fine except the show the count link on a page.

Test page looks like this

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>klik</TITLE>
<META NAME="Author" CONTENT="© 2001 by Amazing Prosites">
<META NAME="Generator" CONTENT="NetObjects Fusion 5.0.2 for Windows">
<script language="Javascript" src="http://www.facilitytalents.nl/clickcount/display.php">
<!--
//-->
</script>

</HEAD>
<BODY>

Banner had been clicked <script language="Javascript">ccount_display('1')</script> times


</BODY>
</HTML>

The page that uses the count script is on
http://www.facilitytalents.nl/concept/index.html

Greetings

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

Post by Klemen »

Hi,

Have you been manually editing the clicks.txt file? Seems like you have an empty line at the top of the file which creates an empty variable in the Javascript code.

Try deleting the clicks.txt file, uploading an empty one and try again.

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
Adri

Post by Adri »

Hi Klemen,

No i didn't edit the clicks.txt file.

But there was a empty line ine the file, i removed it and everything is ok now.

Thanks for your quick response.
Keep up the good work
Guest

Post by Guest »

same problem here.

but i have no empty line?
Guest

Post by Guest »

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

Post by Klemen »

You are missing this code in your HEAD (between <head> and </head> tags):

<script language="Javascript" src="http://www.domain.com/ccount/display.php">
<!--
//-->
</script>


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
Guest

Post by Guest »

thank you, thank you, thank you.

I Like your skript sooo much :-) *happy**dance* ;)
Leprakawn

Total downloads are visible, but they have gone NUTS!

Post by Leprakawn »

I downloaded everything and uploaded it to my site, and I adjusted all of my download links with the proper code. I refreshed my page and was stunned to see that everything had been hit, a few of them in the thirties!

I tried it myself, but it didn't increase after I clicked on it. Do you mind taking a look and seeing what I did wrong?

Thanks! Image

Image
Guest

Post by Guest »

Oh yeah... URL might be nice, huh? Image

http://www.reaganator.com > Enter > Misc > Downloads
Guest

Post by Guest »

Okay, okay... ONE LAST NOTE!!! For some reason ID as "1" is showing a total download of: Undefined, yet the file can be downloaded. Any idea what's up with that?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

There is no link with ID 1 in your clicks.txt file and also shouldn't show up in the admin panel? You should check that.
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
Leprakawn

Post by Leprakawn »

From clicks.txt:
1%%2005/11/28%%http://www.reaganator.com/downloads/Lep - fancy.abr%%6%%PS - Fancy
From admin.php:
1 6 2005/11/28 PS - Fancy

But I'm still confused as to why the counter isn't counting my files. :?
Guest

Post by Guest »

Oops, I think I figured out why it's not counting mine poperly...

YEP!! Nevermind, I got it working! Thanks for the free code. It's the bomb! Image
Post Reply