MyBB Community Forums

Full Version: How can I display announcements on the portal?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've tried everything to get my announcements to display on the portal page and used a number of guides but for some reason they are not showing.

Here are some of the portal codes if it might help

Portal
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
<table width="100%" cellspacing="0" cellpadding="{$theme['tablespace']}" border="0" align="center">
<tr><td valign="top" width="200">
{$welcome}
{$pms}
{$search}
{$stats}
{$whosonline}
</td>
<td>&nbsp;</td>
<td valign="top">
{$latestthreads}
{$announcements}
</td>
</tr>
</table>
{$footer}
</body>
</html>

Portal_announcement
<table cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>{$icon} <a href="{$mybb->settings['bburl']}/{$announcement['threadlink']}">{$announcement['subject']}</a></strong></td>
</tr>
<tr>
<td class="trow2" align="right">
<span class="smalltext">{$lang->posted_by} {$profilelink}  - {$anndate} {$anntime} {$numcomments}</span>
</td>
</tr>
<tr>
<td class="trow1">
<table border="0" cellpadding="{$theme['tablespace']}" width="100%">
	<tr>
		{$avatar}
		<td class="trow1">
			<p>
				{$message}
			</p>
			{$post['attachments']}
		</td>
	</tr>
	<tr>
		<td align="right" colspan="2" valign="bottom">
			<span class="smalltext">
				<a href="{$mybb->settings['bburl']}/printthread.php?tid={$announcement['tid']}"><img src="{$theme['imgdir']}/printable.gif" alt="{$lang->print_this_item}" title="{$lang->print_this_item}" /></a>&nbsp;<a href="{$mybb->settings['bburl']}/sendthread.php?tid={$announcement['tid']}"><img src="{$theme['imgdir']}/send.gif" alt="{$lang->send_to_friend}" title="{$lang->send_to_friend}" /></a>
			</span>
		</td>
	</tr>
</table>
</td>
</tr>
</table>
<br />

If anyone can help me I would be very grateful, if you need any more additional information please let me know in a post below.

P.s My announcement fid=7 (forumdisplay.php?fid=7)
Home » Board Settings » Portal Settings

There is a setting for Pulling announcements from forums. Enter the FID where you will post announcements.
(2013-03-26, 06:26 PM)Cedric Wrote: [ -> ]Home » Board Settings » Portal Settings

There is a setting for Pulling announcements from forums. Enter the FID where you will post announcements.
After all the guides and people telling me to change the code >.<

Thank you so much for this, I feel like a moron for not even thinking of going there >.<
hahaha Big Grin Sometimes it happens, Enjoy Big Grin