All I can suggest is read here and ask questions. I am somewhat of a newbie with all this as well. I am learning through hands on playing as my kids call it. There is a lot of good information here and a lot of great people willing to help.Soliloquy wrote:Thanks mej284, I got it working. Do you know where to read more about phpBB3 template conditionals and control structures?
I agree.kuri2004 wrote:Hello,
I have the same question! After reading the whole discussion, I got confused.
I tried with the code given in the first message but it didn't work.
Could anyone summarize with the right code? I just need a left (or right) sidebar.
mukundis wrote:I have a better tute.
No Tables Nothing. Just DIV DIV And Pure DIVS. God I hate Tables.
Open template\overall_footer.htmlCode: Select all
First Create a sidebar.html file in the template directory and add whatever you want.
NOTE: The reason I am putting the code in overall_footer is that I wanted to load the sidebar after my forum is rendered. As I will be displaying advertisements on the sidebar, It only makes sense to load them after the forum gets loaded so that Adsense bot can understand better as to what it needs to display.
FindAdd BeforeCode: Select all
<div id="page-footer"> <div class="navbar">
Code: Select all
<div class="page-sidebar"> <!-- INCLUDE sidebar.html --> </div>
Save the file.
Go to Administration Panel -> Styles -> Theme and click on Edit
FindFor Displaying Sidebar on Left Add afterCode: Select all
#page-body {
Also Remove the Following line bellow #page-bodyCode: Select all
width:85%; float:left
Code: Select all
float:auto
NOTE #page-body should look like thisGo To The Last line and add AfterCode: Select all
#page-body { float:left; margin:4px 0pt; width:81%; }
Code: Select all
.page-sidebar { float:right; margin-top:4px; width:14%; }
For Displaying Sidebar on Right Add afterGo To The Last line and add AfterCode: Select all
width:85%; float:Right
Code: Select all
.page-sidebar { float:left; margin-top:4px; width:14%; }
U can Play With the width to adjust the size and all. Just change the percentage.
I mean instead of 85% you can make it 80% or something.
DEMO
http://iluvdesi.com
Let me know my mistakes and any help u want.
Edit I made some typos. Corrected it. it Should Work now
Where would you put the code in overall_headder and overall_footer? Do you have to replace lines of code, or just add it somewhere?Matthew69 wrote:ADDS A SIDEBAR TO THE RIGHT ONLY
I think you would add this code to the overall_header.html instead of the other code...and in the overall_footer.html you would put thisCode: Select all
<table width="100%" border="0" cellspacing="10" cellpadding="0"> <tr> <td align="left">
ADDS A SIDEBAR TO BOTH SIDESCode: Select all
</td> <td width="200" align="right" valign="top" class="bodyline"> <table width="200" border="0" cellpadding="10" cellspacing="0" bgcolor="#CC0099"> <tr> <td><font color="#FFFFFF" size="1" face="Arial, Helvetica, sans-serif">Right column in here..</font></td> </tr> </table> </td> </tr> </table>
it you wanted one one each side you would
use this code in the overall_header.htmland this code in the footerCode: Select all
[size=85]<table width="100%" border="0" cellspacing="10" cellpadding="0"> <tr> <td width="200" align="left" valign="top" class="bodyline"> <table width="200" border="0" cellpadding="10" cellspacing="0" bgcolor="#0000CC"> <tr> <td><font color="#FFFFFF" size="1" face="Arial, Helvetica, sans-serif">Left column in here..</font></td> </tr> </table> </td> <td align="left">[/size]
I have only tested the right and left separately not together. they work separately so they should together.Code: Select all
</td> <td width="200" align="right" valign="top" class="bodyline"> <table width="200" border="0" cellpadding="10" cellspacing="0" bgcolor="#CC0099"> <tr> <td><font color="#FFFFFF" size="1" face="Arial, Helvetica, sans-serif">Right column in here..</font></td> </tr> </table> </td> </tr> </table>
Prune my cache? I'm sorry i don't follow.Raimon wrote:Did you after you edit the file and upload it , prune the cache into your acp ?