3.2 sidebar

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Ideas Centre
testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

3.2 sidebar

Post by testingground » Wed Aug 07, 2019 8:02 pm

Can anyone tell me how to add a sidebar on the left, under the banner/navbar.
ie the banner and navbar is full width and the sidebar goes at the side of the boards etc

thanks

User avatar
Lumpy Burgertushie
Registered User
Posts: 66566
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: 3.2 sidebar

Post by Lumpy Burgertushie » Thu Aug 08, 2019 12:14 am

I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground » Thu Aug 08, 2019 6:22 am

I want a sidebar that goes UNDER the banner as I said in my post.
Thanks but that one doesnt.

User avatar
Mannix_
Registered User
Posts: 491
Joined: Sun Oct 25, 2015 2:56 pm
Contact:

Re: 3.2 sidebar

Post by Mannix_ » Thu Aug 08, 2019 11:07 am

-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Want me to port a style to 3.2.x etc. contact me here or on twitter.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66566
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: 3.2 sidebar

Post by Lumpy Burgertushie » Thu Aug 08, 2019 5:58 pm

Hi, here is one that does what you want.
https://phpbbace.com/phpBB325/index.php

create a custom style;

copy prosilver, rename the folder and edit the style.cfg file and rename prosilver to whatever you named the folder.

upload to your styles folder on the server and install this style and use it.

now, using a good text editor only,
create a new file named sidebar_left.html and put whatever html code you want in it for your sidebar.
save it in the templates folder of your new custom style.


now, still using your text editor, open overall_header.html in the copy of your new style on your computer.

at the bottom, add:

Code: Select all

<div id="sidebar_left">
<!-- INCLUDE sidebar_left.html -->
</div>
<div id="content_center">
save file.

open overall_footer.html
at the top, add:

Code: Select all

</div>
save file.

open common.css
at the bottom, add:

Code: Select all

#sidebar_left {
float: left;
width: 16%;
margin-bottom: 10px;
}

#content_center {
padding-left: 1%;
padding-right: 1%;
margin-bottom: 10px;
float: right;
width: 82%;
}


@media (max-width: 1000px) {
 #sidebar_left { display: none; width: auto; float: none; margin-right: 0; }
  #content_center { width: 100%; margin: 0 auto; clear: both; float: none; }
}
save file.

upload all three files back to your custom style on the server.
purge the cache.

you can edit the css to change the percentages etc.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground » Sat Aug 10, 2019 8:36 pm

Thanks

testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground » Sun Aug 11, 2019 7:34 am

Hi, the above code didnt put the sidebar at the side, it just put it between the header and the boards

User avatar
Lumpy Burgertushie
Registered User
Posts: 66566
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: 3.2 sidebar

Post by Lumpy Burgertushie » Sun Aug 11, 2019 3:42 pm

need to see what you have. it worked perfectly for me on the test board as you can see here: https://phpbbace.com/phpBB325/index.php

therfore, you are either using a different style or you made a mistake somewhere.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground » Tue Aug 13, 2019 8:02 am

Ok thanks I sussed it, was my error.

Problem is I only want the side bar on the index page.
This code puts the sidebar on every page

User avatar
warmweer
Registered User
Posts: 2657
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: 3.2 sidebar

Post by warmweer » Tue Aug 13, 2019 8:14 am

testingground wrote:
Tue Aug 13, 2019 8:02 am
Problem is I only want the side bar on the index page.
This code puts the sidebar on every page
Because it's in overall_header.html (something you can change).
My board's not broken, it just went peculiar

testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground » Tue Aug 13, 2019 8:30 am

Yea I realise this, but Ive tried to change it but not sure where to put the code

User avatar
warmweer
Registered User
Posts: 2657
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: 3.2 sidebar

Post by warmweer » Tue Aug 13, 2019 8:36 am

testingground wrote:
Tue Aug 13, 2019 8:30 am
Yea I realise this, but Ive tried to change it but not sure where to put the code
index_body.html? perhaps forumlist_body.html (this will be more difficult I think).

edit: not index_body as this would appear almost everywhere again
Last edited by warmweer on Tue Aug 13, 2019 8:49 am, edited 1 time in total.
My board's not broken, it just went peculiar

User avatar
3Di
Former Team Member
Posts: 14068
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: 3.2 sidebar

Post by 3Di » Tue Aug 13, 2019 8:45 am

Code: Select all

{% if SCRIPT_NAME eq 'index' %}
	//your code here
{% endif %}
Should do.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground » Tue Aug 13, 2019 10:59 am

cannot find this code in the forumlist_body??

User avatar
warmweer
Registered User
Posts: 2657
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: 3.2 sidebar

Post by warmweer » Tue Aug 13, 2019 11:27 am

testingground wrote:
Tue Aug 13, 2019 10:59 am
cannot find this code in the forumlist_body??
That code doesn't exist (yet)
3Di is showing you how to ensure the code (which you still have to write) will only be execuded if the name of the calling script equals index.....
So my guess is that you can include the code in overal_header.html. (not something I can confirm without looking at the html)
Trying it is a simple way to find out if it works.
My board's not broken, it just went peculiar

Post Reply

Return to “Extension Requests”