MyBB Community Forums

Full Version: Portal Block
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I hope you guys understand this.

I have been messing around with the portal and stuff. You know when your in the portal template you see 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}
{$stats}
{$latestthreads}
</td>
<td>&nbsp;</td>
<td valign="top">
{$announcements}
</td>

I know if i wanted to make a new block I can just put a table in between like {$welcome} and {$pm}, but how can i make it so I dont have to put

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>Test Block</strong></td>
</tr>
<tr>
<td class="trow1">
This is a test block. 
</td>
</tr>
</table>

but instead i can just put this {$testblock} . Like setting the table as a variable like {$welcome} and {$pm} are.

Thank you very much in advance!

-Kody
You'd need to create a plugin for that, or add core edits.
Could you possibly point me in the right direction to make a plugin like this?