MyBB Community Forums

Full Version: [solved]Misplace. (Problem)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is my site http://www.gecommunity.liway.com/ and i am using vB Style by MyBBDesign, please take a look below the shoutbox there is "Mark All Forums Read Forum Team Forum Statistics" row but it was suppose to be at the below the forum. How can i make this right?
Hello ...

This is happening because the table of the forums list is not closed, and at its end there is that code of those links without being in a td and tr.

I guess the problem lays in 2 locations...im not sure cause i can't see your templates as i'd like.. the 1st is forumbit_depth1_cat you should clause the table using </table> (compare it to the original you will see). The 2nd is the index template...you can revert it if you want or compare it to the original; However make sure they are within a the correct table, in a tr and within a td.

If you face any problem just contact me back Big Grin .
regards
At the "forumbit_depth1_cat" it is like this----->

<tr><td class="thead" colspan="6"><div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" /></div>
<div><strong><a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div></td></tr><tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
{$sub_forums}</tbody>

and at the index is like this----->

<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
<sf_shoutbox>
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder"><thead><tr>
<td class="tcat" width="33">&nbsp;</td>
<td class="tcat"><strong>$lang->forumbit_forum</strong></td>
<td class="tcat" width="236" align="center"><strong>$lang->forumbit_lastpost</strong></td>
<td class="tcat" width="46" align="center" nowrap="nowrap"><strong>$lang->forumbit_threads</strong></td>
<td class="tcat" width="50" align="center" nowrap="nowrap"><strong>$lang->forumbit_posts</strong></td>
</tr>{$forums}<tr>
<span class="smalltext"><a href="misc.php?action=markread">$lang->markread</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="showteam.php">$lang->forumteam</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="stats.php">$lang->forumstats</a></span></td></tr></thead></table>
<br />
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
{$whosonline}
{$online_today}
{$birthdays}
{$forumstats}<!-- ASOIP_2_0_I -->
</table>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" align="left">
<table cellspacing="0" cellpadding="2" border="0">
<tr><td><img src="$theme[imgdir]/on.gif" alt="$lang->new_posts" /></td><td class="trow"><span class="smalltext">&nbsp;&nbsp;$lang->new_posts</span></td></tr>
<tr><td><img src="$theme[imgdir]/off.gif" alt="$lang->no_new_posts" /></td><td class="trow"><span class="smalltext">&nbsp;&nbsp;$lang->no_new_posts</span></td></tr>
<tr><td><img src="$theme[imgdir]/offlock.gif" alt="$lang->forum_locked" /></td><td class="trow"><span class="smalltext">&nbsp;&nbsp;$lang->forum_locked</span></td></tr>
</table>
<div align="right">$logoutlink</div>
</td></tr>
</table>
{$footer}
</body>
</html>

Cause i could not find what was wrong.
DragonLord Wrote:At the "forumbit_depth1_cat" it is like this----->

[b]<tr><td class="thead" colspan="6">[/b]<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" /></div>
<div><strong><a href="forumdisplay.php?fid={$forum['fid']}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div></td></tr><tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
{$sub_forums}</tbody>

and at the index is like this----->

<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
</head>
<body>
{$header}
<sf_shoutbox>
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder"><thead><tr>
<td class="tcat" width="33">&nbsp;</td>
<td class="tcat"><strong>$lang->forumbit_forum</strong></td>
<td class="tcat" width="236" align="center"><strong>$lang->forumbit_lastpost</strong></td>
<td class="tcat" width="46" align="center" nowrap="nowrap"><strong>$lang->forumbit_threads</strong></td>
<td class="tcat" width="50" align="center" nowrap="nowrap"><strong>$lang->forumbit_posts</strong></td>
</tr>{$forums}<tr>
<span class="smalltext"><a href="misc.php?action=markread">$lang->markread</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="showteam.php">$lang->forumteam</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="stats.php">$lang->forumstats</a></span></td></tr></thead></table>
<br />
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
{$whosonline}
{$online_today}
{$birthdays}
{$forumstats}<!-- ASOIP_2_0_I -->
</table>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="middle" align="left">
<table cellspacing="0" cellpadding="2" border="0">
<tr><td><img src="$theme[imgdir]/on.gif" alt="$lang->new_posts" /></td><td class="trow"><span class="smalltext">&nbsp;&nbsp;$lang->new_posts</span></td></tr>
<tr><td><img src="$theme[imgdir]/off.gif" alt="$lang->no_new_posts" /></td><td class="trow"><span class="smalltext">&nbsp;&nbsp;$lang->no_new_posts</span></td></tr>
<tr><td><img src="$theme[imgdir]/offlock.gif" alt="$lang->forum_locked" /></td><td class="trow"><span class="smalltext">&nbsp;&nbsp;$lang->forum_locked</span></td></tr>
</table>
<div align="right">$logoutlink</div>
</td></tr>
</table>
{$footer}
</body>
</html>

Cause i could not find what was wrong.
As zaher said, there should be a "</td></tr>" tag at the end of your coding Smile.
this part of the index
<span class="smalltext"><a href="misc.php?action=markread">$lang->markread</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="showteam.php">$lang->forumteam</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="stats.php">$lang->forumstats</a></span></td></tr></thead></table>

Should be

<td colspan="5">
<span class="smalltext"><a href="misc.php?action=markread">$lang->markread</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="showteam.php">$lang->forumteam</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="stats.php">$lang->forumstats</a></span></td></tr></thead></table>

In in a hurry ciao !! Toungue
How can i make it at the center? Now it is showing at the left side, i want it to be at the center.
replace this

<td colspan="5">

By

<td colspan="5" align="center">
regards
Thanks zaher1988. This problem is solved thanks to you. Smile