MyBB Community Forums

Full Version: Show Number of Thread Ratings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I thought it was interesting how http://lunaticoutpost.com/ displays the number of ratings a thread has received and the possibilities with this. Is there a variable for this?

https://u.nya.is/hlhsvb.png
Edit theme template forumdisplay_thread_rating replace whole content of template with:
<td align="center">
	<div  id="rating_table_{$thread['tid']}">
		<ul class="star_rating{$not_rated}" id="rating_thread_{$thread['tid']}">
			<li style="width: {$thread['width']}%" class="current_rating" id="current_rating_{$thread['tid']}">{$ratingvotesav}</li>
		</ul>
	</div>
		<div>
			<span class="smalltext">{$thread['numratings']} votes</span>
		</div>
		<script type="text/javascript">
		<!--
			Rating.build_forumdisplay({$thread['tid']}, { width: '{$thread['width']}', extra_class: '{$not_rated}', current_average: '{$ratingvotesav}' });
		// -->
		</script>
	</td>