MyBB Community Forums

Full Version: Where / how would I add custom blocks to Portal ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

i read in some other post that someone asked how to add custom blocks to the Portal and the reply he got was "adding tables in portal template". Sounds good, but how and especially where, exact position in the template to add it.

A simple HTML example for a working custom that don't mess up the other tables from the original template would really help and be greatly appreciated.

Here is my portal template.
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
<script type="text/javascript">
<!--
	var fitonpage_on = "{$mybb->settings['g33k_fitonpage_enabled']}";
	var fitonpage_resize = "{$mybb->settings['g33k_fitonpage_resize']}";
	var fitonpage_fluid = "{$mybb->settings['g33k_fitonpage_fluid']}";
	var fitonpage_topbar_resized = "{$lang->fitonpage_topbar_resized}";
	var fitonpage_topbar_full = "{$lang->fitonpage_topbar_full}";
	var fitonpage_topbar_text_class = "{$mybb->settings['g33k_fitonpage_topbar_text_class']}";
	var fitonpage_topbar_bground = "{$mybb->settings['g33k_fitonpage_topbar_bground']}";
	var fitonpage_topbar_icon = "{$mybb->settings['g33k_fitonpage_topbar_icon']}";
	var fitonpage_location = "portal";
-->
</script>
</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}
</td>
<td>&nbsp;</td>
<td valign="top">
{$announcements}
</td>
<td>&nbsp;</td>
<td valign="top" width="200">
{$latestthreads}
</td>
</tr>
</table>
{$footer}
</body>
</html>

Any help is appreciated. Thank you.

Wolf

Okay, scratch that. Found a topic with all the info. Wink One thing I didnt found so far is the width of the Portal blocks. Can they be changed ? Wider in size ?

Thanks.

Wolf
In the code (or the code you found)

<td valign="top" width="200"> change that width number - bear in mind that the size of the center block will be affected by changing the outer tds.
thank you. Wink