2022-02-03, 12:22 PM
(This post was last modified: 2022-02-03, 11:08 PM by Laird. Edited 1 time in total.
Edit Reason: Updated the attached plugin to fix a bug
)
Attached is a quick-n-dirty plugin that will hopefully be adequate for your purposes.
Place it in your
Place it in your
inc/plugins
directory, activate it via the ACP, and then edit a {$myownrating}
variable into your forumdisplay_thread_rating
template. For example, here's what that template looks like in my default theme after inserting that variable:<td align="center" class="{$bgcolor}{$thread_type_class}" 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>
{$myownrating}
<script type="text/javascript">
<!--
Rating.build_forumdisplay({$thread['tid']}, { width: '{$thread['width']}', extra_class: '{$not_rated}', current_average: '{$ratingvotesav}' });
// -->
</script>
</td>