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. |