MyBB Community Forums

Full Version: Columns remove error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I want to remove posts and threads columns.
Ive done this:

Open forumbit_depth1_cat.

Find:
Code:
<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>
and remove it.

Open forumbit_depth2_cat

Find:
Code:
<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>
and remove it.

Open forumbit_depth2_forum

Find:
Code:
<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>
and remove it.

Columns are removed, but i am getting this:
[attachment=16416]
How to fix this ?

here is my three unedited original templates:

forumbit_depth1_cat
<div id="tabmenu_{$forum['fid']}"> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<div class="h2"><a href="{$forum_url}">{$forum['name']}</a></div>
<div class="smalltext">{$forum['description']}</div>
 
    <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}
</table>
<br />
</div>

forumbit_depth2_cat
<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']}{$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>

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


Edited templates:

forumbit_depth1_cat
<div id="tabmenu_{$forum['fid']}"> <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<div class="h2"><a href="{$forum_url}">{$forum['name']}</a></div>
<div class="smalltext">{$forum['description']}</div>
 
    <tr>
        <td class="tcat" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>

        <td class="tcat" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
    </tr>
    {$sub_forums}
</table>
<br />
</div>

forumbit_depth2_cat
<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']}{$subforums}</div>
</td>

<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

forumbit_depth2_forum
<tr>
<td width="50px" class="{$bgcolor}" align="center" valign="middle" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" style="padding-right:10px" /></td>
<td class="{$bgcolor}" valign="top">
<div class="thead"><a href="{$forum_url}">{$forum['name']}</a></div>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>

<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>

What can i do to fix this ? Any suggestions please ?


Link to my site:
http://www.globalgsm.mk
In depth1_cat remove:
        <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>

In depth2_cat remove:
<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>

And in depth2_forum remove:
<td class="{$bgcolor}" valign="middle" align="center" style="font-size:20px">{$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="middle" align="center" style="font-size:20px">{$posts}{$unapproved['unapproved_posts']}</td>
Thanks for the help, as you can see, i already tried that as you can see in my first post, tried once again, and still getting the same error. Can someone loook at my forum and help ?
i think it is something more. This appears just when i click on the category name, to show just one category of forums.
forumdisplay_subforums:

<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
That's solved my problem, thanks RateU.
You are most welcome. You have a nice theme there. Smile
Thank you.
I have one more question:
When i go in "view new posts" or "today posts",i am getting results but i want to align column names like:

Thread / Author - left, -------Forum-center,----------Last Post [asc]-right.

How can i do that? Which templates to edit ?
my website: http://www.globalgsm.mk
in attach is grafical info for my q.
You need to play around with search_results_threads template for the tcat.
(2009-12-08, 04:38 PM)RateU Wrote: [ -> ]You need to play around with search_results_threads template for the tcat.

You are great, Thanks once again.
You are most welcome, apo. Smile
Pages: 1 2 3