Not Solved Portal Block
#1
Not Solved
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
Reply
#2
Not Solved
You'd need to create a plugin for that, or add core edits.
No longer involved in the MyBB project.
Reply
#3
Not Solved
Could you possibly point me in the right direction to make a plugin like this?
Reply
#4
Not Solved
^ you can use global templates plugin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)