MyBB Community Forums

Full Version: Announcements always add a new column in the forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,
I think this picture explains my problem as well:

[Image: fmnvc2.png]
Probably because the theme you're using seems to have thread ratings removed, but it didn't compensate for announcements and the extra column is still getting added.

Could you paste your 'forumdisplay_announcements_announcement' template here? Or try using the one below and see if it fixes your problem:

<tr>
<td align="center" class="{$bgcolor}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt=""/></td>
<td align="center" class="{$bgcolor}" width="2%">&nbsp;</td>
<td class="{$bgcolor}">
	<a href="{$announcement['announcementlink']}"{$new_class}>{$announcement['subject']}</a>
	<div class="author smalltext">{$announcement['profilelink']}</div>
</td>
<td align="center" class="{$bgcolor}">-</td>
<td align="center" class="{$bgcolor}">-</td>
<td class="{$bgcolor}" style="white-space: nowrap; text-align: right"><span class="smalltext">{$postdate} {$posttime}</span></td>
{$modann}
</tr>

Note: the template above is simply the default with ratings removed, if your theme has made any changes to the announcement template they may be lost, so backup your current template first.
I don't want to make a mess, so I paste my "forumdisplay_announcements_announcement":

 <tr>
<td align="center" class="{$bgcolor}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt=""/></td>
<td align="center" class="{$bgcolor}" width="2%">&nbsp;</td>
<td class="{$bgcolor}">
	<a href="{$announcement['announcementlink']}"{$new_class}>{$announcement['subject']}</a>
	<div class="author smalltext">{$announcement['profilelink']}</div>
</td>
<td align="center" class="{$bgcolor}">-</td>
<td align="center" class="{$bgcolor}">-</td>
{$rating}
<td class="{$bgcolor}" style="white-space: nowrap; text-align: right"><span class="smalltext">{$postdate} {$posttime}</span></td>
{$modann}
</tr>

Thanks Beardy!
By 'try using the one below' I meant just replace the entire template file with the code I provided.
Problem solved with your code Big Grin
Thank you Beardy!