MyBB Community Forums

Full Version: Change table layout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do i achieve these change?

[attachment=9071]
Do you mean move the last post colum across as shown below

[Image: layout.png]

If so you need to alter the following

forumbit_depth1_cat
forumbit_depth2_forum
forumdisplay_subforums

Cheers fishntassie
Yes that is exactly what i mean. I also want to add a table with gif in to who's online section
OK if the image below shows what you want then follow the instructions and it should work.

[Image: stats_area.png]

adding an image to the stats area

Open >> template manager >> Index Page Template >> index

go down about 13 lines and find

<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>

change to this

<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>


then open template manager >> Index Page Template >> index_birthdays

find this

<tr><td class="tcat"><strong>{$lang->todays_birthdays}</strong></td></tr>
<tr>
<td class="trow1"><span class="smalltext">{$bdays}</span></td>
</tr>

Replace with this also replace YOUR IMAGE LINK with the path to your image

<tr><td class="tcat" colspan="2"><strong>{$lang->todays_birthdays}</strong></td></tr>
<tr>
<td class="trow1" width="2%"><span class="smalltext"><img src="YOUR IMAGE LINK" alt="{$lang->todays_birthdays}" /></span></td>
<td class="trow1"><span class="smalltext">{$bdays}</span></td>
</tr>

then open template manager >> Index Page Template >> index_stats

find this

<tr><td class="tcat"><strong>{$lang->boardstats}</strong></td></tr>
<tr>
<td class="trow1"><span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
</span>
</td>
</tr>

Replace with this also replace YOUR IMAGE LINK with the path to your image

<tr><td class="tcat" colspan="2"><strong>{$lang->boardstats}</strong></td></tr>
<tr>
<td class="trow1" width="2%"><img src="YOUR IMAGE LINK" alt="{$lang->boardstats}" /></td>
<td class="trow1"><span class="smalltext">
{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />
{$lang->stats_newestuser}<br />
{$lang->stats_mostonline}
</span>
</td>
</tr>

then open template manager >> Index Page Template >> index_whosonline

find this

<tr>
<td class="tcat"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>

Replace with this also replace YOUR IMAGE LINK with the path to your image

<tr>
<td class="tcat" colspan="2"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</td>
</tr>
<tr>
<td class="trow1" width="2%"><img src="YOUR IMAGE LINK" alt="{$lang->whos_online}" /></td>
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>

you can see it working here My Site

Hope this helps
Here's the instructions for moving the Last post section

Open >> template manager >> Forum Bit Templates >> forumbit_depth1_cat

Find

<td class="tcat" width="200" align="center"><strong>{$lang->forumbit_lastpost}</strong></td>

move it to before

<td class="tcat" width="85" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_threads}</strong></td>

Then open >> template manager >> Forum Bit Templates >> forumbit_depth2_forum

Find

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

Move it to before

<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>

Then open >> template manager >> Forum Bit Templates >> forumdisplay_subforums

Find

<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>

Move it to before

<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>

you can see it working here My site

Hope that helps
fishntassie Wrote:Here's the instructions for moving the Last post section

Open >> template manager >> Forum Bit Templates >> forumbit_depth1_cat

Find

<td class="tcat" width="200" align="center"><strong>{$lang->forumbit_lastpost}</strong></td>

move it to before

<td class="tcat" width="85" align="center" style="white-space: nowrap"><strong>{$lang->forumbit_threads}</strong></td>

Then open >> template manager >> Forum Bit Templates >> forumbit_depth2_forum

Find

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

Move it to before

<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>

Then open >> template manager >> Forum Bit Templates >> forumdisplay_subforums

Find

<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>

Move it to before

<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>

you can see it working here My site

Hope that helps

are you sure this
Quote:<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
is in
Quote:template manager >> Index Page Template >> index
and not in
Quote:template manager >> Index Page Template >> index_boardstats
Thanks a bunch it worked fine. And yes the change is in index_boardstats
interesting thats what i initially thought aswell but with my template set it is in the index page template itself had me confused for a while as to why it would not with the index_boardstats.

glad it worked for you either way.

Cheers FnT