MyBB Community Forums

Full Version: "1 1 1 1" for {$multipage}?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
For some reason, I get this when viewing threads:

<!-- start: showthread_newthread -->
<a href="newthread.php?fid=2"><img src="images/tf2/newthread.gif" alt="Post Thread"></a> 
<!-- end: showthread_newthread -->
</div>

1
1
1
1
<table class="tborder" style="clear: both;" border="0" cellpadding="4" cellspacing="1">
<tbody><tr>
<td class="thead" colspan="2">

Any idea what this is, what's causing it, and how to fix it?

EDIT: It appears that the amount of 1s depends on the amount of posts. :\
Did you modify the a template or have a plugin that might be causing this? There's definately nothing in the MyBB code to be causing this.
Templates: I have edited other templates, but only header, footer, and some postbit ones. Can those possibly interfere with other templates (showthread)? Here is where I traced the problem to:
<div style="float: right; padding-bottom: 4px;">
	{$newreply}{$newthread}
</div>
{$multipage}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="clear: both;">

Plugins: absolute zero.
Looks like $multipage is the problemo. Paste the multipage & the postbit templates here
showthread_multipage:
<tr>
<td class="tcat" colspan="2"> {$multipage}</td>
</tr>

postbit:
<tr>
<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
{$post['user_details']}
</td>
<td class="{$altbg}" width="85%" valign="top">
<table width="100%">
<tr><td>{$post['posturl']}{$post['icon']}<span class="smalltext"><strong> {$post['subject']}</strong></span>
<br />
<div id="pid_{$post['pid']}">
<p>
{$post['message']}
</p>
</div>
{$post['attachments']}
{$post['signature']}
<div style="text-align: right; vertical-align: bottom;">
{$post['editedmsg']}
{$post['iplogged']}
</div>
</td></tr>
</table>
</td>
</tr>
<tr>1
<td class="{$altbg}" height="0" style="white-space: nowrap; text-align: center;"></td>
<td class="{$altbg}" width="100%" valign="middle" height="18">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr valign="bottom">
		<td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}</span></td>
		<td align="right"><span class="smalltext">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}</span></td>
	</tr>
	</table>
</td>
</tr>
{$seperator}

EDIT: found the problem, it was <tr>1 in the postbit template.