Klicks not displayed

Post your Click counter digestion problems here
Post Reply
Jongenz
Posts: 1
Joined: Sat Feb 17, 2007 9:16 am

Klicks not displayed

Post by Jongenz »

Script URL: http://www.beverhood.de/ccount
Version of script: 1.1
Hosting company: Evanzo
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Searched

Write your message below:

Hey! Im using it on joomla CMS. The Counter works finde, but nothing is displayed. I think its a problem with the javascript:

<script language="Javascript" src="http://www.beverhood.de/ccount/display.php">
<!--
//-->
</script>
<p><img src="images/eigene/videos.jpg" alt=" " width="300" height="60" />&nbsp;&nbsp; <strong>6</strong> Videos wurden bereits <strong>342 </strong>mal angeschaut</p><p>&nbsp;</p><p><strong>Janines 18er Geburtstag...da blieb kein Auge trocken&nbsp;</strong></p><p><img src="images/eigene/janine.gif" alt=" " width="250" height="174" align="left" /></p><font size="2" color="#004080"><font size="2" color="#004080"><font size="2" color="#004080"><font size="2"><p><a href="ccount/click.php?id=1" target="_blank"><font size="2" color="#004080"><font size="2" color="#004080"><font size="2" color="#004080"><font size="2"><strong><strong>Abspielen!</strong></strong></font></font></font></font></a>

Thats the page with a link.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Your Javascript is ok, but something is missing. See the readme.htm again under "Displaying number of clicks on a link" - you forgot to place the second code (under 2. Add this code where you want the number of clicks to appear:).
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
festjuli
Posts: 2
Joined: Sun Mar 04, 2007 11:22 pm

Post by festjuli »

I am having the same problem and I am sure that I put it right. I tested with five counters and the admin page shows the right counts.
Could it be that I am using MS Publisher 2003 that filters the html code when generating its index-files? The generated code looks like this where the clicks are to be shown:

</span><![endif]><!--[if gte vml 1]><![if mso]><v:rect id="_x0000_s1146"
style='position:absolute;left:516pt;top:270pt;width:45pt;height:24pt;
z-index:54' filled="f" stroked="f" insetpen="t" o:cliptowrap="t">
<v:path insetpenok="f"/>
<o:lock v:ext="edit" rotation="t"/>
<o:webcomponent v:ext="edit" o:html="<script language="Javascript">ccount_display('1')</script>"
o:on="t"/>
</v:rect><![endif]><![endif]-->

<div style='position:absolute;margin-left:688px;margin-top:360px;width:60px;
height:32px;z-index:54'><script language="Javascript">ccount_display('1')</script></div>

br,
Håkan in Sweden
Mycke groove för pengarna
festjuli
Posts: 2
Joined: Sun Mar 04, 2007 11:22 pm

Problem solved (quite odd)

Post by festjuli »

In Publisher, you insert "foreign" HTML code as an extra graphical object, just like pictures and text. You cant really determine whether what you insert is going to be placed between <head> and </head> or not. And you cant insert <head> in the HTML code.

What I did was to make sure that this code was inserted first
<script language="Javascript" src="http://www.domain.com/ccount/display.php">
<!--
//-->
</script>

before the appearance HTML codes are inserted. If you have this problem in Publisher, just make a copy of your appearance HTML-codes and delete what you copied from.
Mycke groove för pengarna
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Yes, some programs create a very nasty code instead of simply allowing you to paste some code. The best thing is to open the HTML document in Notepad and manually adding the code, or you can use this trick:
http://www.phpjunkyard.com/tutorials/cut-paste-code.php
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
Doc
Posts: 2
Joined: Thu Mar 22, 2007 6:13 am

Post by Doc »

Script URL: http://www.spongedoc.extra.hu
Version of script: 1.1
Hosting company: Extra
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Searched

Hy!

I have a problem to display the count. This is my code:

Code: Select all

HEAD
<script language="Javascript" src="http://www.spongedoc.extra.hu/counter/display.php">
<!--
//-->
</script>

AND BODY:

href="http://www.spongedoc.extra.hu/counter/click.php?id=1" title="WUHU extra" target="_blank">WUHUe 2007.02.23.</a><br>Letöltve: <font color="#FFFFCC"><script language="Javascript">ccount_display('1')</script></font> alkalommal</td>
I read all topics and try it, but don't work.
No empty lines in the clicks.txt

The counter display is:
Letöltések menu in the left side, and the page is loaded inside the right iframe.
The count display only once, when i upload the modified download.html, but when i refresh the page, the count is gone.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The problem is your hosting company, they automatically add this code to every page:

Code: Select all

<body><script src="http://webmaster.extra.hu/webmaster.extra.php?scr=1&username=spongedoc&host=www.spongedoc.extra.hu&rid=-468772352" type="text/javascript"></script>
And that breaks the Javascript code generated in display.php
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
Doc
Posts: 2
Joined: Thu Mar 22, 2007 6:13 am

Post by Doc »

Thank you very much!

This is a free web hosting company :( .
But I solved the problem. I put the counter to my workplace site, and link the download.html to them.

This is a great script, and I rate it in the hotscripts.com (a big 5 of course) :wink: .
Congratulation, and thank you!
Best regards:
Doc
Post Reply