Webmastersite.net
Register Log In

RATING FIELDS

Title RATING FIELDS
Description rating fields not showing correct results
Message Text I followed the manual and created a new field for more rating fields. I added the form as follows to the vote.php tpl: ------------------------------------------------
<form action="vote.php?action=vote&id={LINKID}" method="post">
<table {STANDARDTABLE}>
<tr>
 <td class="labelscolumn"><span class="labels">Place rating:</span></td>
 <td class="optionscolumn">
  <select name="votevalue">
   <option value="5">5 - Perfect</option>
   <option value="4">4 - Good</option>
   <option value="3">3 - Average</option>
   <option value="2">2 - Mediocre</option>
   <option value="1">1 - Bad</option>
 </select>
 </td>
</tr>
<tr>
 <td class="labelscolumn"><span class="labels">DJ:</span></td>
 <td class="optionscolumn">
  <select name="djrating">
   <option value="5">5 - Perfect</option>
   <option value="4">4 - Good</option>
   <option value="3">3 - Average</option>
   <option value="2">2 - Mediocre</option>
   <option value="1">1 - Bad</option>
 </select>
 </td>
</tr>

<tr>
 <td colspan="2"><input type="submit" value="Submit Rating" class="button"></td>
</tr>
</table>
</form>


-------------------------------------------------- and this is what I put in the diplaylinks.tpl: --------------------------------------------------
Place Rating: {LINKSTARS} ({LINKRATING}/{MAXVOTE} based on {LINKVOTES} votes) <br>DJ rating: {LINKDJRATINGSTARS} ({LINKDJRATINGRATING}/{MAXVOTE} based on {LINKDJRATINGVOTES} votes)
Does this all look ok? The results of the second field show a total vote of one when I vote once but I dont see the stars working for it or the correct link rating for it.
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership trued
Views 503 views. Averaging 0 views per day.
Similar Topics
Submission Date Jul 13, 2005 - 12:36 PM