[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!
Get Involved
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: 728
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

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

Post by martti » Wed Apr 18, 2018 1:47 pm

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 » Thu Apr 19, 2018 9:06 am

interesting, I try it on the test forum đź‘Ť

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

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

Post by martti » Wed Jan 23, 2019 1:31 pm

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: 728
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

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

Post by martti » 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

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

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

Post by Gubkin » Thu Jan 24, 2019 8:52 am


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

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

Post by martti » Thu Jan 24, 2019 9:23 am

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.

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: KYPREO, zath and 17 guests