MyBB Community Forums
[How To?] Toggle sidebar? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] Toggle sidebar? (/thread-186373.html)



Toggle sidebar? - Crystalline - 11-15-2015

can someone input a toggle slide bar in this code? im using latest posts as a plugin and made my own user statistics 
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
	lang.no_new_posts = "{$lang->no_new_posts}";
	lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
	<script>
	window.oncontextmenu = function () { return false; } document.onkeydown = function (e) {	if (window.event.keyCode == 123 || e.button==2)	return false; }
	</script>

</head>
<body>
{$header}
{$miunashout}
<div style="float:{$left};width: 74%;">{$forums}</div><br><br>
<div style="float:{$right};width:25%;">
		<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><div><strong>   
<i class="fa fa-bar-chart"></i>&nbsp;{$mybb->user['username']}'s Statistics
	</strong></div></td>
</tr>
<tr>
<td class="trow1 latestpost">
	<i class="fa fa-th-large"></i>&nbsp;Total Threads:<span style="float: right;padding: 3px 15px;">{$stats['numthreads']}</span></td></tr>
<td class="trow1 latestpost">
<i class="fa fa-comments"></i>&nbsp;Total Posts:<span style="float: right;padding: 3px 15px;">{$stats['numposts']}</span></td>
<tr><td class="trow1 latestpost">
<i class="fa fa-users"></i>&nbsp;Total Members:<span style="float: right;padding: 3px 15px;">{$stats['numusers']}</span></td></tr>
<td class="trow1 latestpost">
<i class="fa fa-child"></i>&nbsp;Newest Member:<span style="float: right;padding: 3px 15px;">$newestmember</span></td>
<tr><td class="trow1 latestpost">
<i class="fa fa-user-plus"></i>&nbsp;Most Online:<span style="float: right;padding: 3px 15px;">$recordcount</td></tr></span>
</td>
</tr>
</table></div>
<div style="float:{$right};width:25%;">{$sidebar}</div>
{$boardstats}
{$footer}
</body>
</html>