Page 1 of 1

Klicks not displayed

Posted: Sat Feb 17, 2007 9:43 am
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.

Posted: Sat Feb 17, 2007 11:11 am
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:).

Posted: Sun Mar 04, 2007 11:34 pm
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

Problem solved (quite odd)

Posted: Mon Mar 05, 2007 12:18 am
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.

Posted: Mon Mar 05, 2007 10:48 am
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

Posted: Thu Mar 22, 2007 6:32 am
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.

Posted: Thu Mar 22, 2007 1:28 pm
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

Posted: Thu Mar 22, 2007 2:05 pm
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