I am assuming that the id numbers need to be linear. I was wondering if this could be changed. For time surposes I created my own clicks.txt and uploaded it to the correct folder. The id's I used correspond to item numbers so I can easily creat code without having to look up what id goes to which link. This causes a scripting error though. I've found a work around for this by placing target="_blank" in the href, but when tracking image views this is not possible. Can the script be altered to work with non linear id numbers? (I am assuming this is the cause of the scripting error i get when clicking a link)
Thanks.
id numbers
id numbers
Last edited by neicul on Thu Mar 17, 2005 5:52 pm, edited 1 time in total.
Hi,
Not exactly sure what you mean, but try this:
1. Open clicks.php in a plain text editor
2. uncomment line 39 by adding \\ before the code
If this doesn't work please give me a real-life example of what you are trying to do.
Regards
Not exactly sure what you mean, but try this:
1. Open clicks.php in a plain text editor
2. uncomment line 39 by adding \\ before the code
If this doesn't work please give me a real-life example of what you are trying to do.
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
I tried what you recomended, but it didn't change anything. On my download page I took out the target="_blank" in the links so you can see what I am talking about. Go to this page:
http://www.neicul.com/yanceyware.html
When you click on a download the status bar gets a script error and my scripts stop working.
Here are the warnings I get:
Line: 34
Char: 3
Error: Unexpected error.
Code: 0
URL: http//www.neicul.com/yesterday/yanceyware.php
Line: 1
Char: 1
Error: Object doesn't support this property or method.
Code: 0
URL: http//www.neicul.com/yesterday/yanceyware.php
Line: 301
Char: 2
Error: Unexpected error.
Code: 0
URL: http//www.neicul.com/yesterday/yanceyware.php
Any help you can give is appreciated.
Thanks.
By the way, I've given you credit for your script on the Scripting page. If this is not sufficient, let me know.
http://www.neicul.com/yanceyware.html
When you click on a download the status bar gets a script error and my scripts stop working.
Here are the warnings I get:
Line: 34
Char: 3
Error: Unexpected error.
Code: 0
URL: http//www.neicul.com/yesterday/yanceyware.php
Line: 1
Char: 1
Error: Object doesn't support this property or method.
Code: 0
URL: http//www.neicul.com/yesterday/yanceyware.php
Line: 301
Char: 2
Error: Unexpected error.
Code: 0
URL: http//www.neicul.com/yesterday/yanceyware.php
Any help you can give is appreciated.
Thanks.
By the way, I've given you credit for your script on the Scripting page. If this is not sufficient, let me know.
I think I know what the thing is: not a CCount problem, but an issue with two javascripts using the same array name.
Try this if it helps:
http://phpjunkyard.com/developers/viewt ... p?t=42#115
Regards
Try this if it helps:
http://phpjunkyard.com/developers/viewt ... p?t=42#115
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
I get this a shot. Nothing has changed. The script displays the counts fine, it increases them fine, but it is still killing my auto scrolling menu script. Here is the script that it is killing if it will help:
My other scripts don't seem to be bothered.
The weirdest thing though is with the photos. If you click on a photo the popup has the same errors, but they don't have any other scrips running in them. (i've turned on the status bar in the popups if you wanted to see).
Thanks again for your help.
Nick
EDIT:
Never mind on the photo popups. I found my error in that. Now it is fine. So there must just be some conflic between the above script and the counter. I'm glad it is that simple. (simpler than what I was thinking anyway).
Code: Select all
<!-- ********************************************************* -->
<!-- * You may use this code for free on any web page provided that --->
<!-- * these comment lines and the following credit remain in the code. --->
<!-- * TopLeft Floating Div from http://www.javascript-fx.com --->
<!-- ******************************************************** -->
function JSFX_FloatTopLeft()
{
var startX = 0, startY = 55;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
var px = document.layers ? "" : "px";
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};
el.x = startX; el.y = startY;
return el;
}
window.stayTopLeft=function()
{
var pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
var dY = (pY > startY) ? pY : startY;
ftlObj.y += (dY - ftlObj.y)/8;
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 20);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopLeft();
<!-- End Script -->
<!-- ******************************************************** -->
The weirdest thing though is with the photos. If you click on a photo the popup has the same errors, but they don't have any other scrips running in them. (i've turned on the status bar in the popups if you wanted to see).
Thanks again for your help.
Nick
EDIT:
Never mind on the photo popups. I found my error in that. Now it is fine. So there must just be some conflic between the above script and the counter. I'm glad it is that simple. (simpler than what I was thinking anyway).

I just tested your site with IE and don't get any errors when I click the download links?
All the scripts still work fine.


Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Thanks for checking it out. Maybe IE has cached something on my computer that is interfering. That is weird that I am still getting the error. I will keep trying and test it at school next week and clear my cache and see what happens.
Thanks again.
Nick
EDIT
I am sorry I suspected your script for the errors on my pages. With further investigation (the fact that noncounted download links give me errors aswell, and the fact that you don't get any errors) leads me to believe that I might have some kind of issue with my computer.
I've been upgrading my site to using php and using your script was one of my upgrades. This script is great. It is very quick and causes no delay on my page loading (other scripts i've tried have delayed my pages up to ten seconds). Thank you for the great script and your help.
Thanks again.
Nick
EDIT
I am sorry I suspected your script for the errors on my pages. With further investigation (the fact that noncounted download links give me errors aswell, and the fact that you don't get any errors) leads me to believe that I might have some kind of issue with my computer.
I've been upgrading my site to using php and using your script was one of my upgrades. This script is great. It is very quick and causes no delay on my page loading (other scripts i've tried have delayed my pages up to ten seconds). Thank you for the great script and your help.
Don't worry about it
I hope you get everything working as it should.
Regards

I hope you get everything working as it should.
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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