2016-01-14, 09:56 AM
Hi,
I've currently moved from vbulletin to mybb. I've got about 85% of the old theme integrated from vb but I'm struggling to add a login box / logged in panel to the side bar?
On the old theme I had a login box and when they logged in it showed last online, PMs, new posts, todays posts etc.
When I try and use the $welcomebox snippet it distorts the current design.
Here's the current code:
Would anyone have any hints or tips on how to integrate this successfully?
Thanks!
I've currently moved from vbulletin to mybb. I've got about 85% of the old theme integrated from vb but I'm struggling to add a login box / logged in panel to the side bar?
On the old theme I had a login box and when they logged in it showed last online, PMs, new posts, todays posts etc.
When I try and use the $welcomebox snippet it distorts the current design.
Here's the current code:
<html>
<title>{$mybb->settings['bbname']}</title>
<head>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
{$header}
<body id="forums">
<div class="side" style="float: right; width: 25%">
{$sidebar}
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>Search</strong></td>
</tr>
<tr>
<td class="trow1" align="center">
<form method="post" action="{$mybb->settings['bburl']}/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" class="textbox" name="keywords" value="" />
{$gobutton}
</form>
</td>
</tr>
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead">
<div class="float_left"><strong>Board stats</strong></div>
</td>
</tr>
<tr>
<td class="trow1">
Posts: {$stats['numposts']} <br />
Topics: {$stats['numthreads']} <br />
Members: {$stats['numusers']} <br />
Newest member: {$newestmember} <br />
Most online: {$mostonline['numusers']}
</td>
</tr>
</table>
<br />
</div>
<div class="forum" style="float: left; width: 73%;">{$forums}</div>
<div class="forum" style="float: left; width: 73%;">{$boardstats}</div>
<br class="clear" />
{$footer}
</body>
</html>
Would anyone have any hints or tips on how to integrate this successfully?
Thanks!