3 problems and 3 solutions, well i hope so.

Post your Click counter digestion problems here
Post Reply
FRAGz
Posts: 2
Joined: Tue Dec 16, 2008 9:28 pm

3 problems and 3 solutions, well i hope so.

Post by FRAGz »

Script URL: http://ppsh.co.cc/
Version of script: 1.2
Hosting company: DreamHost.com
URL of phpinfo.php: http://ppsh.co.cc/ccounter/phpinfo.php
URL of session_test.php: http://ppsh.co.cc/sessions_test.php
What terms did you try when SEARCHING for a solution: ccounter support faq

Write your message below:

Hello!

Okay, i wanted to add CCounter to our website (lol, take a look and well..)
So, hmm i don't really what is the actual problem i explain it:

First, it doesn't count the clicks on the link. It says that i have to change my actual link, wich is "http://ppsh.co.cc/myfile.zip" for "http://www.ppsh.co.cc/click.php?id=1". And hmmm the second link (http://www.ppsh.co.cc/click.php?id=1) doesn't work. It's an error page.

Second, when i add the following line: <script language="Javascript" src="http://www.ppsh.co.cc/ccount/display.ph ... ead></head>), it detroy all the page. Like, all we see is a blank page.

Third, When i add <script language="Javascript">ccount_display('1')</script>, nothing is showed. (It's the Downloaded row in my page).


Thanks!
c ya :D
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hi FRAGz,

I will try to help you.

0. Your page is not proper html code. I miss the following tags (in bold case) in your page:
<html>
<head>
.....place styles and such here....
</head>
<body>
.....place divs and content here....
</body>
</html>
For more information about html markup language, follow this link http://www.w3schools.com/html/default.asp

1. When you have added the link to your file in the ccount control panel. Add the link you get there in your page.
As example you gave "http://www.ppsh.co.cc/click.php?id=1" but in javascript code (see question 2) you have path "http://www.ppsh.co.cc/ccount/" so the link should probably be "http://www.ppsh.co.cc/ccount/click.php?id=1"

2. Place the line <script type="text/javascript" src="http://www.ppsh.co.cc/ccount/display.php"></script> between the <head>...</head> tags. See answer 0. as to what is now probably the reason it breaks the page.
Don't use the line with language="Javascript" because it does not always work in newer browsers.

3. Instead of the link <script language="Javascript">ccount_display('1')</script> use <script type="text/javascript">ccount_display('1')</script>. The language="Javascript" seems to not work in some newer browsers.

Greetings,
Henrie
FRAGz
Posts: 2
Joined: Tue Dec 16, 2008 9:28 pm

Post by FRAGz »

Hey thanks alot!
it works now. For the bad coding of the page, well i generated the page with DreamWeaver. So maybe it's not a very good software :S

thanks again!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Dreamweaver is perfect software. There are just so many possibilities (to please every user) that even with good software you can make bad pages.

When i click new and choose html page in dreamweaver, i always get the basic html, head and body tags and even more.

But i am glad you got it working.

Greetings,
Henrie

PS. In Dreamweaver you can check the markup of your page via "File"> "Validate" > "Markup". Or use shortkey Shift+F6

You can also use the official W3C validator to check errors in your page, you can submit the link to your page here http://validator.w3.org/ (don't be scared for the many errors and/or warnings and for not understanding what the errors mean).
Post Reply