Rate Topic [message #34957] |
Mon, 27 November 2006 21:30 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
Currently, you just drop down the list, select a value and let go. But, alot of users seem to "accidentally vote wrong" by letting go over the wrong value.
I would like instead to have a "Rate this Thread" or "Go" or "Submit" (or whatever) button next to it. Less user error.
This is the current code:
{SECTION: rate_thread rate thread select}
<form id="RateFrm">
<select onChange="javascript: if (this.value) topicVote(this.value, {VAR: frm->id}, \'{DEF: s}\', \'{VAR: usr->sq}\');">
<option>{MSG: rate_thread}</option>
<option value="1">1 {MSG: rate_worst}</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5 {MSG: rate_best}</option>
</select>
</form>
{SECTION: END}
My old code looked like this in the old version:
<form action="{TEMPLATE: rate_thread_lnk3}" name="vote_frm" method="post">
<select name="sel_vote">
<option>{MSG: rate_thread}</option>
<option value="1">1 {MSG: rate_worst}</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5 {MSG: rate_best}</option>
</select>
<input type="submit" class="button" name="btn_vote" value="{MSG: rate_this_thread}">
<input type="hidden" name="rate_thread_id" value="{VAR: frm->id}">{DEF: _hs}
</form>
Since I know 0 about javascript, perhaps anyone could enlighten me how i make the "current" code use a button and some "onClick" instead of the current "onChange"
Ginnunga Gaming
[Updated on: Mon, 27 November 2006 21:30] Report message to a moderator
|
|
|
Re: Rate Topic [message #34958 is a reply to message #34957] |
Mon, 27 November 2006 23:47 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I have not heard of such a problem, if it is, I suggest editing the JavaScript and removing auto-submit from the dropdown.
FUDforum Core Developer
|
|
|