MyBB Community Forums

Full Version: Thread rating
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've changed the template around so the rating is inside the 'Thread/Author' column but for some reason it's showing above the column/table for some reason aswell as in the correct 'thread/author' column.
[Image: 295abea.png]

This is the code I have for 'forumdisplay_thread'
<tr>
	<td align="center" class="{$bgcolor}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>
	<td class="{$bgcolor}">
		{$attachment_count}
		<div>
			<span>{$prefix} {$gotounread}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>
			<div class="author smalltext">{$thread['profilelink']}<span style="float:right"><a href="" rel="nofollow">{$rating}</a> </span>
</div>
	</td>
	<td class="{$bgcolor}" style="white-space: nowrap; text-align: right;">
		<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
		<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
	<td align="center" class="{$bgcolor}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
	<td align="center" class="{$bgcolor}">{$thread['views']}</td>
	{$rating}
	</td>
{$modbit}
</tr>
Anybody?
u can off the thread rating.

go to phpmyadmin and run this query

UPDATE mybb_forums SET allowtratings = '0' WHERE allowtratings = '1'

rating will be removed
(2010-01-29, 03:18 PM)alex20_2008 Wrote: [ -> ]u can off the thread rating.

go to phpmyadmin and run this query

UPDATE mybb_forums SET allowtratings = '0' WHERE allowtratings = '1'

rating will be removed

Thanks but that's not what I want to do. I want to keep the rating inside the thread column but without it displaying above the forum aswell (as shown in the pic). Wink
Did you run your site through a validator?

You have a lot of template errors. Start by validating your pages. It will fix the problem.
(2010-01-29, 03:34 PM)labrocca Wrote: [ -> ]Did you run your site through a validator?

You have a lot of template errors. Start by validating your pages. It will fix the problem.

Could you recommend a good one? The ones I've tried all give various different errors.

Thanks Smile
You have to fix the errors that's what a validator is for. They tell you the errors but it's you that must fix them.