Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to open TOP RATED links in a new window?

Quote Reply
How to open TOP RATED links in a new window?
Hi,

I use links 2.0 in frames and the top rated links don't open in a new window. How can I make the top rated links open in a new window? Thanks.

Steve
Quote Reply
Re: [zebra4] How to open TOP RATED links in a new window? In reply to
Hi Steve,

find sub build_rate_page in the file nph-build.cgi near the end of the file.

then find the line:

$top_votes .= qq~<tr><td align=center>$link{'Rating'}</td><td align=center>$link{'Votes'}</td><td><a href="$link{'URL'}">$link{'Title'}</a></td></tr>\n~;

and replace it with:

$top_votes .= qq~<tr><td align=center>$link{'Rating'}</td><td align=center$link{'Votes'}</td><td>
<a href='$db_cgi_url/jump.cgi?ID=$link{'ID'}' target='_blank'>$link{'Title'}</a></td></tr>\n~;

then find a few lines below this line:

$top_rated .= qq~<tr><td align=center>$link{'Rating'}</td><td align=center>$link{'Votes'}</td><td>
<a href="$link{'URL'}">$link{'Title'}</a></td></tr>\n~;

and replace it with:

$top_rated .= qq~<tr><td align=center>$link{'Rating'}</td><td align=center>$link{'Votes'}</td><td>
<a href='$db_cgi_url/jump.cgi?ID=$link{'ID'}' target='_blank'>$link{'Title'}</a></td></tr>\n~;

That is what i use

Because of the mod $db_cgi_url/jump.cgi?ID=$link{'ID'} instead of $link{'URL'} also the hits a counted.

The Link opens in a new windows

cu RSS Junkie
Quote Reply
Re: [RSS Junkie] How to open TOP RATED links in a new window? In reply to
Thanks RSS Junkie! Works perfectly Smile

Steven