Gossamer Forum
Home : Products : Links 2.0 : Customization :

If statment (for reviews) in link.html

Quote Reply
If statment (for reviews) in link.html
Hi, I'm wanting to add an if statement in my link.html file to show a see reviews button if a link has reviews and not show it if it doesn't. Here is my link.html and where I want to add the if statment:

Code:
<ul><li>
<a class="link" href="<Û_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>
<%if Description%>
- <Þscription%> 
<%endif%>
<%if isNew%>
<small class="new">new</small>
<%endif%>
<%if isPopular%>
<small class="pop">cool</small>
<%endif%>

<small class="date">(Added: <Úte%> Hits: <%Hits%> Rating: <%Rating%>
<%if bla%>
<a href="<Û_cgi_url%>/review.cgi?ID=<%ID%>">[Reviews]</a>
<%endif%>
Votes: <%Votes%> ) <a href="<Û_cgi_url%>/review.cgi?ID=<%ID%>">Rate It</a> / <a href="<Û_cgi_url%>/sendlink.cgi?ID=<%ID%>">Recommend</a> / <a href="<Û_cgi_url%>/deadlink.cgi?ID=<%ID%>">Dead Link</a></small>
</ul>
I know you need to to edit some other files in order to do this, I don't know which. I'm just a beginner at PERL (I've made a simple jukebox Smile). Help will be greatly appreciated.

Thanks,
YellowKard
Subject Author Views Date
Thread If statment (for reviews) in link.html YellowKard 1237 Jun 3, 2000, 8:37 PM
Thread Re: If statment (for reviews) in link.html
Stealth 1222 Jun 3, 2000, 8:51 PM
Thread Re: If statment (for reviews) in link.html
YellowKard 1217 Jun 3, 2000, 9:50 PM
Post Re: If statment (for reviews) in link.html
Stealth 1217 Jun 3, 2000, 10:21 PM