Hi,
I had to write this for a client for a job today, so thought I would share it - as I can imagine quite a few people would wanna use this :)
Basically, it lets you link outgoing links in your directory, as if you were just using:
<a href="<%URL%>" target="_blank"><%Title%></a>
...but still tracks the outgoing hits.
The steps are:
1) Open up /static/utils.js, and add:
if(document.images){
(new Image()).src="/cgi-bin/directory/track.cgi?ID=" + aid;
}
return true;
}
(be sure to change the /cgi-bin/directory/ to the correct place of track.cgi)
2) In link.html, find the bit that links to jump.cgi, and add this;
onclick="return trackclick(<%ID%>);"
..so it would look something like:
3) Upload the attached script to your cgi-bin, and CHMOD to 755. Be sure to edit the "path" (between '') to your path to the Glinks admin area.
Then, give it a go (get an example link, check the number of "Hits" that exist for it, and then do a test jump - and see if it increased)
Anyway, hopefully this is useful to people
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
I had to write this for a client for a job today, so thought I would share it - as I can imagine quite a few people would wanna use this :)
Basically, it lets you link outgoing links in your directory, as if you were just using:
<a href="<%URL%>" target="_blank"><%Title%></a>
...but still tracks the outgoing hits.
The steps are:
1) Open up /static/utils.js, and add:
Code:
function trackclick(aid) { if(document.images){
(new Image()).src="/cgi-bin/directory/track.cgi?ID=" + aid;
}
return true;
}
(be sure to change the /cgi-bin/directory/ to the correct place of track.cgi)
2) In link.html, find the bit that links to jump.cgi, and add this;
onclick="return trackclick(<%ID%>);"
..so it would look something like:
Code:
<a href="<%URL%>" target="_blank" onclick="return trackclick(<%ID%>);"><%Title%></a>3) Upload the attached script to your cgi-bin, and CHMOD to 755. Be sure to edit the "path" (between '') to your path to the Glinks admin area.
Then, give it a go (get an example link, check the number of "Hits" that exist for it, and then do a test jump - and see if it increased)
Anyway, hopefully this is useful to people
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

