[3.1][3.2][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!
Ideas Centre
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: 124
Joined: Wed Jan 04, 2012 6:33 pm

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

Post by Badhon_raj » Fri Sep 15, 2017 6:58 am

Note:
I developed this extension for a client.
But ultimately he didn't like it.
Hope it could come useful to at least someone.

I've tested this extension with prosilver style only.
But it should work with other styles as well.
Feel free to provide feedback and let me know if I should add/change any functionality to it.
Also comment if this extension doesn't work with your style.

Description:
This extensions adds a Mega menu / sticky menu to your phpBB forum and lets you customize it through ACP.

Normal menu items can be added and edited through ACP.
Knowledge on twiiter-botstrap is required for mega menu implemetation. Sample menu item has been added as example.

Screenshots:
Dropdown Menu:

Image

Mega Menu 1:

Image

Mega Menu 2:

Image

ACP:

Image

Image


Installation:
Upload orthohin directory to your board's ext directory.
Enable the extension in ACP.


Resources Used:
Isolated Bootstrap
Yamm 3!
tinyColorPicker
placeholder.com

Download on github:
https://github.com/orthohincom/phpbb-navbar

To-Do:
[*] None at the moment. Let me know your opinion.
Last edited by Badhon_raj on Fri Sep 15, 2017 12:15 pm, edited 2 times in total.

User avatar
Froddelaar
Registered User
Posts: 503
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

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

Post by Froddelaar » Fri Sep 15, 2017 11:37 am

Very nice extension! But it breaks SSL (https) somewhere.
Please see my test forum: https://www.froddelpower.be/scripts/phpbbtest

Insecure:
http://via.placeholder.com/64x64
http://via.placeholder.com/194x194
I'm A Stupid F*ck.. And Proud Of it!
Download +34.000 arcade extension games @ ~ https://www.froddelpower.be ~

Dutch Extension Translations @ https://github.com/Solidjeuh
Donations are always welcome @ https://www.froddelpower.be/donation

Badhon_raj
Registered User
Posts: 124
Joined: Wed Jan 04, 2012 6:33 pm

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

Post by Badhon_raj » Fri Sep 15, 2017 11:40 am

Froddelaar wrote:
Fri Sep 15, 2017 11:37 am
Very nice extension! But it breaks SSL (https) somewhere.
Please see my test forum: https://www.froddelpower.be/scripts/phpbbtest

Insecure:
http://via.placeholder.com/64x64
https://camo.phpbb.com/332ad15de54e75e413cfbfe4ed1c43aa80dfd43e/687474703a2f2f7669612e706c616365686f6c6465722e636f6d2f31393478313934
those are placholder images. You have to change those image to your own.
Image

Edit: if you make your menu background color transparent, then it'll probably look better.
rgba(0, 0, 0, 0)

User avatar
Froddelaar
Registered User
Posts: 503
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

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

Post by Froddelaar » Fri Sep 15, 2017 12:01 pm

Ah you are right, sorry :) Changed them to https
I'm A Stupid F*ck.. And Proud Of it!
Download +34.000 arcade extension games @ ~ https://www.froddelpower.be ~

Dutch Extension Translations @ https://github.com/Solidjeuh
Donations are always welcome @ https://www.froddelpower.be/donation

User avatar
Raul [ThE KuKa]
Jr. Extension Validator
Posts: 3760
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

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

Post by Raul [ThE KuKa] » Sat Sep 16, 2017 10:50 am

Added "PR" for small changes...

On overall_header_body_before.html (line 28) you must add language key for Toggle navigation (hardcoded language).

Nice job!!! ;)
If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
phpBB International Support Team (Spanish - Español) :flag_es: Online Since 2003
🎨phpBB Professional Premium Themes🔥
Author Translations (Spanish - Spain) :two_hearts:

:warning: I don't support those without the copyright Spanish translation. :warning:

Badhon_raj
Registered User
Posts: 124
Joined: Wed Jan 04, 2012 6:33 pm

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

Post by Badhon_raj » Mon Sep 18, 2017 9:34 am

Raul [ThE KuKa] wrote:
Sat Sep 16, 2017 10:50 am
Added "PR" for small changes...
Thanks. Merged. :)
Raul [ThE KuKa] wrote:
Sat Sep 16, 2017 10:50 am
On overall_header_body_before.html (line 28) you must add language key for Toggle navigation (hardcoded language).
That text is intended only for screen readers. It is always hidden. Is it still necessary to add language key for that?
Raul [ThE KuKa] wrote:
Sat Sep 16, 2017 10:50 am
Nice job!!! ;)
It's really nice to have a complement from you. :)
Thanks.

CancunManny
Registered User
Posts: 53
Joined: Mon Jan 25, 2010 7:32 pm

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

Post by CancunManny » Tue Oct 10, 2017 7:33 pm

Hello, I got your sticky menu working for the most part. Seems there is a bit better support for 3.1 vs 3.2 but I wasn't able to upgrade to 3.1 I would imagine that most people that set up and run phpbb know how to set up their own drop down buttons for their headers, but I don't, hence I have to relay on the great work of people like you that create ext;s for us.

Anyhow, I have www.mysite.com and the forum is on www.mysite.com/forum How can I get the sticky menu to work on my pages like www.mysite.com/page1.php

CancunManny
Registered User
Posts: 53
Joined: Mon Jan 25, 2010 7:32 pm

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

Post by CancunManny » Tue Oct 10, 2017 8:17 pm

So I was able to answer my own question, it is a usual using the "include overall header". I had just forgotten to clear cache and try, hence it seemed it was not working. Thank you again for this ext

Badhon_raj
Registered User
Posts: 124
Joined: Wed Jan 04, 2012 6:33 pm

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

Post by Badhon_raj » Wed Oct 11, 2017 2:03 am

CancunManny wrote:
Tue Oct 10, 2017 8:17 pm
So I was able to answer my own question, it is a usual using the "include overall header". I had just forgotten to clear cache and try, hence it seemed it was not working. Thank you again for this ext
Glad that it worked out for you.
You can ask if you need help setting up megamenu :)

Asusak
Registered User
Posts: 3
Joined: Thu Aug 24, 2017 11:21 am

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

Post by Asusak » Sat Oct 14, 2017 10:04 am

Very nice :)
It's possible to use for example this:
<!-- IF LOGIN_EXPLAIN -->{LOGIN_EXPLAIN}<!-- ELSE -->{L_LOGIN}<!-- ENDIF -->
in HTML for mega menu? It would be great :)

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20444
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

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

Post by RMcGirr83 » Sat Oct 14, 2017 10:31 am

Badhon_raj wrote:
Mon Sep 18, 2017 9:34 am
That text is intended only for screen readers. It is always hidden. Is it still necessary to add language key for that?
Per the extension rules for validation, yes. You can't have hard coded language within files.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Miri4ever
Registered User
Posts: 392
Joined: Sat Mar 07, 2015 11:18 am

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

Post by Miri4ever » Sat Oct 14, 2017 11:34 am

Looking nice so far but found I few things I not like:

I'm using PBWoW Style and the right and left border using some elements for my style.
The text inside the dropdown box are bigger than the dropdown box itself.
And I can set up a color for background and style of the menu but the dropdown boxes still appear white and not inside my theme color I use.

Here an example screen what I mean marked with the red boxes.

Image

Uploading images giving me an error message. Needed to create an logo folder inside the images folder with right permisisons for uploading via extension.
Homepage: Terra Oceanica

Badhon_raj
Registered User
Posts: 124
Joined: Wed Jan 04, 2012 6:33 pm

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

Post by Badhon_raj » Tue Oct 17, 2017 10:41 am

Miri4ever wrote:
Sat Oct 14, 2017 11:34 am
Looking nice so far but found I few things I not like:

I'm using PBWoW Style and the right and left border using some elements for my style.
The text inside the dropdown box are bigger than the dropdown box itself.
And I can set up a color for background and style of the menu but the dropdown boxes still appear white and not inside my theme color I use.

Here an example screen what I mean marked with the red boxes.

Image

Uploading images giving me an error message. Needed to create an logo folder inside the images folder with right permisisons for uploading via extension.
May I have the link to your forum?
You can PM me if you don't want to publish it in public.

Sets71
Registered User
Posts: 1
Joined: Wed Oct 25, 2017 8:12 am

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

Post by Sets71 » Wed Oct 25, 2017 8:29 am

Hello,
Thx you for this extension!!
I have a small problem and one question please :)
My problem is: when i try to edit a menu already created ( change the name or add a link ) i have an error like this:

Code: Select all

Erreur générale
SQL ERROR [ mysqli ]

Incorrect integer value: '' for column 'is_mega' at row 1 [1366]

SQL

UPDATE phpbb_orthohin_navbar_menu SET button_url = '', button_name = 'Energies', button_desc = '', button_external = 0, button_display = 1, button_only_registered = 0, button_only_guest = 0, parent_id = 16, is_mega = '', icon = '' WHERE button_id = 28

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 999
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/mysqli.php
LINE: 193
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 329
CALL: phpbb\db\driver\mysqli->sql_query()

FILE: [ROOT]/ext/orthohin/navbar/acp/orthohin_navbar_module.php
LINE: 442
CALL: phpbb\db\driver\factory->sql_query()

FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: orthohin\navbar\acp\orthohin_navbar_module->main()

FILE: [ROOT]/adm/index.php
LINE: 82
CALL: p_master->load_active()
Do you have an idea to resolve it please?

and my question is : how to delete the logo name on the left of "Home"?

Thx you very much!

jan_2017
Registered User
Posts: 29
Joined: Sun May 07, 2017 3:39 pm

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

Post by jan_2017 » Wed Nov 01, 2017 10:14 am

What do you mean with megamenu?
What can i do with it...?

Thanks Jan

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: dmzx, lupus77, RomaamoR and 30 guests