MyBB Community Forums

Full Version: Board stats issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey all.
Small problem I have edited the board stats to my own liking but this has happened. :o

[Image: NmRfFu2.png]
It seems as though the tfoot has moved over to the left instead of the 100% width?
Here is my index_stats template code;

<tr><td class="tcat"><span class="smalltext"><strong>{$lang->boardstats}</strong></span></td></tr>

 <tr><table border="0" cellspacing="0" cellpadding="0" class="tborder">

</tr>
<center><td class="forum_stats" width="33%" align="center" style="white-space: nowrap"><span class="smalltext"><b>Total Members:</b> {$membercount} <br />(Please welcome our newest member, <b>{$newestmember}</b>)</td>
<td class="forum_stats" width="33%" align="center" style="white-space: nowrap"><span class="smalltext"><b>Total Threads:</b> {$stats['numthreads']}</td>
<td class="forum_stats" width="33%" align="center" style="white-space: nowrap"><span class="smalltext"><b>Total Posts:</b> {$stats['numposts']}</span></td><center>

Am I doing something wrong?
Thanks.
check your index_boardstats template and see if the tfoot has any empty td...
(2015-03-30, 05:31 AM)mmadhankumar Wrote: [ -> ]check your index_boardstats template and see if the tfoot has any empty td...

Seems fine in the index_boardstats template.

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead{$collapsedthead['boardstats']}">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.png" 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}
{$birthdays}
{$forumstats}
<tr>
	<td class="tfoot" style="text-align: right">
		<span class="smalltext">
			<a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
			<a href="showteam.php">{$lang->forumteam}</a>
			{$statspage}
		</span>
		</td>
</tr>
</tbody>
</table>
<br />
may i have your forum url...
PM'd you the link.
This issue is now fixed elsewhere Smile The fix was as follows:

In the index_boardstats template, find:

<tr>
    <td class="tfoot" style="text-align: right">
        <span class="smalltext">
            <a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
            <a href="showteam.php">{$lang->forumteam}</a>
            {$statspage}
        </span>
        </td>
</tr>

Replace:

<tr>
    <td class="tfoot" style="text-align: right" colspan="3">
        <span class="smalltext">
            <a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
            <a href="showteam.php">{$lang->forumteam}</a>
            {$statspage}
        </span>
        </td>
</tr>
(2015-03-30, 02:54 PM)Euan T Wrote: [ -> ]This issue is now fixed elsewhere Smile The fix was as follows:

In the index_boardstats template, find:

<tr>
    <td class="tfoot" style="text-align: right">
        <span class="smalltext">
            <a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
            <a href="showteam.php">{$lang->forumteam}</a>
            {$statspage}
        </span>
        </td>
</tr>

Replace:

<tr>
    <td class="tfoot" style="text-align: right" colspan="3">
        <span class="smalltext">
            <a href="misc.php?action=markread{$post_code_string}">{$lang->markread}</a> |
            <a href="showteam.php">{$lang->forumteam}</a>
            {$statspage}
        </span>
        </td>
</tr>

Thanks once again Euan. Smile