[3.3][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Badhon_raj
Registered User
Posts: 209
Joined: Wed Jan 04, 2012 6:33 pm

Re: [3.1][3.2][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by Badhon_raj »

cheffen wrote: Thu Jan 02, 2020 1:01 pm Hi , is it possible give permission (user/moderator/administrator) to a pacfic dropdown ?
No.
User avatar
thecaretaker1
Registered User
Posts: 137
Joined: Tue Dec 30, 2014 8:38 pm

Re: [3.1][3.2][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by thecaretaker1 »

Just a heads up. I found the navbar was causing my forum to hang/not fully load today. I tracked it down to the line in the overall_footer_body_after.html which was directing to a third party site for the bootstrap.min.js file. It was taking an age to load the file.

Code: Select all

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
I downloaded the bootstrap.min.js file and placed it in the theme folder. Then adjusted the line in the overall_footer_body_after.html to load it from my own site:

Code: Select all

<script src="./ext/orthohin/navbar/styles/all/theme/bootstrap.min.js"></script>
Now there are no issues with the forum pages loading and the navbar is working well. If you are finding the same issue, you might want to do the same.

In case the site goes down completely, here is the bootstrap file.

bootstrap.min.js
You do not have the required permissions to view the files attached to this post.
Badhon_raj
Registered User
Posts: 209
Joined: Wed Jan 04, 2012 6:33 pm

Re: [3.1][3.2][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by Badhon_raj »

thecaretaker1 wrote: Sat Jan 04, 2020 1:32 am Just a heads up. I found the navbar was causing my forum to hang/not fully load today. I tracked it down to the line in the overall_footer_body_after.html which was directing to a third party site for the bootstrap.min.js file. It was taking an age to load the file.

Code: Select all

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
I downloaded the bootstrap.min.js file and placed it in the theme folder. Then adjusted the line in the overall_footer_body_after.html to load it from my own site:

Code: Select all

<script src="./ext/orthohin/navbar/styles/all/theme/bootstrap.min.js"></script>
Now there are no issues with the forum pages loading and the navbar is working well. If you are finding the same issue, you might want to do the same.

In case the site goes down completely, here is the bootstrap file.


bootstrap.min.js
Thanks.
added this change to github.
I thought it'd be faster to load from CDN. That's why used CDN instead of local file.
User avatar
thecaretaker1
Registered User
Posts: 137
Joined: Tue Dec 30, 2014 8:38 pm

Re: [3.1][3.2][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by thecaretaker1 »

Thanks for that. I also had to amend the services.yml and tables.yml files in the config folder to get it to work on the newer phpbb 3.3. You might want to add these files (attached).

Also, the downloaded file on Github is showing up as version 1.00. You may wish to update that too. Other than that, all is working well.

services.yml
tables.yml
You do not have the required permissions to view the files attached to this post.
oleg.bash
Registered User
Posts: 16
Joined: Sat Sep 14, 2019 2:56 am

Re: [3.1][3.2][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by oleg.bash »

thecaretaker1 wrote: Sat Jan 11, 2020 1:39 am Thanks for that. I also had to amend the services.yml and tables.yml files in the config folder to get it to work on the newer phpbb 3.3. You might want to add these files (attached).

Also, the downloaded file on Github is showing up as version 1.00. You may wish to update that too. Other than that, all is working well.


services.ymltables.yml
I had exactly the same problem and you saved my day! hank you very much!!! :D :D :D
User avatar
ivailo95
Registered User
Posts: 1097
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo

Re: [3.3][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by ivailo95 »

Can you put a selection box into this place
Image
For REALLY good and VERY cheap hosting CLICK HERE
Watch "Lost in a random" game, it's the best
Badhon_raj
Registered User
Posts: 209
Joined: Wed Jan 04, 2012 6:33 pm

Re: [3.3][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by Badhon_raj »

ivailo95 wrote: Fri Mar 06, 2020 4:58 pm Can you put a selection box into this place
That's totally possible.
Will add when I get the time.
User avatar
erelash_mf
Registered User
Posts: 96
Joined: Sun Jan 19, 2020 1:02 pm
Location: Mongolia
Name: ERA

Re: [3.1][3.2][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by erelash_mf »

Badhon_raj wrote: Tue Dec 12, 2017 1:11 pm
fabiomaticus wrote: Fri Dec 01, 2017 5:28 pm how can I set the menu width to the same as the forum's width?
You mean the width of the navbar?
add the following in custom css field:

Code: Select all

nav.navbar.yamm{
    max-width: 1200px;
    margin: 0 auto;
}
By the way, I've fixed the sql errors.

Can you please try it?

just download again from github and replace the files.
Hello Badhon_raj?
Add this code but not changed.
How to change?
You do not have the required permissions to view the files attached to this post.
Badhon_raj
Registered User
Posts: 209
Joined: Wed Jan 04, 2012 6:33 pm

Re: [3.1][3.2][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by Badhon_raj »

erelash_mf wrote: Mon Mar 30, 2020 12:59 pm Hello Badhon_raj?
Add this code but not changed.
How to change?
You need to set container width.
Use this:

Code: Select all

.bootstrap .navbar .container {
    width: 100%;
}
Also update/replace the following file.
https://github.com/orthohincom/phpbb-na ... efore.html
ivailo95 wrote: Fri Mar 06, 2020 4:58 pm Can you put a selection box into this place
forgot to inform you.
I've added the feature.
Download from github.
Disable the extension before replacing files and clear cache.
User avatar
erelash_mf
Registered User
Posts: 96
Joined: Sun Jan 19, 2020 1:02 pm
Location: Mongolia
Name: ERA

Re: [3.3][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by erelash_mf »

was done according to the instructions, but no changes were made

and Purged the cache
You do not have the required permissions to view the files attached to this post.
Badhon_raj
Registered User
Posts: 209
Joined: Wed Jan 04, 2012 6:33 pm

Re: [3.3][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by Badhon_raj »

erelash_mf wrote: Mon Mar 30, 2020 3:31 pm was done according to the instructions, but no changes were made

and Purged the cache
The first image looks like is the custom.css file.
This file is not loaded by default.
You need to enable it in ACP.
Image

Also, you may delete other CSS codes from that file, otherwise they might affect the color of the menu.
User avatar
erelash_mf
Registered User
Posts: 96
Joined: Sun Jan 19, 2020 1:02 pm
Location: Mongolia
Name: ERA

Re: [3.3][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by erelash_mf »

Thank you :)
User avatar
ivailo95
Registered User
Posts: 1097
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo

Re: [3.3][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by ivailo95 »

it's done
thanks :)
For REALLY good and VERY cheap hosting CLICK HERE
Watch "Lost in a random" game, it's the best
User avatar
Morgain
Registered User
Posts: 22
Joined: Wed Mar 13, 2019 5:32 pm
Location: Wales
Name: Shan Morgain

Re: [3.3][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by Morgain »

This is a lovely extension. I do not understand why phpbb does not have a navbar so your extension is very important.
Functions are excellent and easy to edit.
I have the colours I want.
HURRAY!

Now I would like to edit 3 things:
HEIGHT of the navbar 30 or 35px
I thought it might be my logo so I made it smaller but it now displays enlarged and blurred.
I tried some css in your custom css box but it makes no difference.
nav.navbar.yamm{
max-height: 30px;
margin: 0 auto;
}

.bootstrap .navbar .container {
max-height: 30px;
}

FONT. I use Georgia so I would like the navbar to match.

INSET Your navbar has an empty inset space on the left. Is it possible to stop that?


THANK YOU.
Badhon_raj
Registered User
Posts: 209
Joined: Wed Jan 04, 2012 6:33 pm

Re: [3.3][DEV] MegaMenu, Sticky Menu, Navbar for phpBB

Post by Badhon_raj »

Morgain wrote: Tue Apr 07, 2020 2:59 am This is a lovely extension. I do not understand why phpbb does not have a navbar so your extension is very important.
Functions are excellent and easy to edit.
I have the colours I want.
HURRAY!

Now I would like to edit 3 things:
THANK YOU.
Glad that you liked the extension.
1. changinh height is a bit troublesome.
some padding etc needs adjusting.
2. for font, use this:

Code: Select all

.bootstrap {
    font-family: "your_font_name";
}
3. use this:

Code: Select all

.bootstrap .navbar .container {
    width: 100%;
}

Return to “Extensions in Development”