<TABLE BORDER=2 WIDTH=500>
<TD align="center"><FONT SIZE=+1><B>Rate</B></FONT>
<TD align="center"><FONT SIZE=+1><B>Question</B></FONT>
<TD align="center"><SELECT NAME="menu" SIZE=1>
<OPTION SELECTED VALUE=""> --- Rate this thread ---
<OPTION VALUE="three">Not bad
<OPTION VALUE="four">Nice pics
<OPTION VALUE="five">Pointless Drivel
<TABLE BORDER=0 WIDTH=400>
<!-- Script Size: 3.04 KB -->
I would say add a button which reloads the page...
<INPUT type=button value=VOTE onClick=rate()>
document.write=('*****') [inserted at the right place...]
(TOTALRATINGS / (TOTALVOTES*5)) * 100 will get you the percentage
that number of stars should appear there only until the next person re-rates it. If the next person rates it 3 stars then the three stars remain next to the topic title until its rated again. perhaps this would need a 'reset' button and a 'vote' button to allow it to go from say, 5 stars, back to 3?
im using ipb 1.3 board. the script would go in ~topic veiw > Footer
if thats any help. Much, much obliged if someone can come up with a script for this, im hopeless at coding beyond extreme basics, and have searched the web endlessly for such a script without success.
Thankyou very much, in advance, and Thankyou very much those who have replied already :)
var rating=new Array()
in which the function voting is activated by the vote button and the n is determined by the selected option.
In the body of the thread list:
Thread1 name: <FORM name=thread1><INPUT name=star size=5></FORM><BR>
In the input box you put the correct number of stars...
It's not your solution, only the start of it...
Prob is that this script won't show the rating to other viewers.
but you need server side code as Tony pointed out on Monday.
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.