MyBB Community Forums

Full Version: problem with ".tcat"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Welcome all.
I have a problem with the department that shows threads, posts, etc. I would like to make it so:
[Image: dobre.png]
and looks like this:
[Image: zle.png]
I know, however, that the fault lies with the "forumbit_depth2_forum" and "forumbit_depth1_cat".
But, if rewrites the contents of the forum is crash
see here is the code of good style

"forumbit_depth1_cat"
<table border="0" cellspacing="0" cellpadding="0" class="tborder2">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="theadleft"></div>
<div class="theadright"></div>
<div class="theadmain">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div>
</div>
</td>
</tr>
</thead>
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
<br />

forumbit_depth2_forum
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

and here the code style in which I want to have just like on the first image
forumbit_depth1_cat
<div class="forum_wrap">
<div class="thead_main"><div class="thead_left"><div class="thead_right"><div class="thead_wrap">
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
<div class="float_left"><strong><a href="{$forum_url}" title="{$forum['description']}" class="tip">{$forum['name']}</a></strong></div>
<div class="clear"></div>
</div></div></div></div>
<table border="0" cellspacing="0" cellpadding="8" class="tborder">
<tbody class="forums" style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
<td class="tcat_main" colspan="3"><div class="float_right" style="margin-right: 208px"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span>
</div><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
</tr>
{$sub_forums}
</tbody>
</table>
</div>

forumbit_depth2_forum
<tr id="forum_{$forum['fid']}">
<td class="trow1" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="trow1" valign="top">
<div class="float_right">
<strong class="white">{$threads}</strong>{$unapproved['unapproved_threads']} {$lang->forumbit_threads} <strong class="white">{$posts}</strong>{$unapproved['unapproved_posts']} {$lang->forumbit_posts}
</div>
<strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="trow2" valign="top" align="center" width="260">{$lastpost}</td>
</tr>
I'll be very grateful for your help.