MyBB Hacks

Full Version: Halp! Trying to add side column
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I am trying to add a side column to my index page in order to show latest status and Lee's attachment gallery...problem is,  I need the forums and the right column to be fluid.  This code makes the right column shrink on smaller res screens and then break margins but the forum column does not shrink!  Here is my code...I'm trying, but I suck at formatting!

Code:
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
	lang.no_new_posts = "{$lang->no_new_posts}";
	lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$gn}

<table width="100%" border="0" align="center">
<tr>
<td valign="top" width="70%">
{$forums}
</td>
<td valign="top" width="225px">
{$custom_status_index}

{$fishhattachment_gallery}
</td>
</tr>
</table>


{$boardstats}
<dl class="forum_legend smalltext">
	<dt><img src="{$theme['imgdir']}/on.png" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->new_posts}</dd>
	<dt><img src="{$theme['imgdir']}/off.png" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
	<dd>{$lang->no_new_posts}</dd>
	<dt><img src="{$theme['imgdir']}/offlock.png" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
	<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$fishhattachment_gallery}{$footer}
</body>
</html>

Any screenshot?
http://www.7173mustangs.com/index.php

Looks good on widescreen but not so good on 1024x768!
Try resizing the banner in your Market Place forum.
Haha, I didn't even notice that!  Thanks RateU!  

OK...I think I got it now!  

Does it look ok?

http://www.7173mustangs.com/index.php
It is better. But still out of margin.
If you really want a big banner there, try to restyle the forums that have banner. You can use template prefix.
(01-27-2011 07:08 AM)RateU Wrote: [ -> ]It is better. But still out of margin.
If you really want a big banner there, try to restyle the forums that have banner. You can use template prefix.
I'm not sure I follow?  You mean with XThreads?
Yep. A very simple example:
[attachment=401]

Image at the right side (not the MyBB logo)  is 256px.
Banner size is 486px.

Forum 2 and Forum 3 use the same template prefix.
Forum 1 uses default template.

So, it is possible to make it two column (with XThreads).
WOW!  That looks great!  

I made a global temp named mp_forumdisplay_threadlist and copied forumdisplay_threadlist contents with some minor changes to the % but nothing happened.  (I did add the mp_ prefix to the forum)  Do you have the basic example as above that I can start with?
You should create mp_forumbit_depth2_forum template, not mp_forumdisplay_threadlist template.
Where you put the advertisement banner?
Pages: 1 2 3
Reference URL's