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 »

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: 68019
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: 3.2 sidebar

Post by Lumpy Burgertushie »

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

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground »

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: 821
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt
Contact:

Re: 3.2 sidebar

Post by Mannix_ »

-=-=-=-=-=-=-=-=-=-=-=-=-My Styles-=-=-=-=-=-=-=-=-=-=-=-=-
HexagonHexagonRebornCleanSilverProject Durango
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Need help with styling or want me to port a style to 3.2.x etc. contact me here or here.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
User avatar
Lumpy Burgertushie
Registered User
Posts: 68019
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: 3.2 sidebar

Post by Lumpy Burgertushie »

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.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground »

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

Re: 3.2 sidebar

Post by testingground »

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: 68019
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: 3.2 sidebar

Post by Lumpy Burgertushie »

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.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground »

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
Jr. Extension Validator
Posts: 4953
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: 3.2 sidebar

Post by warmweer »

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).
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.
testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground »

Yea I realise this, but Ive tried to change it but not sure where to put the code
User avatar
warmweer
Jr. Extension Validator
Posts: 4953
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: 3.2 sidebar

Post by warmweer »

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.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.
User avatar
3Di
Former Team Member
Posts: 15902
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: 3.2 sidebar

Post by 3Di »

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
Looking for a specific feature or alternative option? We will rock you! 🚀
testingground
Registered User
Posts: 184
Joined: Thu Apr 21, 2016 10:59 am

Re: 3.2 sidebar

Post by testingground »

cannot find this code in the forumlist_body??
User avatar
warmweer
Jr. Extension Validator
Posts: 4953
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: 3.2 sidebar

Post by warmweer »

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.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.
Post Reply

Return to “Extension Requests”