MyBB Community Forums

Full Version: How to get the same space between the words
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to get the same space between the words Forum - Threads - Posts - Last Post in all categories

http://forum.hestekatalog.dk/index.php?language=english

IE8 = big problem
IE7 = little problem
Firefox = no problem

I've made some changes in forumbit_depth1_cat

After:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"><thead><tr><td class="thead" colspan="5"><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></td></tr></thead><tbody style="{$expdisplay}" id="cat_{$forum['fid']}_e"><tr><td class="tcat" width="47%" colspan="2"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td><td class="tcat" width="13%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td><td class="tcat" width="13%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td><td class="tcat" width="27%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td></tr>{$sub_forums}</tbody></table><br />

Before:

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"><thead><tr><td class="thead" colspan="5"><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></td></tr></thead><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 />

But it does not have the same effect everywhere on the front page - why?
go to acp->templates&styles->your templates->forumbittemplates->forumbit_depth1_cat

in it search for something like this block
<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="70%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$sub_forums}
</tbody>

if you see any percentage value widths [ width="85%" ] , replace them with [ style="min-width: 85px;" ] try changing the widths by giving different numbers until it fits the screen. 85 to other values.

Note: Backup the template before editing.
Thanks for the reply!

but it looks like "Kunst Forum" behave differently - also with other codes
i have checked your forum in IE 8 - http://forum.hestekatalog.dk/

it looks perfect, isnt the issue fixed?
No, the problem is not solved.

When I make changes in forumbit_depth1_cat, I do not get the same resltat in the 3 categories (Hestekatalog.dk's forum, Kunst forum and Voltigering).

There must be other things than the file forumbit_depth1_cat that affects the tables.

I just do not know what!
you must do for the subforum bit also.

go to acp->templates&styles->*yourtemplate*->forum display templates->forumdisplay_subforums
Very weird:

I now use original forumdisplay_subforums and forumbit_depth1_cat

View forum with IE8 - http://forum.hestekatalog.dk/

If I delete the description or shortens the description under "Kunst forum" there is no problem.