Jump to the post that solved this thread.
Solved: 2 Years, 11 Months, 3 Weeks ago Getting a a value from one of the SQL tables to show up on forumdisplay
#7
Solved: 2 Years, 11 Months, 3 Weeks ago
Attached is a quick-n-dirty plugin that will hopefully be adequate for your purposes.

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>


Attached Files
.php   mythreadratingdisplay.php (Size: 1.95 KB / Downloads: 63)
Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: Getting a a value from one of the SQL tables to show up on forumdisplay - by Laird - 2022-02-03, 12:22 PM

Forum Jump:


Users browsing this thread: 14 Guest(s)