[3.2][BETA] Menu Items (helper ext)

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!
Suggested Hosts
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
User avatar
martti
Registered User
Posts: 870
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

[3.2][BETA] Menu Items (helper ext)

Post by martti »

This is a helper extension. It will not do anything unless used by another extension.
You can test it if you also install the "Menu Items Example" extension.


Extension Name: Menu Items (helper ext)

Author: martti

Extension Description: This is a helper extension that can be used by other extensions. It provides to your extension a service where your users (admins of forums) can decide where to put your menu items in the board.

This is done by providing a PHP-event, an ACP service and an ACP template file.
Install additionally the "Menu Items Example" extension to see how the extension can be used. (download link, files to be put in ext/marttiphpbb/menuitemsexample)

Extension Version: 0.3.0

Requirements:
  • phpBB 3.2.5
  • PHP 7.1
Extension Download: https://github.com/marttiphpbb/phpbb-ex ... master.zip
The files are to be put in ext/marttiphpbb/menuitems

Github repository: https://github.com/marttiphpbb/phpbb-ext-menuitems

Languages: en

Templates: prosilver

Screenshots:

These screenshots are made with help of the Menu Items Example extension.

Square has a higher priority in template event location overall_header_navigation_prepend

Image

Image

Square comes first:

Image
Last edited by martti on Wed Jan 23, 2019 1:54 pm, edited 2 times in total.
User avatar
John Rambo
Registered User
Posts: 74
Joined: Tue Jun 18, 2013 8:46 pm

Re: [3.2][BETA] Menu Items (helper ext)

Post by John Rambo »

interesting, I try it on the test forum đź‘Ť
User avatar
martti
Registered User
Posts: 870
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Menu Items (helper ext)

Post by martti »

Update version 0.3.0
  • Requirements PHP 7.1+, phpBB 3.2.5
  • Renamed PHP event from marttiphpbb.menuitems.add_items to marttiphpbb.menuitems
  • Client extensions can not insert "raw" content anymore, they have to include a template. (Restrict to one way of doing things)
  • New feature: a priority number can be given to the inserted menuitems by the user (the admin of the board). Screenshots of this to come.
The Menu Items Example extension also got updated to version 0.3.0 to be in tune.
Last edited by martti on Wed Jan 23, 2019 1:48 pm, edited 1 time in total.
User avatar
martti
Registered User
Posts: 870
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Menu Items (helper ext)

Post by martti »

These screenshots show the user (the admin of the board) configurated ordering of menu items.

Case 1

Square has a higher priority in template event location overall_header_navigation_prepend

Image

Image

Square comes first:

Image

Case 2

Circle has a higher priority number in template event location overall_header_navigation_prepend

Image

Image

Circle comes first:

Image
Gubkin
Registered User
Posts: 42
Joined: Sun Sep 24, 2017 7:15 am
Location: RU
Name: Alexander
Contact:

Re: [3.2][BETA] Menu Items (helper ext)

Post by Gubkin »

User avatar
martti
Registered User
Posts: 870
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Menu Items (helper ext)

Post by martti »

Gubkin wrote: ↑
Thu Jan 24, 2019 8:52 am
Like https://www.phpbb.com/customise/db/exte ... ultilinks/
Same same
Not at all. It is other extensions that add the links in this extension and the administrator decides where to put them and in which order.
tjonas331
Registered User
Posts: 19
Joined: Sun Jul 26, 2020 10:47 am

Re: [3.2][BETA] Menu Items (helper ext)

Post by tjonas331 »

martti wrote: ↑
Wed Jan 23, 2019 1:46 pm
These screenshots show the user (the admin of the board) configurated ordering of menu items.

Case 1

Square has a higher priority in template event location overall_header_navigation_prepend

Image

Image

Square comes first:

Image

Case 2

Circle has a higher priority number in template event location overall_header_navigation_prepend

Image

Image

Circle comes first:

Image
I am sorry, but I am unable to find an option, where I can configure the menu in the ACP
User avatar
martti
Registered User
Posts: 870
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Menu Items (helper ext)

Post by martti »

tjonas331 wrote: ↑
Mon Jul 27, 2020 8:51 am
I am sorry, but I am unable to find an option, where I can configure the menu in the ACP
This is a helper extension. Only when another extension provides a context for it, options will show in the ACP.
tjonas331
Registered User
Posts: 19
Joined: Sun Jul 26, 2020 10:47 am

Re: [3.2][BETA] Menu Items (helper ext)

Post by tjonas331 »

martti wrote: ↑
Mon Jul 27, 2020 11:40 am

This is a helper extension. Only when another extension provides a context for it, options will show in the ACP.
Ok, so which other extension do I need?
User avatar
martti
Registered User
Posts: 870
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: [3.2][BETA] Menu Items (helper ext)

Post by martti »

tjonas331 wrote: ↑
Mon Jul 27, 2020 11:43 am
Ok, so which other extension do I need?
So far I've only used it in my Calendar Extension Set. It's a set of extensions that add together a topic based calendar to the board. This menu items helper extension makes it possible to put menu links (in a flexible way) to the calendar page.
I had also a plan to use it for a "extra static pages" extension, a limited cms function. But so far I've not done any work on that.
Post Reply

Return to “Extensions in Development”