MyBB Community Forums

Full Version: stats allignment error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
after installing blackbb theme, MOD that gives the name of "users online in 24 hours" stopped working. so i copied the boardstats code from old theme templates and pasted it into black bb now its giving this error Sad

screenie attached.
go into the template and add colspan="2" to all the <td> elements.
m sorry but thats TOO confusing for me

heres my code, can ya do it for me? i wud appreciate it

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"><thead><tr><td class="thead" colspan="2"><div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div><div><strong>{$lang->boardstats}</strong></div></td></tr></thead><tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">{$whosonline}{$todays_top_posters}{$todays_top_posters}{$birthdays}{$forumstats}<tr>	<td class="tfoot" style="text-align: right" colspan="2">		<span class="smalltext">			{$logoutlink}			<a href="misc.php?action=markread">{$lang->markread}</a> |			<a href="showteam.php">{$lang->forumteam}</a> |			<a href="stats.php">{$lang->forumstats}</a>		</span>	</td></tr></tbody></table><br/>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" />
</div>
<div><strong>{$lang->boardstats}</strong>
</div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e" colspan="2">{$whosonline}{$todays_top_posters}{$todays_top_posters}{$birthdays}{$forumstats}
<tr>
<td class="tfoot" style="text-align: right" colspan="2">
<span class="smalltext">
            {$logoutlink}
            <a href="misc.php?action=markread">{$lang->markread}</a> |
            <a href="showteam.php">{$lang->forumteam}</a> |
            <a href="stats.php">{$lang->forumstats}</a>
        </span>
    </td>
</tr>
</tbody>
</table><br />
Try that. If it doesn't work, you'll need to modify the 2 plugin's templates and add colspan="2" to the <td> elements.
that alligns it fine but THEN it doesnt show up the "users online since 24 hours"