MyBB Community Forums

Full Version: Would this be possible?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am wanting to combine the thead and tcat on the index page.

So instead of two bars it would be one.

It should sorta look like -

area name l topics l posts l last post

and no tcat bar under.

I hope that made sense.

Oh and if it is possible could you give me a breif how to?
Template edits, if you're using the default templates just replace forumbit_depth1_cat with:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2"><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></td>
<td class="thead" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="thead" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="thead" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span>
<div class="expcolimage"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
{$sub_forums}
</tbody>
</table>
<br />

And displayforum_subforums with:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2" align="center"><strong>{$lang->sub_forums_in}</strong></td>
<td class="thead" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="thead" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="thead" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$forums}
</table>
<br />

Quite an awesome idea actually! Smile
That worked Big Grin. Thanks AJS.

Edit: Humm now how to get a footer for the table to show correctly...
I'm actually trying this right now. It seemed like a complex topic but it's surprisingly easy.
Of course it's possible. I did that sorta with http://fireforums.net
^^^
FireForums looks pretty good Bob. Smile
(2010-06-11, 05:01 AM)seeker Wrote: [ -> ]^^^
FireForums looks pretty good Bob. Smile
Meh it's alright, it's not mine anymore.
bump .. I am trying to put this in a new theme,but it isn't working ...

Here is what I have - .
forumdisplay_subforums
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2" align="center"><strong>{$lang->sub_forums_in}</strong></td>
<td class="thead2" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="thead2" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="thead2" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$forums}
</table>
<br />

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

.thead {
	color: #ffffff;
	background-image: url(http://i46.tinypic.com/160v1c8.png);
	background-repeat: no-repeat;
	hieght: 30px;
}

.thead2 {
	color: #ffffff;
	background-image: url(http://i50.tinypic.com/2ufbuc6.gif);
	background-repeat: repeat;
	hieght: 30px;
}

Screeny of problem - http://i46.tinypic.com/mmvehl.png


Edit: This seems to be happening on google chrome,but not firefox.
You only need to edit forumbit_depth1_cat with this code:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div><strong><a href="{$forum_url}">{$forum['name']}</a></strong><br /><div class="smalltext">{$forum['description']}</div></div></td>
<td class="thead" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="thead" width="85" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="thead" width="200" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
<div class="expcolimage expcolmod"><img src="{$theme['imgdir']}/{$expcolimage}" id="cat_{$forum['fid']}_img" class="expander" alt="{$expaltext}" title="{$expaltext}" /></div>
</td>
</tr>
</thead>
<tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e">
<tr>
</tr>
{$sub_forums}
</tbody>
</table>
<br />

And in your global.css, make a class called expcolmod:
.expcolmod {
	    position: relative;
        top: 35px;
        right: 7px;
}

You will have to edit the positioning if you edit the expcol image but that shouldn't be a problem.
the problem is still there and now on firefox it isn't showing correctly...
Pages: 1 2