Problem with displang the click's number

Post your Click counter digestion problems here
Post Reply
Pacimir@mail.bg

Problem with displang the click's number

Post 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:
Pacimir@mail.bg

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
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
Pacimir

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
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
Pacimir

Post by Pacimir »

Yes !!!

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

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

Post 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,
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
Pacimir

Post by Pacimir »

you'he just got another one EXELLENT!
Guest

Post 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
adrianduluman
Posts: 11
Joined: Fri Mar 25, 2005 12:44 pm

Post 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:
Visit => www.adrianduluman.tk
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
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
Post Reply