Weblinks is a great module!
I've started one and fill it with empty categories...
Inspired by a javascript from Google Suggest, I've modified some Weblinks templates to support hardlink and at the same time visit.php redirection support.
Explanation:
I've noticed that from Google Suggest, when you pass the mouse cursor over a link, it seems to be a hardlink cuz you see the destination URL. But when you right click and copy the link address and paste it, the pasted value is a Google redirection script. And when you pass the mouse over that link again it has changed from hardlink to redirection link.
This is a javascript that dynamically change the hardlink into redirection link.
This is a great idea for web links: you can have real hard links and thus it is better for referencing and thanks to javascript when your visitor click on the link it will be a redirection link and thus you can count the click. Spiders don't support javascript so they will always see the hardlink.
How to change Weblinks to support this:
You'll have to modifi 3 templates files and update the installation of Weblinks in the admin section.
Here are the modification:
weblinks/templates/weblinks_header.html
<script language="javascript">
function weblinks_hardlink(link,lid){
link.href='http://www.goloom.com/modules/weblinks/visit.php?lid=' + lid;
return true;
}
script>
This code is to be added on the first line of the file
weblinks/templates/weblinks_link.html and
weblinks/templates/weblinks_linklist.html
replace
<a href="<{$module_url}>/visit.php?lid=<{$link.lid}>" target="_blank">
with
<a href="<{$link.url}>" onmousedown="return weblinks_hardlink(this,<{$link.lid}>)" target="_blank">
Now update the weblinks installation.
You can see the demo at
http://www.goloom.com/modules/weblinks/At the bottom of the page you'll see recent links.
Pass the mouse over a link, you'll see the hardlink.
Right click on it, and pass the mouse again. The hardlink is changed.