Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Top 10 Rated hit count

Quote Reply
Top 10 Rated hit count
Is there a way to make Links use the CGI URL on this page (so the hits can be counted) instead of using the direct URL? It's the only page that uses the direct URL.

I want the link to be like this:

http://www.domain.net/cgi-bin/links/jump.cgi?ID=3351

instead of

http://www.direct_url.com/

Does that make sense? Thanks for any help!


Joe

Quote Reply
Re: Top 10 Rated hit count In reply to
Certainly. In sub build_rate_page in nph-build.cgi replace
Code:
<a href="$link{'URL'}">$link{'Title'}</a>
with something like
Code:
<a href="$build_jump_url?ID=$link{$db_key}">$link{'Title'}</a>
or
Code:
<a href="$db_cgi_url/jump.cgi?ID=$link{'ID'}">$link{'Title'}</a>
There are two instances: for top votes and top rated.

Thomas
http://links.japanref.com
Quote Reply
Re: Top 10 Rated hit count In reply to
Thanks! That's just what I needed. It just confused me that those links weren't displayed in the same way as all the others. :-p


Joe