Not Solved Modifying the Portal
#1
Not Solved
I know the Portal shows the latest topics made in the first forum on your board so I have a question about whether we can edit the Portal to show something different.

Firstly, can we rename the portal to something such as news.php? If so what would I need to do so it runs like normal?

Secondly, the portal code is as follows:

<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>
		<td class="trow1a" width="1" align="center" valign="top">
			<img src="{$announcement['avatar']}" alt="" {$avatar_width_height} />
		</td>
		<td class="trow1a">
			<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>

Now, where it says {$message} could I take that out and add custom text which I edit through the template if I ever wish to change it? What I mean is, I want the Portal to act as a news page, and don't want it to take the announcements from the forum, but to show the text I have it set to in the template. And if I was to add more news, it makes another bow etc.

All replies are appreciated. Thank you.
Reply


Messages In This Thread
Modifying the Portal - by JohnMac - 2010-09-11, 10:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)