2010-01-13, 11:13 PM
How do I add the header and footer?
I have added the following template and it do not appear...
Also how do I make guests not access the page?
I have added this code at the top and nothing happened..
I have added the following template and it do not appear...
<?php
if($mybb->user['uid'] == 0)
{
error_no_permission();
}
?>
<html>
<head>
<title>{$mybb->settings[bbname]} • ShoutBox</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead"><center><strong>NAME HERE</strong></center></td>
</tr>
<tr>
<td class="tcat">TEXT HERE</td>
</tr>
<tr>
<td class="trow1" valign="top" align="center">
TEXT HERE
</td>
</tr>
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<br />
<tr>
<td class="trow1" valign="top" align="center">
<strong>TEXT HERE</strong>
</td></tr>
</table>
</table>
<br />
{$footer}
</body>
</html>
Also how do I make guests not access the page?
I have added this code at the top and nothing happened..
<?php
if($mybb->user['uid'] == 0)
{
error_no_permission();
}
?>