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

Home » FUDforum » How To » Rate Topic
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Rate Topic [message #34957] Mon, 27 November 2006 21:30 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma:
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

[Message index]
 
Read Message
Read Message
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: Thu Nov 28 05:12:28 GMT 2024

Total time taken to generate the page: 0.04160 seconds