[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)
Post Reply
Badhon_raj
Registered User
Posts: 204
Joined: Wed Jan 04, 2012 6:33 pm

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

Post by Badhon_raj »

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

Version 1.0.2
Changelog:
-> Added support for template variables in html field.

Version: 1.0.1
changelog:
-> fixed an sql error while editing sub-menu item.
-> fixed an issue where text inside the dropdown box are bigger than the dropdown box itself.

To-Do:
[*] Enable Language Variable support in MEGA HTML field.
[ ] Enable use of IF statements in MEGA HTML field.
Last edited by Badhon_raj on Tue Feb 25, 2020 9:21 am, edited 7 times in total.
User avatar
</Solidjeuh>
Registered User
Posts: 1788
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 </Solidjeuh> »

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
Badhon_raj
Registered User
Posts: 204
Joined: Wed Jan 04, 2012 6:33 pm

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

Post by Badhon_raj »

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
</Solidjeuh>
Registered User
Posts: 1788
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 </Solidjeuh> »

Ah you are right, sorry :) Changed them to https
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11073
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] »

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!!! ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


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

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

Post by Badhon_raj »

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: 54
Joined: Mon Jan 25, 2010 7:32 pm

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

Post by CancunManny »

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: 54
Joined: Mon Jan 25, 2010 7:32 pm

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

Post by CancunManny »

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: 204
Joined: Wed Jan 04, 2012 6:33 pm

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

Post by Badhon_raj »

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 »

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
Former Team Member
Posts: 22016
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

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

Post by RMcGirr83 »

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.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beer Image
User avatar
Miri4ever
Registered User
Posts: 608
Joined: Sat Mar 07, 2015 11:18 am
Contact:

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

Post by Miri4ever »

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

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
Badhon_raj
Registered User
Posts: 204
Joined: Wed Jan 04, 2012 6:33 pm

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

Post by Badhon_raj »

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 »

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!
User avatar
jan_2017
Registered User
Posts: 161
Joined: Sun May 07, 2017 3:39 pm

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

Post by jan_2017 »

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

Thanks Jan
Post Reply

Return to “Extensions in Development”