Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Top Rated page links to detailed pages

Quote Reply
Top Rated page links to detailed pages
My database doesn't link externally, but rather links to detailed pages.

I've modified links.html to go to the detailed pages using this code:

<a href="<%build_root_url%>/<%Category%>/Detailed/<%ID%><%build_extension%>">

This works fine. My problem is that the rate_top template uses <%top_rated%> to build its links. I have no idea how to modify this template to build links to my detailed pages. I've searched the forums and read a number of posts, but I'm just to inexperienced to understand how to do this. If someone can give me a few pointers, I'd be eternally grateful :).
Quote Reply
Re: [cco] Top Rated page links to detailed pages In reply to
Look in the nph-build.cgi for $top_rated.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [AnthroRules] Top Rated page links to detailed pages In reply to
Thanks, Eliot. I found this line in nph-build.cgi:

$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~;

I assume that I need to replace the "$link{'URL'}" with a link to the detailed page. Only problem is I don't know what to put there :(.

If anyone has time to supply the correct code I would be grateful. Thanks in advance.
Quote Reply
Re: [cco] Top Rated page links to detailed pages In reply to
Use....

<a href="$build_detail_url/$link{'ID'}.$build_extension">
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Chewbaca] Top Rated page links to detailed pages In reply to
Thanks Eliot. One last wrinkle. I forgot that I used a mod that creates directories for each category and puts the detailed pages in them. So, I tried this:

<a href="$build_root_url/$rec{'Category'}/Detailed/$link{'ID'}$build_extension">

Only problem is that $rec{'Category'} doesn't work. I get a url that looks like this:

http://mysite.com//Detailed/36.html

The category is not appearing between those //. Probably because my syntax is completely wrong. I've poured over my Perl book and looked at other routines in nph-build.cgi, but this is the best I could come up with and it doesn't work. Obviously, I'm in over my head. Is there a way to reference the category in this code?

Thanks again for your patience.

Carl
Quote Reply
Re: [cco] Top Rated page links to detailed pages In reply to
Try $link{Category}
Quote Reply
Re: [RedRum] Top Rated page links to detailed pages In reply to
Bingo! That's it. Thanks RedRum and Eliot. You don't know how much I appreciate all your help.

Carl

Quote Reply
Re: [Heckler] Top Rated page links to detailed pages In reply to
I also want to link the top-rated-records to the detailed-pages of the records instead of jumping to the url.

The above discussed settings seem to be for 2.03 or 2.05

How to make the changings for 2.10 ??

Michael

--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Michael Skaide] Top Rated page links to detailed pages In reply to
This is the Links2 forum :)
Quote Reply
Re: [RedRum] Top Rated page links to detailed pages In reply to
Upps!!

--
Michael Skaide

http://www.cycle24.de