Makc666
Wed 28th Oct '09, 9:09am
You have already rated this thread -> Show you vote raiting
Vote to some new thread
Open "Rate This Thread" menu
You will see that the "Current Rating" is shown there
Also you will see that your rating you have voted for is also shown
Screenshot attached
Now go out from the thread and go back to it (or Refresh the page)
Open "Rate This Thread" menu
You will see there the words "You have already rated this thread"
Now look in the HTML code of that page.
You will see this one:
<form action="threadrate.php" method="post" id='showthread_threadrate_form'>
<ul class="popupbody popuphover">
<li id="threadrating_current" class="hidden"><label>
<span class="rating r5"> Current Rating</span>
</label></li>
<li><label>You have already rated this thread</label></li>
</ul>
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="*************************" />
<input type="hidden" name="t" value="322969" />
<input type="hidden" name="pp" value="50" />
<input type="hidden" name="page" value="1" />
</form>
As you can notice the thread rating is shown there:
<span class="rating r5"> Current Rating</span>
There are two problems I see here:
We have to hide "Current Rating" from the beginning until it will reach the setting from ACP -> Poll and Thread Rating Options -> Required Thread Rating Votes to Show Rating
We have to show user what he had voted when he press "Rate This Thread" menu even if ACP -> Poll and Thread Rating Options -> Allow Thread Rating Vote Changes is set to "No"