FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Rate Topic
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Rate Topic [message #34957] Mon, 27 November 2006 21:30 Go to next message
Ernesto is currently offline  Ernesto   Sweden
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"


[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 Go to previous message
Ilia is currently offline  Ilia   Canada
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Changing colours
Next Topic: Show all groups a user belongs to
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Apr 27 08:42:25 GMT 2024

Total time taken to generate the page: 0.02666 seconds