Page 4 of 23

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Mon Jan 28, 2008 7:34 pm
by ericb007
rpowers, your easy and simple technique was perfect for me. Thanks.

Minor correction: I think the overall_header modification should go below:

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">

I saw no <body>. I only found "<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">"
rspowers wrote:Here is the code I used to put a sidebar on the right hand side and it was really easy:

In overall_header.html:

after <body>:

Code: Select all

<div style="min-width: 900px;">

<div style="float: left; width: 85%; height: 100%;">

In Overall_footer.html:

Before </body>

Code: Select all

</div>
<div style="float: left; width: 14%; height: 100%; min-width: 135px;">
<a href="../contact.php"><img src="image.jpg"/></a>

</div>
</div>
Here is what it looks like: http://www.delmarvasurf.com/phpBB3/

I found I liked this sidebar better than the one described above and its easier, but its a matter or preference. They both work fine.

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Thu Jan 31, 2008 8:57 pm
by mukundis
DBM wrote:Anyone know of a way to add a sidebar to the index page only?

Thanks.
yes I have did that in my forum. http://www.iluvdesi.com

Actaully I have made it configurable from Admin Panel.
U can select which forum to have it and which not to have.
Its a bit complex though

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Wed Feb 20, 2008 3:35 pm
by stexan78
there is a definitive MOD about this ?

Many thanks

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Thu Feb 21, 2008 6:19 am
by sixtvs
How do you put contents on the sidebar? Specifically a chat/shoutbox?

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Fri Feb 22, 2008 7:45 pm
by deepnoizer
Great guide, almost gets me where I wanted to be,
Just wondering is there a way to place the side bar outside of the main forum boddy?
I'm in process of converting following forum:

http://www.deepnoizer.net/ineforums/

to the following:

http://www.ineportal.net/ineforum/


thx in advance

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Sat Feb 23, 2008 6:31 am
by kuri2004
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.
stexan78 wrote:there is a definitive MOD about this ?
Many thanks

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Sat Feb 23, 2008 3:20 pm
by PelleP
ericb007 wrote:rpowers, your easy and simple technique was perfect for me. Thanks.

Minor correction: I think the overall_header modification should go below:

<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">

I saw no <body>. I only found "<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">"
rspowers wrote:Here is the code I used to put a sidebar on the right hand side and it was really easy:

In overall_header.html:

after <body>:

Code: Select all

<div style="min-width: 900px;">

<div style="float: left; width: 85%; height: 100%;">

In Overall_footer.html:

Before </body>

Code: Select all

</div>
<div style="float: left; width: 14%; height: 100%; min-width: 135px;">
<a href="../contact.php"><img src="image.jpg"/></a>

</div>
</div>
Here is what it looks like: http://www.delmarvasurf.com/phpBB3/

I found I liked this sidebar better than the one described above and its easier, but its a matter or preference. They both work fine.
Great modification I beleive. But.. Where do I ad my banners?

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Thu Feb 28, 2008 10:32 pm
by codeblue
rspowers wrote:Here is the code I used to put a sidebar on the right hand side and it was really easy:

In overall_header.html:

after <body>:

Code: Select all

<div style="min-width: 900px;">

<div style="float: left; width: 85%; height: 100%;">

In Overall_footer.html:

Before </body>

Code: Select all

</div>
<div style="float: left; width: 14%; height: 100%; min-width: 135px;">
<a href="../contact.php"><img src="image.jpg"/></a>

</div>
</div>
Here is what it looks like: http://www.delmarvasurf.com/phpBB3/

I found I liked this sidebar better than the one described above and its easier, but its a matter or preference. They both work fine.
I've added this to my forum with great success... However, I am looking to have another identical banner on the left side of the forum as well. Can anyone suggest a modification to this code to get another banner on the left?

The format would be:

BANNER | FORUM | BANNER

Thanks!

My forum URL: http://vancouver.punchforum.com/phpBB3/

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Fri Feb 29, 2008 6:51 am
by kuri2004
Hello,

Seems there is a little problem...
We can see the words "online" at the right of the advertisement. It should not appear there.
Any solution?
mukundis wrote: U can Also find it on
http://iluvdesi.com

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Fri Feb 29, 2008 1:31 pm
by rspowers
Where code

Code: Select all

<body>
is, it was meant to mean the <body.....etc code that you pointed to above.

To add the column to the left, you need to create a div tag, just as you did for the right column for the left side.

Here is the logic, which I think will help out:

You start with container
then you add the div for the left column
then you add the div for the forum(main center column)
then you add the div for the right column
then you close the container

This basically means, that you need to create a new div tag in between this code:

Code: Select all

<div style="min-width: 900px;">

<div style="float: left; width: 85%; height: 100%;">

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Fri Feb 29, 2008 2:39 pm
by nzcc221
Hi guys,

I'm trying to insert the new colum to the left, using the overall_sidebar method.

I can get it too work in Prosilver just as it should, but not in any of the custom styles..... it always apears at the bottom of the page under or above the copyright info....can someone please point in the direction as to why....I know it is a div wrong somewhere, but have tried it on 5 different styles with teh same effect...please help

NZ

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Fri Feb 29, 2008 6:54 pm
by rspowers
Well, the code was created for prosilver. Each of those styles is different, so you need to look at their code and insert everything into the right place based on the way that style CSS is set up.

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Sat Mar 01, 2008 5:58 pm
by Matthew69
I updated the tutorial so it would display mukundis's tutorial. I hope its easier to find now! :D

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Wed Mar 05, 2008 10:29 pm
by Soliloquy
How can we make it load different HTML files (or none at all) based on what page the user is on? For instance, I'd like AdSense ads displayed on the index, viewforum and viewtopics pages, but other text or my own ads on non--ccontent pages.

Re: How to Add a Sidebar in prosilver Tutorial

Posted: Thu Mar 06, 2008 2:08 am
by mej284
I am building a syle right now based on prosilver. I have left and right sidebare and I have them coming in an out depending where I am at on the forum. And it is working, I am up to the coloring and text and next I will be going into the artwork.

Now that I told you all the useless stuff, you want to use condition statements like:

Code: Select all

<!-- IF S_VIEWFORUM --> <!-- ENDIF --> 
and

Code: Select all

<!-- IF S_VIEWTOPIC --> <!-- ENDIF -->
another you will have to add

Code: Select all

<!-- IF S_INDEX --> <!-- ENDIF --> 
go here to see how to create the last one http://www.phpbb.com/community/viewtopi ... C#p4559115

Those I gave you are for a true response to ask for a false response just put the work no in front of the S_whatever.