Hey,
Is there a way to only allow registered users to rate a link ? I know there is an option to only allow registered users to write reviews, however I also want to only allow registered users to rate a link.
How is this possible ?
Hey,
Is there a way to only allow registered users to rate a link ? I know there is an option to only allow registered users to write reviews, however I also want to only allow registered users to rate a link.
How is this possible ?
You can use the following
<%if $login_status_logged_in%>
rating code here
<%else%>
Registered users can rate links, signup today for free!
<%/if%>
Hey Bruce, THanks for helping!
Where should I put these bits of code ?
What version of IndexU are you using?
Hey,
I'm using version 5.4.0
On detail_link.html
<%if $login_status_logged_in%>
<form action="rating.php" method="post">
<input type="hidden" name="id" value="<%$link_id%>" />
<table bgcolor="#D3D3D3" cellpadding="5">
<tr>
<td colspan="2">
<b>Average Visitor Rating: </b> <%$rating_img%>
<b><%$rating%></b> (out of 5)<br />
Number of ratings: <%$votes%> Votes
</td>
</tr>
<tr>
<td width="100">
<b>Visitor Rating</b>
</td>
<td>
<select name="rating">
<option value="">Select Your Rating</option>
<option value="5">Excellent!</option>
<option value="4">Very Good</option>
<option value="3">Good</option>
<option value="2">Fair</option>
<option value="1">Poor</option>
</select>
<input type="submit" value="Rate It!" />
</td>
</tr>
</table>
</form>
<%else%>
Registered users can rate links, signup today for free!
<%/if%>
Hey,
Thank you Bruce! It works like a charm! U'r a GURU![]()
Where I have to insert that PHP codes for IndexU Deluxe v1.0 ?
On the same page, detail_link.html
The code will be pretty much the same.