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:
<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 ). Help will be greatly appreciated.
Thanks,
YellowKard
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>
Thanks,
YellowKard