gagf
Member
Posts: 38
Registered: 3-25-2012
Member Is Offline
|
|
[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?
|
|
anendeth
|
|
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?
|
|
Mouser
XMB Contributor
Posts: 202
Registered: 4-14-2008
Member Is Offline
Mood: Christmasy. Yes, in September.
|
|
Hmm.. Use whatever width you want(% or px), but make the sidebar a fixed with?
|
|
gagf
Administrator
Posts: 38
Registered: 3-25-2012
Member Is Offline
|
|
if i add sidebars or boxes , i will do away with the ones in the footer area
|
|
vamsee
Experienced
Posts: 50
Registered: 1-5-2003
Member Is Offline
Mood: No Mood
|
|
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.
|
|