XMB Forum Software
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: [New] How to Add Sidebars
gagf
Member
***




Posts: 38
Registered: 3-25-2012
Member Is Offline


[*] posted on 5-7-2012 at 04:08 AM
[New] How to Add Sidebars


Full Board URL: http://www.gagunforum.com/
XMB Version: 1.9.11

I would like to add sidebars or side boxes to my forum. Left or right (haven't Decided yet) for now i would put ads in there, I have my forum set to 98% width

Can someone help me with a piece of code or whatever it takes to do this?
View user's profile View All Posts By User
anendeth
XMB Lead Customer Support
*********


Avatar


Posts: 80
Registered: 5-20-2007
Location: San Jose, CA
Member Is Offline


[*] posted on 5-7-2012 at 09:31 AM


Quote: Originally posted by gagf  
Full Board URL: http://www.gagunforum.com/
XMB Version: 1.9.11

I would like to add sidebars or side boxes to my forum. Left or right (haven't Decided yet) for now i would put ads in there, I have my forum set to 98% width

Can someone help me with a piece of code or whatever it takes to do this?


the only problem with doing that, is you will have to have fixed widths. This will make it to where your site will look different to anyone that comes on it. For instance if someone with 800x600px screen comes on, and you have your width set to 800 px, they're not going to see the adverts at all.

Even if you tried to not to a fixed width, the problem would still arise. You'd have your site set to.. say 75%.. and then the sidebar set to 23% if someone that uses a smaller pixel per ratio, the ads aren't going to show up properly. Instead they'll be shushed.

It already looks like you have a lot of advertisements on your forum, are you sure you'd like to add more?
View user's profile Visit user's homepage View All Posts By User
Mouser
XMB Contributor
********




Posts: 202
Registered: 4-14-2008
Member Is Offline

Mood: Christmasy. Yes, in September.

[*] posted on 5-7-2012 at 06:55 PM


Hmm.. Use whatever width you want(% or px), but make the sidebar a fixed with?
View user's profile View All Posts By User
gagf
Member
***




Posts: 38
Registered: 3-25-2012
Member Is Offline


[*] posted on 5-8-2012 at 01:09 AM


if i add sidebars or boxes , i will do away with the ones in the footer area
View user's profile View All Posts By User
vamsee
Experienced
***


Avatar


Posts: 50
Registered: 1-5-2003
Member Is Offline

Mood: No Mood

[*] posted on 6-16-2012 at 03:03 AM


in admin CP, open templates -> Header ,

add this at bottom :


Code:
<table cellspacing="0" cellpadding="1" border="0" width="$tablewidth" align="center"> <tr> <td width="200" valign="top"> <table cellspacing="0" cellpadding="0" border="0" width="100%" align="center" bgcolor="{$THEME['bordercolor']}"> <tr> <td> <table border="0" cellspacing="{$THEME['borderwidth']}" cellpadding="$tablespace" width="100%"> <tr> <td class="category"><font color="{$THEME['cattext']}"><strong>Test Sidebar</strong></font></td> </tr> <tr> <td class="tablerow" bgcolor="{$THEME['altbg1']}">Test text</td> </tr> </table> </td> </tr> </table> </td> <td valign="top">


you can change width="200" to whatever width you want and also replace Test Sidebar and Test text with adcode or whatever html code you like.

edit footer template , and add this at top :

Code:
</td> </tr> </table>


you can see an example of sidebar with search box and ads in my signature link.



Life is taxing, and death is relaxing
Astrology in Modern World
View user's profile Visit user's homepage View All Posts By User

  Go To Top

Powered by XMB 1.9.12 (Debug Mode)
XMB Forum Software © 2001-2024 The XMB Group
[Queries: 16] [PHP: 38.9% - SQL: 61.1%]