View Full Version : Show Thread Enhancements - vBorg Thread Rating
magnus
03-20-2007, 10:00 PM
Update 08/21/07: Made a template change that should address the issue with the rating box still being visible after a thread has been rated. [link (https://vborg.vbsupport.ru/showpost.php?p=1322381&postcount=141)]
There seemed to be multiple requests for this, so here it is. This is a clone of the thread rating system you see in the modifications section of vBorg.
For a demo, scroll up to the big orange rectangle, select "Excellent" then click "Vote Now!". :p
Installation is simple. Just replace your current SHOWTHREAD template with the attached file. That's it.
-
For those with a modified SHOWTHREAD (or just for those who enjoy doing things the hard way), here are the required modifications:
In SHOWTHREAD:
FIND and DELETE:
<if condition="$show['threadrating']">
<!-- thread rating menu -->
<div class="vbmenu_popup" id="threadrating_menu" style="display:none">
<form action="threadrate.php?t=$threadid" method="post" id="showthread_threadrate_form">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[rate_this_thread]<a name="goto_threadrating"></a></td>
</tr>
<if condition="$show['ratethread']">
<tr>
<td class="vbmenu_option" title="nohilite" id="threadrating_options">
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><label for="vote5"><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><label for="vote4"><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><label for="vote3"><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><label for="vote2"><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label></div>
<div><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><label for="vote1"><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label></div>
</td>
</tr>
<tr id="threadrating_submit">
<td class="vbmenu_option" title="nohilite" align="center">
<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="submit" class="button" value="$vbphrase[vote_now]" />
</td>
</tr>
<else />
<tr>
<td class="vbmenu_option" title="nohilite">$vbphrase[already_rated_this_thread]</td>
</tr>
</if>
</table>
</form>
</div>
<!-- / thread rating menu -->
<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vB_AJAX_ThreadRate_Init('showthread_threadrate_for m');
var threadid = $threadinfo[threadid];
//-->
</script>
</if>
-
FIND and DELETE:
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
-
FIND:
<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php?threadid=$threadinfo[threadid]&p=$postid" method="post" id="inlinemodform">
$spacer_open
</if>
<a name="poststop" id="poststop"></a>
REPLACE with:
<a name="poststop" id="poststop"></a>
<if condition="!$show['rating'] AND $show['threadrating'] AND $show['ratethread']">
<!-- thread rating menu -->
<form action="threadrate.php?t=$threadid" method="post" id="showthread_threadrate_form">
<table cellpadding="4" cellspacing="1" width="100%" border="0" class="tborder" align="center">
<tr>
<td style="background:#FFDC84;color:#000;" id="threadrating">
<div align="center" id="threadrating_current">
<div align="left"><h3>$vbphrase[rate_this_thread] : <em>$thread[title]</em></h3></div>
<a name="goto_threadrating"></a>
<label for="vote5"><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label>
<label for="vote4"><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label>
<label for="vote3"><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label>
<label for="vote2"><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label>
<label for="vote1"><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label>
<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="submit" class="button" value="$vbphrase[vote_now]" />
</div>
</td>
</tr>
</table>
<br />
</form>
<!-- / thread rating menu -->
<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vB_AJAX_ThreadRate_Init('showthread_threadrate_for m');
var threadid = $threadinfo[threadid];
window.alert = null;
//-->
</script>
</if>
<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php?threadid=$threadinfo[threadid]&p=$postid" method="post" id="inlinemodform">
$spacer_open
</if>
That should do it. :)
anywares
03-21-2007, 06:30 PM
nice thanks. ill definitly use this once my board is back up :)
//Clicks install
Skavenger
03-21-2007, 06:35 PM
Installation is simple. Just replace your current SHOWTHREAD template with the attached file. That's it.
I have made a lot of changes in my SHOWTHREAD template =/
Could you tell us where to add, move, delete, etc the code?
bashy
03-21-2007, 06:50 PM
Nice one m8...well done, installed :)
magnus
03-21-2007, 06:51 PM
I have made a lot of changes in my SHOWTHREAD template =/
Could you tell us where to add, move, delete, etc the code?
Sure. Updated the original post.
SaN-DeeP
03-21-2007, 07:44 PM
Thaks a ton magnus :), appreciate your efforts for vb.org community..
Kindly add a small screenshot as well ;)
I will need this for couple of my forum(s).
bashy
03-21-2007, 08:18 PM
Its exactly the same as vb.org's thread rate :)
tanyeri24
03-21-2007, 09:11 PM
I want rating but getting this error:
You did not select any posts to which the action you picked can be applied.
magnus
03-21-2007, 09:15 PM
I want rating but getting this error:
You did not select any posts to which the action you picked can be applied.
You'll get that error if you perform the template edits incorrectly. Go back, and perform each edit step-by-step. Optimally, you should just cut and paste the data from the attached .txt file into your SHOWTHREAD template.
tanyeri24
03-21-2007, 09:19 PM
You'll get that error if you perform the template edits incorrectly. Go back, and perform each edit step-by-step. Optimally, you should just cut and paste the data from the attached .txt file into your SHOWTHREAD template.
I backup my real showthread template and paste your fully .txt Now it's okay, thank you.
tanyeri24
03-21-2007, 09:41 PM
but after rating the sistem says again 'please rate' the rating bar is still showing and no results only in embedded thread is my rating showing..
airborneCAL
03-21-2007, 11:00 PM
My rating box is a bit larger than vborg, how can I make it smaller?
magnus
03-21-2007, 11:27 PM
My rating box is a bit larger than vborg, how can I make it smaller?
It uses your CSS, so make whatever changes you like there or define new classes.
magnus
03-21-2007, 11:27 PM
but after rating the sistem says again 'please rate' the rating bar is still showing and no results only in embedded thread is my rating showing..
Show me your SHOWTHREAD template HTML, and I'll modify it for you.
airborneCAL
03-21-2007, 11:31 PM
but after rating the sistem says again 'please rate' the rating bar is still showing and no results only in embedded thread is my rating showing..
I am having the exact same problem.
airborneCAL
03-21-2007, 11:39 PM
It uses your CSS, so make whatever changes you like there or define new classes.
Where in the CSS? How would I define new classes? Bear with me, I'm learning the coding stuff. Thanks for your patience.
magnus
03-22-2007, 01:21 AM
@ airborneCAL and tanyeri24:
In your AdminCP. Go to:
vBulletin Options > Help Thread Display Options (showthread)
Now, enable "Check Thread Rating".
Let me know if that fixes it.
airborneCAL
03-22-2007, 01:39 AM
@ airborneCAL and tanyeri24:
In your AdminCP. Go to:
vBulletin Options > Help Thread Display Options (showthread)
Now, enable "Check Thread Rating".
Let me know if that fixes it.
Mine is already enabled.
airborneCAL
03-22-2007, 01:43 AM
If it helps any - it appears that when I rate a thread, it works fine and records my rating. However, once I leave the thread and come back to it I still get the box as if I have not rated the thread yet, however it is non functional (I assume because my thread rating has already been recorded).
magnus
03-22-2007, 02:46 AM
If you have "Check Thread Rating" enabled, it shouldn't show the rating box anylonger. Are you using my SHOWTHREAD replacement, or did you modify the template yourself?
Kirk Y
03-22-2007, 09:25 PM
Nice one Magnus. :up:
KEKforce
03-22-2007, 09:28 PM
I also have a problem. When I Vote nothing changes but the vote is stored...
Unlike the the one here on VB where the result is shown..after voting.
use 3.6.5.
tanyeri24
03-22-2007, 09:51 PM
Show me your SHOWTHREAD template HTML, and I'll modify it for you.
your .txt
@ airborneCAL and tanyeri24:
In your AdminCP. Go to:
vBulletin Options > Help Thread Display Options (showthread)
Now, enable "Check Thread Rating".
Let me know if that fixes it.
Yes now fixed with this option. Thank you.
KEKforce
03-22-2007, 09:53 PM
your .txt
Yes now fixed with this option. Thank you.
Already tried that.. no go...
Skavenger
03-22-2007, 10:20 PM
Sure. Updated the original post.
Thank you :)
tanyeri24
03-22-2007, 10:20 PM
Already tried that.. no go...
admincp/options.php?do=editsetting&varname=threadvoted
there you have to choose YES, standart is NO.
tanyeri24
03-22-2007, 10:22 PM
It would also be glad if vbulletin.org will show us their class data about .new (style of the rating box). In Firefox I can't fix the lines on the borders, it shows like I have <br> in the first line..
airborneCAL
03-23-2007, 01:58 AM
admincp/options.php?do=editsetting&varname=threadvoted
there you have to choose YES, standart is NO.
That didn't work for me.
ngocha85
03-23-2007, 09:15 AM
After DELETE, you can:
FIND:
<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php?threadid=$threadinfo[threadid]&p=$postid" method="post" id="inlinemodform">
$spacer_open
</if>
<a name="poststop" id="poststop"></a>
REPLACE with:
<if condition="$show['threadrating']">
<if condition="$show['ratethread']">
<!-- thread rating menu -->
<!---------------------- / UPGRADE------>
<if condition="$show['rating']">
<table cellpadding="4" cellspacing="1" width="100%" border="0" class="tborder" align="center">
<tr>
<td class="thread">
<div align="center" id="threadrating_current">
$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" />
</div>
</td>
</tr>
</table>
<br />
<else />
<!---------------------- / UPGRADE------>
<form action="threadrate.php?t=$threadid" method="post" id="showthread_threadrate_form">
<table cellpadding="4" cellspacing="1" width="100%" border="0" class="tborder" align="center">
<tr>
<td style="background:#FFDC84;color:#000;" id="threadrating">
<div align="center" id="threadrating_current">
<div align="left"><b>$vbphrase[rate_this_thread] : <em>$thread[title]</em></b></div>
<a name="goto_threadrating"></a>
<label for="vote5"><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label>
<label for="vote4"><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label>
<label for="vote3"><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label>
<label for="vote2"><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label>
<label for="vote1"><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label>
<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="submit" class="button" value="$vbphrase[vote_now]" />
</div>
</td>
</tr>
</table>
<br />
</form>
</if>
<!-- / thread rating menu -->
<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vB_AJAX_ThreadRate_Init('showthread_threadrate_for m');
var threadid = $threadinfo[threadid];
window.alert = null;
//-->
</script>
</if>
</if>
<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php?threadid=$threadinfo[threadid]&p=$postid" method="post" id="inlinemodform">
$spacer_open
</if>
StarBuG
03-23-2007, 11:37 AM
Thanks for this
/me clicks install
airborneCAL
03-23-2007, 01:53 PM
After DELETE, you can:
FIND:
<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php?threadid=$threadinfo[threadid]&p=$postid" method="post" id="inlinemodform">
$spacer_open
</if>
<a name="poststop" id="poststop"></a>
REPLACE with:
<if condition="$show['threadrating']">
<if condition="$show['ratethread']">
<!-- thread rating menu -->
<!---------------------- / UPGRADE------>
<if condition="$show['rating']">
<table cellpadding="4" cellspacing="1" width="100%" border="0" class="tborder" align="center">
<tr>
<td class="thread">
<div align="center" id="threadrating_current">
$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" />
</div>
</td>
</tr>
</table>
<br />
<else />
<!---------------------- / UPGRADE------>
<form action="threadrate.php?t=$threadid" method="post" id="showthread_threadrate_form">
<table cellpadding="4" cellspacing="1" width="100%" border="0" class="tborder" align="center">
<tr>
<td style="background:#FFDC84;color:#000;" id="threadrating">
<div align="center" id="threadrating_current">
<div align="left"><b>$vbphrase[rate_this_thread] : <em>$thread[title]</em></b></div>
<a name="goto_threadrating"></a>
<label for="vote5"><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label>
<label for="vote4"><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label>
<label for="vote3"><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label>
<label for="vote2"><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label>
<label for="vote1"><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label>
<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="submit" class="button" value="$vbphrase[vote_now]" />
</div>
</td>
</tr>
</table>
<br />
</form>
</if>
<!-- / thread rating menu -->
<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vB_AJAX_ThreadRate_Init('showthread_threadrate_for m');
var threadid = $threadinfo[threadid];
window.alert = null;
//-->
</script>
</if>
</if>
<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php?threadid=$threadinfo[threadid]&p=$postid" method="post" id="inlinemodform">
$spacer_open
</if>
What does that do?
da420
03-23-2007, 03:10 PM
It creates a thread rating system that looks like vbulletin.org's...
airborneCAL
03-23-2007, 04:14 PM
It creates a thread rating system that looks like vbulletin.org's...
Thanks, it appears to be working perfectly!
magnus
03-23-2007, 05:15 PM
It would also be glad if vbulletin.org will show us their class data about .new (style of the rating box). In Firefox I can't fix the lines on the borders, it shows like I have <br> in the first line..
.new{
background:#FFDC84;
color:#00000;
}
I included this as style= data, rather than requiring editing the Main CSS.
magnus
03-23-2007, 05:20 PM
What does that do?
On threads in which you've already voted on, it will display the rating above the thread.
tanyeri24
03-23-2007, 05:31 PM
.new{
background:#FFDC84;
color:#00000;
}
I included this as style= data, rather than requiring editing the Main CSS.
but the are like a <br> in the table of your template edit and here on vbulletin.org not.
magnus
03-23-2007, 06:05 PM
but the are like a <br> in the table of your template edit and here on vbulletin.org not.
It's all CSS. You would need to comb the vBorg CSS and find what margin, padding, et al. is being used.
You can see the entire vBorg CSS here (https://vborg.vbsupport.ru/clientscript/vbulletin_css/style-2daa81cb-00023.css).
hawks_mp
03-23-2007, 07:12 PM
How would I fix it if I only wanted to show this thread rating system in 1 forum? I would like to use it in a movie review section, but in the other sections I would like it to be the default rating system.
tanyeri24
03-23-2007, 07:34 PM
It's all CSS. You would need to comb the vBorg CSS and find what margin, padding, et al. is being used.
You can see the entire vBorg CSS here (https://vborg.vbsupport.ru/clientscript/vbulletin_css/style-2daa81cb-00023.css).
thx but not easy to find what I have to change..
airborneCAL
03-23-2007, 08:18 PM
Thanks, it appears to be working perfectly!
I may have spoken too soon. Now when one user votes, the rating is displayed for everyone, not just the user that voted instead of having the voting box for those who have not yet voted.
Dadoo
03-28-2007, 01:21 AM
Hello, very nice hack !!
is possible to select this by FORUM ?
EDIT -> Sorry, found in forum & modérators -> Forums manager -> your forum -> Allow Thread rating in this forum -> NO ;-)
snowlion
03-28-2007, 02:23 AM
after all, find and delete if you want (this will delete Rate This Thread popup menu)
<if condition="$show['threadrating']">
<td class="vbmenu_control" id="threadrating" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadrating"><span id="threadrating_current"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></span></a>
</td>
</if>
MissKalunji
03-28-2007, 04:23 PM
is there a way to only assign this to only CERTAIN section not every forums?
magnus
03-28-2007, 04:55 PM
Using conditionals, you could do almost anything.
ie.
<if condition="$forum[forumid] == #"></if>
brvheart
03-28-2007, 05:04 PM
*installs* thank you for this :D
MissKalunji
03-28-2007, 11:22 PM
Using conditionals, you could do almost anything.
ie.
<if condition="$forum[forumid] == #"></if>
you're right i didnt think of that
Triky
04-02-2007, 12:09 PM
Thanks, magnus!
After DELETE, you can:
[cut]
Thanks, ngocha85!
kushal
04-02-2007, 05:31 PM
In Internet explorer, after submitting the vote it shows the following errors:
'Object doesn't support this property or method'
Whereas I had three boards, and on two I loaded the default file 'copy-paste', and for one I made the edits.
Can you help me resolve this!
regards,
obmob
04-04-2007, 12:50 AM
Oh i'll try this, thanks. :D
Naxon
04-04-2007, 03:09 AM
Thank's,
Installed :)
The Bish
04-04-2007, 04:55 AM
Installed!
Thank you...
elmati
04-05-2007, 11:19 AM
nice one!
thank you!
*clicks install
Triky
04-05-2007, 03:47 PM
In Internet explorer,
'Object doesn't support this property or method'
For me, in IE, when I enter in a thread, it doesn't give me the choice, but it show directly the rating.
brvheart
04-06-2007, 04:57 PM
after rating....if you go out to view a different thread, then go back to a thread that you rated already...it gives you the option to rate it again...is that how it is supposed to work?
tanyeri24
04-08-2007, 02:17 AM
after rating....if you go out to view a different thread, then go back to a thread that you rated already...it gives you the option to rate it again...is that how it is supposed to work?
change the vbulletin settings to show rating after 1 vote.
tanyeri24
04-08-2007, 06:02 AM
omg, I put the code near the quickreply box now I getting error:
Fehler: alert is not a function
Quelldatei: http://www.aleviforum.com/clientscript/vbulletin_ajax_threadrate.js?v=365
Zeile: 101
and
Fehler: this.formobj has no properties
Quelldatei: http://www.aleviforum.com/clientscript/vbulletin_inlinemod.js?v=365
Zeile: 358
tanyeri24
04-08-2007, 10:15 PM
I want put it above quickrepy.. these codes doesnt work, no ajax effect but counting...
:hmm I think this modification is missiong the followign things
1st <h3> css which would be h3{font-size:13px;margin:0;display:inline}
2nd There is no change after voting, so add an Ajax cahnge after voting, like in here
3rd after voting, if "$vbulletin->options['votechange']" is = to No, then the yellow thing is gone, and it moves to the bar showing your rating (like in here), otherwirse when clicking on your rating, display a meny to change vote.
I think that should cover most of the missing things ^^
tanyeri24
04-14-2007, 06:46 PM
I put it abov the quickreply, doesnt work fine. No ajax effect after vote..
magnus
04-14-2007, 06:59 PM
2nd There is no change after voting, so add an Ajax cahnge after voting, like in here
Yes there is.
3rd after voting, if "$vbulletin->options['votechange']" is = to No, then the yellow thing is gone, and it moves to the bar showing your rating (like in here), otherwirse when clicking on your rating, display a meny to change vote.
Um, what?
magnus
04-14-2007, 07:00 PM
I put it abov the quickreply, doesnt work fine. No ajax effect after vote..
If you want to relocate the voting window, there's more involved than simply moving the code in this modification. You'll need to relocate much more.
This modification is meant to be a vBorg clone. What you're trying to do CAN be done, but you'll need to skim through the template and move accordingly.
2nd There is no change after voting, so add an Ajax cahnge after voting, like in here
Yes there is.
Sorry you right, seems one of the template modificatiosn was done incorrectly on my part.
3rd after voting, if "$vbulletin->options['votechange']" is = to No, then the yellow thing is gone, and it moves to the bar showing your rating (like in here), otherwirse when clicking on your rating, display a meny to change vote.
Um, what?
Meaning that if "vote change" is setup as NO, then the yello bar won't show up when you go back to that massage [go to another essage and come back]
I've tried it on a default template with no template edits but this one, and when I come back to a rated thread (by me), the yellow bar is still there. I've setup my admin option for thread rating (Required Thread Rating Votes to Show Rating) as 1, but still nothing, after voting, the bar is still there.. My guess is that there is an <if> missing. one which stablishes if you have voted already, and if you are allowed to change your vote.
In other words what is the conditional, wghich determiens if you have rated a thread or not
thank you ^^
Liquid1ce
04-18-2007, 06:18 PM
has this been fixed yet?
princeedward
04-18-2007, 09:04 PM
My rating box is a bit larger than vborg, how can I make it smaller?i guess i can't find the right answer for this one...how can we make the look same as vborg....a little bit smaller...also the space above and between the "rate this thread" above and the buttons below just to make it nearer...i guess that will make it smaller
appreciate any help here
thanks and best regards...
;)
magnus
04-18-2007, 09:20 PM
has this been fixed yet?
It's not broken.
Mecho
04-18-2007, 10:36 PM
Thanks ... installed .
I put it abov the quickreply, doesnt work fine. No ajax effect after vote..
i guess i can't find the right answer for this one...how can we make the look same as vborg....a little bit smaller...also the space above and between the "rate this thread" above and the buttons below just to make it nearer...i guess that will make it smaller
appreciate any help here
thanks and best regards...
;)
simply add the following code on the CSS box of your theme
h3{font-size:13px;margin:0;display:inline}
-------------
what is the conditional, which determines if you have rated a thread or not
anyone?
Mecho
04-19-2007, 05:40 PM
everything is alright for me but when i set this option :
Poll and Thread Rating Options > Required Thread Rating Votes to Show Rating
: 10 ( for example , more than 1 i mean ) .
then when ppl rate it doesnt work. they should refresh the page . i mean its like that VOTE doesnt accept!!
and when that # is 1 , when one user rate , other ppl can not see the rate box !!
any idea plz ??
princeedward
04-20-2007, 01:17 PM
....what bro. mecho above mean here is...in case we add at....
Poll and Thread Rating Options > Required Thread Rating Votes to Show Rating
more than 1....(ie 2 or more)...the first voter until second to the last will not received any reaction from the rate this thread page...meaning it's hardly to notice that your vote has been accepted or not... but actually it has...right?...not only until the last poster cast his vote or rate that thread...will show or all stars will apppear...
:rolleyes:
suggestions:
is it possible to make or add something to it...that when you rate the thread or vote...you will receive a small note or at the same vote page...something like....please view attachment below!
Second:
Poll and Thread Rating Options > Required Thread Rating Votes to Show Rating
if we just put 1 on it...then it means only one can rate that thread.,it work like that to my site also...no way that other members can rate that thread....it means if the poster's thread is spamming only or just to put the website look bad...he rate it also excellent of course with 5 shining stars...:mad:
:confused:
Third:
one more thing...how this stars thing work...i mean if 1 or more poster cast his vote/rate "Terrible" and only 1 make it "Excellent" or the other way around???
appreciate any possible help or any explanation here....
thanks and best regards to all...
:p
alqloob alsahya
04-20-2007, 02:17 PM
thank"s ^_^
Hemanth
04-20-2007, 03:59 PM
Installed but removing now.. It's breaking the vB's Quick rely AJAX.
magnus
04-20-2007, 04:08 PM
Installed but removing now.. It's breaking the vB's Quick rely AJAX.
Not if you place it correctly (or unless you're using some other modification).
foulplay
04-22-2007, 07:37 PM
nvm..
I get "Error on page" in IE.
"Object doesn't support this property or method"
How can I fix this?
vppremier
04-26-2007, 07:40 AM
I've been looking for this a long time now, thank you
I have three questions:
1. How do I add a white border around the box?
2. How do I adjust the width of the box, I would like to make it smaller.
2. Take a look at a post on my site http://stepinthezone.com/forum/showthread.php?t=1742
'Thread Tools' 'Search This Thread' & 'Rating' on the top right of the first post have lost their style formatting, how would I fix this? I just replace the showthread template with the one you supplied.
kruchczan
04-29-2007, 11:51 AM
fix view for firefox ?
PoetJA-1975
05-01-2007, 01:48 AM
Wow! A very nice share - Glad I found this one!
Thanx very much for the sharing ;)
Jacquii.
Quantnet
05-01-2007, 02:47 AM
Nice one
Thanks a lot
How do i get the button like vborg when we click to vote ?
This messed up the action of my original rate thread button. Did I do something wrong?
PoetJA-1975
05-05-2007, 04:37 AM
OK - hopefully someone can help me with this code :o
I've a customized template and trying to use the extra "Upgrade" code .
The thing is sometimes both the voting block AND the "you've already voted" block shows at the same time. I'm sure there is an if conditional that will allow a correction for that issue....
At anyrate - the code:
<!---------------------- / UPGRADE------>
<if condition="$show['rating'] AND $vbphrase[rate_thread]">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="$stylevar[imgdir_misc]/_cat-top_lft.gif" alt="" /></td>
<td width="100%" class="cat-top_x">
Thank You For Your Rating
</td>
<td><img src="$stylevar[imgdir_misc]/_cat-top_rht.gif" alt="" /></td>
</tr></table>
<table cellpadding="4" cellspacing="1" width="100%" border="0" class="tborder" align="center">
<tr>
<td class="alt1">
<div align="center" id="threadrating_current">
You have already rated this thread. <font color="#8B008B"><strong><phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase></strong></font>
</div>
</td>
</tr>
</table>
<div class="cat-btm_x"><div class="cat-btm_lft"></div><div class="cat-btm_rht"></div></div>
</if>
<br />
<!---------------------- / UPGRADE------>
Any help will be appreciated ;)
Thanx,
Jacquii.
jahshaka
05-17-2007, 10:06 AM
i think after reading through all the posts in this thread that i am the 3rd person to report that this doesnt work on ie7 - the other 2 people got the same error as me:
"Object doesn't support this property or method"
is there a fix for this?
jahshaka
05-17-2007, 10:22 AM
i cashed this down with my debugger in ie7 and got the following, hopew it helps
this is the file that throws the error:
vbulletin_ajax_threadrate.js
this is the routine
/**
* OnReadyStateChange callback. Uses a closure to keep state.
* Remember to use me instead of this inside this function!
*/
this.handle_ajax_response = function()
view the source snd scroll down a few lines to the alert(error) and you can see the loop that its triggered in
4x4 Mecca
05-30-2007, 03:43 AM
I too have installed this and it's working fine to vote, but when I come back later, it doesn't show the rating above the post like it does right after you vote. I tried the edits here. Has anyone gotten that working and which did they use?
4x4 Mecca
06-01-2007, 05:20 PM
I too have installed this and it's working fine to vote, but when I come back later, it doesn't show the rating above the post like it does right after you vote. I tried the edits here. Has anyone gotten that working and which did they use?
:confused:
Ronak
06-02-2007, 03:45 AM
Nice Hack ...
For a demo, scroll up to the big orange rectangle, select "Excellent" then click "Vote Now!"
:D :D :D :D :D
eNforce
06-08-2007, 11:22 PM
How do I make the upgrade addition appear after I vote? It appears when someone else votes which makes me unable to vote myself.
(it shows up after Vote, but if I refresh the voting menu comes back!)
Ohiosweetheart
06-13-2007, 05:48 PM
Does the rating show on every thread on your forum? Or do you have an option for it to appear only on release threads?
PoetJA-1975
06-14-2007, 12:15 AM
Apparently modification is not supported :(
Jacquii.
obmob
06-14-2007, 02:57 AM
It's a great idea, but there seems to be missing conditionals in this mod. :(
Mazinger
06-20-2007, 03:33 PM
Very nice one, thanks.
Thought there's a small problem with it for RTL versions, I'll try to fix this.
Vizionz
06-23-2007, 05:47 PM
Can someone do this up where it works for everyone :P like vb.org
Quantnet
06-23-2007, 06:09 PM
If you have Forum Event mod, this will be below that RSVP form. How would we change to move it on top of the RSVP form ?
Hollister
06-24-2007, 02:23 PM
Is it possible to make this available only on certain sub forums
humanbeatbox
07-11-2007, 09:59 AM
Superb. Thanks for this - and also for the extra code bits...
Adam21
07-11-2007, 02:14 PM
This mod is working good on 367pl1 and on IE7.Thank you!
obmob
07-15-2007, 11:42 PM
When you rate, the box is still there... the big box is not hidden like vborgs do... how to hide it? :(
Mecho
07-17-2007, 11:29 AM
This mod is working good on 367pl1 and on IE7.Thank you!
works exact like a vb.org rate system ??? can i take a look if its possible ?
thanks
fpattberg
07-17-2007, 12:06 PM
Hi. I have the same problem.
Once I have voted I still have the possibility but obviously can not vote twice. But I still have the option.
Can we get rid of that?
Thanks.
obmob
07-17-2007, 03:30 PM
Have tried setting more <if> statements, but if i add and extra <if> then the box hides after you vote, but no one else is able to vote... the box hides for everyone...
Any ideas? :p
Ba$im
07-17-2007, 05:09 PM
I want this for forum f=X
not for all forum
how can I do that?
SuSpect
07-19-2007, 06:53 AM
How can we do this: if already voted, not show rating bar?
Good mod thanks, installed :)
ragtek
07-21-2007, 08:51 PM
for all who have installet this: https://vborg.vbsupport.ru/showthread.php?t=152931
just install this
i've made one little modifikation
instead of the orange background i took alt1
dooch
07-26-2007, 01:47 PM
Is there a fix yet for the way it doesnt close after rating?
obmob
07-27-2007, 05:35 PM
Not yet, my efforts are wothless so far, sorry... not a coder :p
Yours Truly
07-27-2007, 05:50 PM
Is there a fix yet for the way it doesnt close after rating?
Whats wrong with it?
obmob
07-30-2007, 11:57 PM
Whats wrong with it?Just rate a thread, then visit the same thread... the big box won't hide, even if you rated before. >.<
exc1te
08-13-2007, 04:07 PM
yeah.. it ain't woking.. not with 3.6.8 anyway :/
Mecho
08-14-2007, 08:38 AM
i'm wondering y vb.org dont like that ppl have this mod :D
magnus
08-14-2007, 11:09 AM
i'm wondering y vb.org dont like that ppl have this mod :D
Who says vB.org doesn't like that people have this mod? Where did you get an idea like that?
Mecho
08-14-2007, 05:01 PM
Who says vB.org doesn't like that people have this mod? Where did you get an idea like that?
noone said that anywhere ! if u check this topic many ppl like to have a rate system like this one that vb.org using ! but i didnt see that anybody try to help ppl in this topic or release a new version !
obmob
08-14-2007, 10:49 PM
noone said that anywhere ! if u check this topic many ppl like to have a rate system like this one that vb.org using ! but i didnt see that anybody try to help ppl in this topic or release a new version !Tha't's because noone has been able to make it work as it's supposed. :(
I thought i was close, but it didn't work... there must be a custom made conditional, cause when i use the rating conditionals, everythign is hidden after one vote. No matter if you do it ot someone else... in other words, it would be a one vote only funtion. :mad:
Roxie
08-15-2007, 01:46 AM
yeah.. it ain't woking.. not with 3.6.8 anyway :/
Works fine in 3.6.8.
Mecho
08-15-2007, 08:27 AM
Tha't's because noone has been able to make it work as it's supposed. :(
I thought i was close, but it didn't work... there must be a custom made conditional, cause when i use the rating conditionals, everythign is hidden after one vote. No matter if you do it ot someone else... in other words, it would be a one vote only funtion. :mad:
yea exactly same problem here ! i hope finally someone fix this :)
obmob
08-16-2007, 03:45 PM
yea exactly same problem here ! i hope finally someone fix this :)me too! >.<
Steigeisen
08-16-2007, 07:16 PM
same here! If it works on this site, why don't we get the fix? :(
obmob
08-17-2007, 04:43 PM
same here! If it works on this site, why don't we get the fix? :(Maybe the vb.org coder doesn't want us to have it! :eek:
exc1te
08-17-2007, 08:31 PM
Maybe the vb.org coder doesn't want us to have it! :eek:
I will go through the code tomorrow after work and I will try to make it working.. ;)
Steigeisen
08-17-2007, 08:59 PM
great! Looking forward to it, thank you very much!
rayphua
08-17-2007, 11:20 PM
Thanks in advance, Exite!
optrex
08-18-2007, 11:16 AM
Could really do with the option to vote not appearing again when you revisit the thread. Just displaying the rating would be better. Otherwise its a fantastic hack.
Hello,
Follow the instructions in the attached text file and the vote box will work EXACTLY like it does on vb.org. (This includes seeing the vote after it was made.)
Glad I could help.
optrex
08-18-2007, 04:22 PM
rich you are a star - works great
Steigeisen
08-18-2007, 06:59 PM
Gee, thank you very much!
But something is not working here. After I made the changes I got two yellow bars, of which one disappeared after rating. I tried this twice, and I can't figure out why.
I noticed that there is a code which I cannot find in the original showthread (the red line):
<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php?threadid=$threadinfo[threadid]&p=$postid" method="post" id="inlinemodform">
$spacer_open
</if>
<a name="poststop" id="poststop"></a>
this is missing in the original. Since I'm not familiar with coding I just copy/paste the mod as the coder recommended. His attached file is the whole showthread template. However, in there I do not find that line. Is it that, what causes the problem?
I'd be glad if someone could send me the showthread template with the mod in full. Shame on me, but as I said, I'm not familiar with coding. Although I'm sure I made everything right and that second bar does work, it's just that I have two bars now, the old and a new one.
Or just let me know where I have to change something to get that old bar out. ;)
Thanks for your help!
Greets
Steigi
optrex
08-18-2007, 07:05 PM
The code rich placed is for a fresh install. If you have already installed it, work backwards with the old code replacements, then just work your way around the additional deletes in the middle section - you'll see if you compare the 2 instructions.
Steigeisen
08-18-2007, 07:07 PM
Gee great! Thank you very much! Silly me, I didn't think of that. ;)
Now it's working perfectly, just great!
Thanks again and greets
Happy Steigi :)
rayphua
08-18-2007, 07:23 PM
Just installed the new code Rich provided. I'm not sure if it did manage tolve the 1 vote issue, where only 1 member needs to vote to get the thread rated. Does anyone know?
gokhan58
08-19-2007, 10:56 AM
thank you
soletrader
08-19-2007, 01:37 PM
Hello,
Follow the instructions in the attached text file and the vote box will work EXACTLY like it does on vb.org. (This includes seeing the vote after it was made.)
Glad I could help.
Im gettting an error:
The conditional on line 382 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed.
Can you double check this? Thanks
Hello,
You should try redoing the modification. Everything I wrote in there works as is. I tested it several times, and as you can see, others have also made the same edits and the conditionals work fine for them as well.
I would suggest removing the mod, and then follow my instructions to the letter. If you do it as i have it outlined, it will work.
If you have already made modifications to your SHOWTHREAD template, its possible you are removing an "</if> from one that already exists.
Mecho
08-19-2007, 06:02 PM
rich thanks for try to help ... i have a problem . when i click on Vote Button nothing will be happen !! still box is there and seems that i can not vote at all !!
any idea ?
Hello,
If you want to create me a temporary admin account, I am more than willing to have a look at your showthread template to try and decipher the issue. Shoot me info via PM if you wish for me to have a look.
optrex
08-19-2007, 08:52 PM
This may or may not be related, but has only started appearing recently - has anyone lost inline moderation or get "you have submitted an invalid vote" on quick reply?
I have lost the inline moderation. I will look into that. I have had no issue with the quick reply as of yet.
optrex
08-19-2007, 09:03 PM
Yep, just tested and confirmed - on a thread that has a vote a user loses quick reply - mods and admins lose inline moderation.
Threads without a vote are OK
I am just about there. I have one java error to work around, and I should be able to post the corrected version.
As I state in my profile, I am a fairly new coder, so some of this takes me a few. ;) (Not to mention this isn't my mod. lol)
I have released my version of this modification so that I can support and update it as needed. The rewritten release can be found here: https://vborg.vbsupport.ru/showthread.php?t=155697
I mean no disrespect to Magnus for re-releasing this modification. I rewrote the entire modification from scratch and added/removed code where needed. These 2 mods are not the same as my version works as vBulletin.org's does.
Stoebi
08-20-2007, 12:22 AM
I miss the AJAX feature which come with the originally rating.
Regards,
Stoebi
optrex
08-20-2007, 07:12 AM
I think we are back to square one atm as Rich's link has now been graveyarded.
By my request, they removed that link. The thread was acting funny. The download is now located here: https://vborg.vbsupport.ru/showthread.php?t=155701
That "should" sort everything out!
magnus
08-21-2007, 02:23 PM
Here, if you've applied the mod previously. Try this. I haven't had a chance to do much testing, but I just slapped those changes and it seems to be working. Once rated, the box will no longer display.
Let me know if that fixes it.
FIND:
<if condition="$show['threadrating']">
<if condition="$show['ratethread']">
REPLACE WITH:
<if condition="!$show['rating'] AND $show['threadrating'] AND $show['ratethread']">
FIND:
</script>
</if>
</if>
REPLACE WITH:
</script>
</if>
obmob
08-21-2007, 03:39 PM
Hmm... well, magnus idea hides the box, but it's similar to the results I got, only one vote allowed.
I'll play with this and let you know if I get some results XD
magnus
08-21-2007, 05:21 PM
Ah, so the problem you're saying is that only 1 person can vote. I'll look at that.
magnus
08-21-2007, 06:33 PM
Ok, I see the problem people are having. I started off trying to fix it, and it looks more like I'm rewriting it. So let's see how this winds up and what we're left with..
obmob
08-21-2007, 09:01 PM
Yeah, we should allow more votes, don't you think? :p
I was unable to make it work, thanks! :(
hirlas
09-02-2007, 01:36 PM
:up: works great, easy install,
thank you for your hard work!
is it possible to install it not in the showthread but inside the first post?
chikkoo
03-11-2008, 02:19 PM
is it possible to install it not in the showthread but inside the first post?
Or, atleast I will prefer to put it after the First post.
Thomas P
03-17-2008, 03:18 PM
Great, will give it a try.
Does this fully support the permission and option settings?
MissKalunji
03-17-2008, 03:54 PM
what permissions are those?
Thomas P
03-18-2008, 07:42 AM
You can set which usergroup has what set of rights on specific forums.
Ok, I see the problem people are having. I started off trying to fix it, and it looks more like I'm rewriting it. So let's see how this winds up and what we're left with..
are you going to be releasing a new version soon?
MissKalunji
03-18-2008, 01:15 PM
You can set which usergroup has what set of rights on specific forums.
No it doesn't seem to work with usergroup even tho i turned it off for unregistered it still showing but it doesn't bother me since i only use it for the video section
Breathex
04-11-2008, 06:46 AM
Can we use this w/3.7.x?
powerful_rogue
05-13-2008, 02:10 PM
Hi,
Im wondering if anyone could help! In themod it says find and delete
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating"); </script></if>
The closest thing I have to it in my showthread is
<if condition="$show['threadrating']">
<td class="tcat" id="threadrating" nowrap="nowrap">
<a href="$show[nojs_link]#goto_threadrating"><span id="threadrating_current"><if condition="$show['rating']">$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" /><else />$vbphrase[rate_thread]</if></span></a>
<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadrating", true); </script></if>
</td>
</if>
Any help would be great :)
EDIT - Found it in the end. This mod dosent appear to operate correctly. Uninstalled.
TruthElixirX
05-24-2008, 09:59 PM
Is it possible to move the box to the bottom of the thread? I have tried it, but when I do, the AJAX breaks.
The box shows up, I select a box, and hit vote. Loading bar at the bottom of the screen shows up real quick and goes away, but hte box stays the same. I refresh the page the vote went through. The AJAX just isn't refreshing the box. Ideas?
Ninja Tom
06-13-2008, 06:03 PM
Can we use this w/3.7.x?
Is it stable enough? I've looked over some comments and it doesn't seem to be all that stable.
vietdjclub
07-13-2008, 01:21 AM
how to set "you can't rate your own thread" please
Harley D
07-28-2008, 04:04 AM
If a member is banned and the post deleted. and if someone clicks on a link to that post, you will get a database error.
Database error in vBulletin 3.6.7:
Invalid SQL:
SELECT *
FROM yourdatabase_threadrate
WHERE userid = 1
AND threadid =;
It should tell the person that the post was deleted or some other page error, rather than a database error.
Harley D
09-15-2008, 08:43 PM
Anyone have a fix?
Funny I seem to have the opposite problem, but im a little confused as to which is the latest version, anyway I used the code posted at the top of this thread all works fine however if some one has already rated a post the box is not there for others, you can still rate it by clicking the rating but its not as good. you only see the box before it has been rated once.
Any ideas on how to fix this? I'm using 3.6.8. Then I can finally click installed.
Thanks
Harley D
01-14-2009, 04:43 PM
Man has this thread died or what?
I guess people are using a different mod for thread rating other than this one...
What is it? Link?
MissKalunji
01-14-2009, 04:55 PM
this one : https://vborg.vbsupport.ru/showthread.php?t=185117
Harley D
01-19-2009, 02:26 AM
Ahhh... Thank You.
kersti
03-09-2009, 08:05 PM
Any chance of an update to 3.8???
vithorius
05-12-2009, 03:54 PM
Where is the file to download...?!?
mgurain
11-19-2010, 01:44 PM
Where can I find the mod for thread rating like vbulletin.org here for vb 4.x ?
Help others by rating vBorg Thread Rating
snakedevil
01-17-2011, 05:58 AM
Where can I find the mod for thread rating like vbulletin.org here for vb 4.x ?
I need too :)
acast
05-24-2012, 11:04 PM
Nobody updates this for the vbulletin 4?
tinhlt
10-19-2012, 04:16 PM
Where can I find the mod for thread rating like vbulletin.org here for vb 4.x ?
I need too :)
Nobody updates this for the vbulletin 4?
i also need. Pls help me.
Manoel J?nior
04-25-2015, 11:12 AM
Please, update for vb 4.x
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.