Webmastersite.net
Register Log In

RATING FIELDS
rating fields not showing correct results

Comments on RATING FIELDS

trued
Experienced

Usergroup: Customer
Joined: Oct 10, 2003

Total Topics: 19
Total Comments: 69
trued
0 of 1 people found this comment helpful
Posted Jul 13, 2005 - 10:36 AM:

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

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 18, 2005 - 3:49 AM:

It looks right at a glance, except that I'm not sure if you can submit both ratings in one form. Would have to check if it works with two forms.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.