MyBB Community Forums

Full Version: Portal Question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Board URL: http://chibullsnation.co.cc/forums/portal.php

Hello MyBB Support Staff & Avid Users,

I would like to add center blocks and right blocks to the portal, but I do not know how. I would like to add custom content to the center blocks and the right blocks, I would also like to customize. I'm very confused how to and when I went to ACP - Settings - Portal, did not show any settings to add new blocks. Any help would be greatly appreciated!

~ Aaron23.
You'll need to add them to the portal template, and you'd need a bit of HTML knowledge to add them. A basic box would be this:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tcat">Header</td>
</tr>
<tr>
<td class="trow1">Content</td>
</tr>
</table>
(2009-08-01, 08:01 PM)MattRogowski Wrote: [ -> ]You'll need to add them to the portal template, and you'd need a bit of HTML knowledge to add them. A basic box would be this:

Where would I add that html code to? My default portal code is this:
<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}
{$latestthreads}
</td>
<td>&nbsp;</td>
<td valign="top">
{$announcements}
</td>
</tr>
</table>
{$footer}
</body>
</html>
By default there's two columns so the middle column currently has {$announcements} in it... to add another one on the right, after...

<td valign="top">
{$announcements}
</td>

... add...

<td>&nbsp;</td>
<td valign="top">
This is where the right column code goes.
</td>

Then to any of the <td> tags that have a valign="top" attribute in them you can add a width="" attribute to make them wider/thinner.
Matt
I tried what's in this post and it didn't turn out to good. What I'm I doing wrong?

http://discusslasvegas.com/