4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: sukholee on August 02, 2002, 09:40:39 PM
-
Hi,
Can anyone help me with this? I want to use radio buttons instead of the drop down menu. I have modified the rate_form.html template, but it does not work.
Do I need to change anything else? Please get back anyone...
Thanks
-
<form method="POST" action="{self}">
<p><input type="radio" value="1"></p> <input type="hidden" name="action" value="rateimage" />
<input type="hidden" name="id" value="{image_id}" />
<input type="submit" value="{rate}" class="button" name="submit" />
</form>
-
I have copied and pasted the html you gave me into rate_form.html but it did not work. It read "Rating Invalid"
Why is this?
-
Ich glaub oben wurde name="rating" vergessen
Versuch den mal:
<form method="post" action="{self}">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1">
<table border="0" cellspacing="0" cellpadding="3" class="row1">
<tr>
<td valign="bottom" colspan="2">
<p>
<input type="radio" name="rating" value="1">
1
<input type="radio" name="rating" value="2">
2
<input type="radio" name="rating" value="3">
3
<input type="radio" name="rating" value="4">
4
<input type="radio" name="rating" value="5">
5
</td>
<td rowspan="2">
<div align="center">
<input type="hidden" name="action" value="rateimage" />
<input type="hidden" name="id" value="{image_id}" />
<input type="submit" value="{rate}" class="button" name="submit" />
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
Gruß Daniel
-
Thanks a lot! It works now....
-
Hallo, is it possible to add to the rateform "-1" and "0" values?
Thank you...
-
did you try change rate_form.html?
-
yes, just by adding <input type="radio" name="rating" value="0" > and <input type="radio" name="rating" value="-1" >
it does not work. Probably somewhere in "functions" there is a voting range starting from 1?
Site www.fotoexperiment.robertmagel.de, login and passwort testuser.
-
in includes/page_header.php find:
if ($rating && $rating <= MAX_RATING && $id) {
Replace it with:
if ($rating >= -1 && $rating <= MAX_RATING && $id) {
-
thank you very much!