I have a question, how can I make a hyperlink from the
rating word to pop-up window that let user to rate other like UBB board.
The only way to rate is click profile, which not too many people know, so by making the hyperlink from
rating , it would be very nice. The pop up window should contains rating option only, not other information like profile and such.
Please help Exchange or anybody that knows, I've been playing around with with
getinfouser_rating but couldn't figure it out.
Here is my original file:
PHP Code:
<tr>
<td
bgcolor="#13486D"><normalfont><b>Rating:</b></normalfont><br><img src="images/$userrating" alt="$rateuser[ratenum] Votes"><br><smallfont>$wholink</smallfont></td>
<td bgcolor="#13486D"> <table cellspacing="0" border="0" nowrap>
<form action="userrate.php" method="get">
<tr>
<td>
<select name="userrate"
onchange="window.location=('userrate.php?s=$session[sessionhash]&rateuser=$userid&userrate='+this.options[this.selectedIndex].value)">
<option value="-1" selected>Rate this user:</option>
<option value="5">Super Power</option>
<option value="4">Strong Power</option>
<option value="3">Normal Power</option>
<option value="2">Weak Power</option>
<option value="1">No Power</option>
</select>
<input type="image" src="images/go.gif" border="0" align="absbottom"><smallfont> (Last Power Rating: <b>$oldrating[old]</b>)</smallfont>
</td>
</tr>
</form>
</table> </td>
</tr>
I have tried to change to:
PHP Code:
<tr>
<td
bgcolor="#13486D"><normalfont><b><a href="userrate.php?s=$session[sessionhash]&action=show&rateuser">Rating</a>:</b></normalfont><br><img src="images/$userrating" alt="$rateuser[ratenum] Votes"><br><smallfont>$wholink</smallfont></td>
<td bgcolor="#13486D"> <table cellspacing="0" border="0" nowrap>
<form action="userrate.php" method="get">
<tr>
<td>
<select name="userrate"
onchange="window.location=('userrate.php?s=$session[sessionhash]&rateuser=$userid&userrate='+this.options[this.selectedIndex].value)">
<option value="-1" selected>Rate this user:</option>
<option value="5">Super Power</option>
<option value="4">Strong Power</option>
<option value="3">Normal Power</option>
<option value="2">Weak Power</option>
<option value="1">No Power</option>
</select>
<input type="image" src="images/go.gif" border="0" align="absbottom"><smallfont> (Last Power Rating: <b>$oldrating[old]</b>)</smallfont>
</td>
</tr>
</form>
</table> </td>
</tr>
Basically I've added the line
<a href="userrate.php?s=$session[sessionhash]&action=show&rateuser">Rating</a> to make the word rating become hyperlink, but that doesn't work, anybody can help?