MyBB Community Forums

Full Version: adding a custom right sidebar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

MikeInToshx

Hi guys,

I would like to create a similar sidebar-design and looks from this forum picture:

[attachment=29155]

I rather don't use any plugin, but just paste some code.
It has to be on every page, not on just the Index.

Can anyone please help me with this?
It would make the site more complete !

Thanks in advance.
see http://community.mybb.com/post-532431.html
and http://community.mybb.com/thread-73062.html

there can be similar tutorials with code like above. but, why not use a plugin

MikeInToshx

Both links are just for the index page I'm thinking? I want it to be part of the whole forum, so I want it also if u go into forums ect. on every page.

With plugins u got less controle about it,
design wise ect, if u want to edit something..

MikeInToshx

So how do i make a sidebar on every page?

MikeInToshx

bump.
^ add below code at the end of header template
<div id="main">
<div id="left_content">

add below code at the beginning of footer template
</div> <!--  end of left_content -->
            <div id="right_content">your sidebar content</div>
 </div>   <!-- end of main -->
<br class="clear" />

you have to add required style in global.css of the theme (at the end)

#left_content {
    float:left;
    width: 640px;
    padding:8px;
    }

#right_content {
    float:right;
    width:240px;
    padding:8px;
    }

#footer {
    clear:both;
    padding:8px;
    }

above code is given as an example. change as required.

MikeInToshx

wtf ?

all that did was:

[attachment=29186]

wait, after removeing all the space things &nbmps or something,

now it is this:

[attachment=29187]
the code is given as an example.
you have to make your content with tables or divs where it says "your sidebar content"
also adjust css for your requirement.

MikeInToshx

Okay, but it still has a weird shape.. look at my website again.

computerhelpforum.be
^ hmm., I do not see anything abnormal.
it is a simple code as you wanted and you can improve appearance by adding required content.

or you can try this code
http://community.mybb.com/thread-96838-p...#pid707972
Pages: 1 2