MyBB Community Forums

Full Version: Templates Not Loading All HTML
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So in my forum I am trying to add boardstats in the sidebar. I have put in the html:
<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>
</head>
<body class="bodyimg">
{$header}
<div class="sidebar">  
   <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tcat2" style="text-align:center;">
  <div class="theadtitle2" style="float:none;"><a href="#"><center><i class="fa fa-microphone"></i> Announcements</center></a></div>
</td>
</tr>
<tbody>
<td class="trow1">
  <div class="tgnewsticker">
<ul>
  <li>Welcome to {$mybb->settings['bbname']}.</li>
	<li>Please <a href="{$mybb->settings['bburl']}/member.php?action=register">Join/Register</a> to access our complete website.</li>
</ul>
    </div>
</td>
</tbody>
</table>
  <br />
		<td class="thead" colspan="2"> <strong>Board Stats</strong> </td>
		<tbody>
		<tr>
			<td class="trow1">Posts: {$stats['numposts']}</td>
			<td class="trow1">Threads: {$stats['numthreads']}</td>
		</tr>
	</tbody>
	</td>
	{$teamonline}<br />
	{$sidebar}<br />
</div>
<div class="forums">
{$forums}
</div>
{$boardstats}
{$footer}
</body>
</html>

Here is the board stats part alone:
		<td class="thead" colspan="2"> <strong>Board Stats</strong> </td>
		<tbody>
		<tr>
			<td class="trow1">Posts: {$stats['numposts']}</td>
			<td class="trow1">Threads: {$stats['numthreads']}</td>
		</tr>
	</tbody>
	</td><br />

But this is what I get:
https://gyazo.com/5aea227c0aa78673a889fc27ad4b76ef

It only loads the <strong> tags of the HTML, nothing else. I checked using inspect element. Also, I checked the DB and the HTML is all in the DB, but not coming out on the page.
Try this out!

<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>
</head>
<body class="bodyimg">
{$header}
<div class="sidebar">  
  <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tcat2" style="text-align:center;">
 <div class="theadtitle2" style="float:none;"><a href="#"><center><i class="fa fa-microphone"></i> Announcements</center></a></div>
</td>
</tr>
<tbody>
<td class="trow1">
 <div class="tgnewsticker">
<ul>
 <li>Welcome to {$mybb->settings['bbname']}.</li>
   <li>Please <a href="{$mybb->settings['bburl']}/member.php?action=register">Join/Register</a> to access our complete website.</li>
</ul>
   </div>
</td>
</tbody>
 <br />
       <td class="thead" colspan="2"> <strong>Board Stats</strong> </td>
       <tbody>
       <tr>
           <td class="trow1">Posts: {$stats['numposts']}</td>
           <td class="trow1">Threads: {$stats['numthreads']}</td>
       </tr>
   </tbody>
   </td>
</table>
   {$teamonline}<br />
   {$sidebar}<br />
</div>
<div class="forums">
{$forums}
</div>
{$boardstats}
{$footer}
</body>
</html>
(2016-01-17, 02:41 AM)Nicole-Studios Wrote: [ -> ]Try this out!

<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>
</head>
<body class="bodyimg">
{$header}
<div class="sidebar">  
  <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="tcat2" style="text-align:center;">
 <div class="theadtitle2" style="float:none;"><a href="#"><center><i class="fa fa-microphone"></i> Announcements</center></a></div>
</td>
</tr>
<tbody>
<td class="trow1">
 <div class="tgnewsticker">
<ul>
 <li>Welcome to {$mybb->settings['bbname']}.</li>
   <li>Please <a href="{$mybb->settings['bburl']}/member.php?action=register">Join/Register</a> to access our complete website.</li>
</ul>
   </div>
</td>
</tbody>
 <br />
       <td class="thead" colspan="2"> <strong>Board Stats</strong> </td>
       <tbody>
       <tr>
           <td class="trow1">Posts: {$stats['numposts']}</td>
           <td class="trow1">Threads: {$stats['numthreads']}</td>
       </tr>
   </tbody>
   </td>
</table>
   {$teamonline}<br />
   {$sidebar}<br />
</div>
<div class="forums">
{$forums}
</div>
{$boardstats}
{$footer}
</body>
</html>

https://gyazo.com/894fd57d41b93f304597d616fcab210b

EDIT: I got it. Your code ultimately helped me find the problem Smile
Smile

It had to do with the table tag closing before the code you had in place, it's hard to find an exact working code without testing it out so I'm glad that bit helped ya!
(2016-01-17, 03:02 AM)Nicole-Studios Wrote: [ -> ]Smile

It had to do with the table tag closing before the code you had in place, it's hard to find an exact working code without testing it out so I'm glad that bit helped ya!

Using that I also made a post goal for my forum:
http://www.omegaforums.org/