PDA

View Full Version : Rating uses option buttons



Martz
Sun 25th Nov '01, 9:52pm
Tried this, and it works!

When replying, instead of a drop down menu you can have option buttons instead (see attachment).

To change:

- Open the template New Posting > newreply_ratethread
- Find

<select name="rating">
<option value="0"$rate[0]>Select a rating (optional)</option>
<option value="5"$rate[5]>5 .. Best</option>
<option value="4"$rate[4]>4</option>
<option value="3"$rate[3]>3 .. Average</option>
<option value="2"$rate[2]>2</option>
<option value="1"$rate[1]>1 .. Worst</option>
</select>
replace with:

<input type="radio" value="1" name="rating"> 1
<input type="radio" value="2" name="rating"> 2
<input type="radio" value="3" name="rating"> 3
<input type="radio" value="4" name="rating"> 4
<input type="radio" value="5" name="rating"> 5

<br>

Save and your all done :)

It should now look like this:

Martz
Sun 25th Nov '01, 9:52pm
damn attachments ;)

TheComputerGuy
Tue 27th Nov '01, 6:29am
Thanks buddy

Goldfinger
Tue 27th Nov '01, 8:34am
beautiful.. :)

Good work.