Page 1 of 1

Problem with displang the click's number

Posted: Fri Mar 11, 2005 4:31 pm
by Pacimir@mail.bg
I do everything said in the ReadMe file, but the script doesn't work.

I get the message undefined in the place of number.

Permisions are 666 (even i tested with 777), but it still doesn't work.

I tried on my Windows machine (i have php :) ) and on a remote host with gento, but the same error :(.

plS help me with this GREAT script :lol:

Posted: Fri Mar 11, 2005 4:32 pm
by Pacimir@mail.bg
Opss...
I forgot to say, that the counter work (i can see the click i admin panel) , only the disply function doesn't work

Posted: Fri Mar 11, 2005 4:37 pm
by Klemen
Hi,

Probably you entered the wrong ID number in
ccount_display()
function.

What's the URL of your installation (the hosted one), I'll have a look.

P.s.: Pozdrav u Srbiju :D !

Regards

Posted: Fri Mar 11, 2005 9:54 pm
by Pacimir
Here is the URL:
http://lukovit.com/bg/firmi_catalog.htm

I'm sorry but it is in bulgarian, but i think you can see what you need :D

http://www.lukovit.com/bg/test/ - installation folder on server

Posted: Sat Mar 12, 2005 12:13 pm
by Klemen
Hi,

I found the problem - your xaramenu.js javascript uses a variable with the same name as CCount javascript so it messes up the values.

SOLUTION:
Open "display.php" in a plain text editor and make these changes:

LINE 38
change from
echo "var p = new Array();\n";
to
echo "var ccount_link = new Array();\n";

LINE 45
change
echo "p[$id]=$count;\n";
to
echo "ccount_link[$id]=$count;\n";

LINE 51
change
document.write(p[id]);
to
document.write(ccount_link[id]);


Save, upload, test and let me know if it worked.

Regards

Posted: Sat Mar 12, 2005 12:41 pm
by Pacimir
Yes !!!

I works!
Thanks a LOT !
You have one virtual beer from me :) :wink:

cheers :lol:

Posted: Sat Mar 12, 2005 2:04 pm
by Klemen
Welcome, thanks for the beer :D

If you like the script please consider rating it or even writing a review at
http://www.hotscripts.com/Detailed/36874.html

Regards,

Posted: Sat Mar 12, 2005 8:13 pm
by Pacimir
you'he just got another one EXELLENT!

Posted: Fri Mar 25, 2005 1:31 pm
by Guest
I have same problem like Pacimir :oops: . Can you help me :?: The web page is http://www.adrianduluman.dap.ro/ro/carti.html

Posted: Fri Mar 25, 2005 1:42 pm
by adrianduluman
Anonymous wrote:I have same problem like Pacimir :oops: . Can you help me :?: The web page is http://www.adrianduluman.dap.ro/ro/carti.html
That's me but I forgot to log in :roll:

Posted: Fri Mar 25, 2005 2:57 pm
by Klemen
Hi,

You have installed CCount version 1.0 - your version of CCount doesn't support this function. Download the new version (1.1) and install it. You will get instructions for displaying clicks in your readme file.

By the way your HTML code is messed up, for example:

Code: Select all

   <tr>
       <td><a href="http://www.adrianduluman.dap.ro/ro/ccount/click.php?id=1" target="_blank"</td>Agarbiceanu Ion - Fefeleaga
       <td width="25%%"><font color="white"><script language="Javascript">ccount_display('1')</script></font> download-uri</td>
   </tr> 
Your <a tag isn't closed with a ">" and there is no <td> and </a> tag. Should be:

Code: Select all

   <tr>
       <td><a href="http://www.adrianduluman.dap.ro/ro/ccount/click.php?id=1" target="_blank"></td>Agarbiceanu Ion - Fefeleaga</a></td>
       <td width="25%%"><font color="white"><script language="Javascript">ccount_display('1')</script></font> download-uri</td>
   </tr> 
Regards