MissKalunji |
05-10-2008 01:18 PM |
Quote:
Originally Posted by Mr Chad
(Post 1156821)
hmm is there a way to hide it, if you already voted.
|
Quote:
Originally Posted by ubblite
(Post 1157841)
Same problem here. The prompt still comes up and when you try to vote again it says:
"According to our records you have already voted on this thread. Changing votes is not allowed."
The ideal way to have it is not show the vote prompt at all once you've voted.
edit: or have it show something like "You've already voted" instead of the vote bar.
|
Quote:
Originally Posted by ragtek
(Post 1347703)
it would be nice if you make images(stars) instead of the numbers
with an nice onmouse event
|
To answer all of ya'll question
Here's the code i used when someone voted it doesn't show the bar anymore
and i've also added the image (instead) of the words. I've put in bold what i changed and what you can change to put your own image. Pretty basic :)
anyone figure out how to put it somewhere else the under poll? i haven't figured it out yet
I rather this one then magnus simple when you click it rates instead of having to click on submit
Code:
<!-- Thread Rating -->
<if condition="!$show['rating'] AND $show['threadrating'] AND $show['ratethread']">
<if condition="$show['ratethread'] && $threadinfo['vote']==NULL">
<div class="quickajaxrating" style="text-align:center; padding-bottom: 5px;">
<span id="oneclick_container">
<noscript>$vbphrase[rating]:</noscript>
<form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_one">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="vote" value="1" />
<input type="submit" value="1" style="display:none;" />
<noscript><input type="submit" value="1" /></noscript>
</form>
<form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_two">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="vote" value="2" />
<input type="submit" value="1" style="display:none;" />
<noscript><input type="submit" value="2" /></noscript>
</form>
<form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_three">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="vote" value="3" />
<input type="submit" value="1" style="display:none;" />
<noscript><input type="submit" value="3" /></noscript>
</form>
<form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_four">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="vote" value="4" />
<input type="submit" value="1" style="display:none;" />
<noscript><input type="submit" value="4" /></noscript>
</form>
<form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_five">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="t" value="$threadid" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="vote" value="5" />
<input type="submit" value="1" style="display:none;" />
<noscript><input type="submit" value="5" /></noscript>
</form>
<script type="text/javascript"><!--
var threadid = $threadinfo[threadid];
document.write('<div class="quickajaxrating2" style="line-height:12px;vertical-align:middle;"><div align="center" class="smallfont">');
document.write('<strong>Rate Video: </strong>');
document.write(' You can add your own words here if you want <input type=image src="url to image" name="rating" id="oneclick_vote_one_submit" value="1" onclick="javascript:void(0);" /> ');
document.write('you can add your own words here if you want <input type=image src="url to image" name="rating" id="oneclick_vote_two_submit" value="2" onclick="javascript:void(0);" /> ');
document.write(' you can add your own words here if you want <input type=image src="url to image" name="rating" id="oneclick_vote_three_submit" value="3" onclick="javascript:void(0);" /> ');
document.write(' you can add your own words here if you want<input type=image src="url to image" name="rating" id="oneclick_vote_four_submit" value="4" onclick="javascript:void(0);" /> ');
document.write('you can add your own words here if you want<input type=image src="url to image" name="rating" id="oneclick_vote_five_submit" value="5" onclick="javascript:void(0);" /> ');
document.write('</div></div>');
-->
</script>
<script type="text/javascript" src="clientscript/vbulletin_ajax_oneclick_threadrate.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
var threadid = $threadinfo[threadid];
vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_one');
vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_two');
vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_three');
vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_four');
vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_five');
-->
</script>
</span>
<span id="oneclick_threadrating_current"></span>
<span id="oneclick_threadrating_response"></span>
</div>
</if>
</if>
<!--Thread Rating-->
|