2011-09-06, 03:22 AM
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.
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
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
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> </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