This board is the new home for david63's extensions.

All of the extensions hosted here will need to be treated as a new install as there is no migration from the original ones to these, and furthermore, no support will be given to migrating to any of these extensions from previous versions.


Due to the selfishness of certain board members it has become necessary to apply a limit of how many downloads each member can make before making a donation. Once a donation has been made then you will have unlimited downloads.

[3.3.1] Breadcrumb Menu

Fully working extensions for phpBB 3.3.x
User avatar
devspace
Owner
Owner
Posts: 343
Joined: October 2022

[3.3.1] Breadcrumb Menu

Post by devspace »

Breadcrumb Menu:

This extension adds a drop-down menu to each breadcrumb, containing the sibling and child fora.

Compatibility:

Image Image

Image

Note:
  • If you are using any other version of this extension then it must be Disabled /Delete data and the original files deleted before installing this version - you will loose all settings.
  • This is an updated version of the Breadcrumb Menu extension by PayBas that has been updated to be compatible with later versions of jQuery.
Features:
  • Mobile (touch) device support.
  • Right-to-left (RTL) languages support.
  • Uses the jQuery UI Menu widget.
  • Has template event for other extensions to utilise.
Language(s):
  • en
Version:
  • 3.3.1
Installation:
  • Download the latest release and unzip it.
  • Upload the unzipped files to [board root]/ext/devspace/breadcrumbmenu and enable it in the ACP
Configuration:
  • No configuration required
Extension Download:

User avatar
devspace
Owner
Owner
Posts: 343
Joined: October 2022

[3.3.1] Breadcrumb Menu

Post by devspace »

Announcements:

[24/11/2022] Updated to 3.3.1 - bug fix.

HiFi Kabin
Member
Member
Posts: 26
Joined: October 2022

Re: [3.3.0] Breadcrumb Menu

Post by HiFi Kabin »

Not sure if this is a bug or not.

https://hifikabin.me.uk/

Hover on Board Index>Forums I get the following (as expected)

screenshot_951.jpg

Clicking on Forums I get "The requested page could not be found."

screenshot_952.jpg

EDIT:- It happens here as well, so its not just my board
You do not have the required permissions to view the files attached to this post.

User avatar
devspace
Owner
Owner
Posts: 343
Joined: October 2022

Re: [3.3.1] Breadcrumb Menu

Post by devspace »

HiFi Kabin wrote: 24 Nov 2022 17:43
Not sure if this is a bug or not.
Bug fixed - see above

HiFi Kabin
Member
Member
Posts: 26
Joined: October 2022

Re: [3.3.1] Breadcrumb Menu

Post by HiFi Kabin »

Thanks for the fix, works perfectly now

HiFi Kabin
Member
Member
Posts: 26
Joined: October 2022

Re: [3.3.1] Breadcrumb Menu

Post by HiFi Kabin »

Just found another bug

If a guest without the required permissions tries to view a forum they are directed to the logon page (as expected) but get the error as per the screenshot below. Disabling the extension removes the error.

breadcrumbs error.jpg

Go here to experience the error for yourself
You do not have the required permissions to view the files attached to this post.

User avatar
devspace
Owner
Owner
Posts: 343
Joined: October 2022

Re: [3.3.1] Breadcrumb Menu

Post by devspace »

Can you try replacing line 208 in listener.php with $parent_id = isset($list[$current_id]['parent_id']);

HiFi Kabin
Member
Member
Posts: 26
Joined: October 2022

Re: [3.3.1] Breadcrumb Menu

Post by HiFi Kabin »

Thanks that solves the initial issue but creates a new one.

The index page is fine, but navigating elsewhere gives this error

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/devspace/breadcrumbmenu/event/listener.php on line 213: Undefined array key 1
[phpBB Debug] PHP Warning: in file [ROOT]/ext/devspace/breadcrumbmenu/event/listener.php on line 213: Trying to access array offset on value of type null
Hence I have reverted to the original code for now

User avatar
devspace
Owner
Owner
Posts: 343
Joined: October 2022

Re: [3.3.1] Breadcrumb Menu

Post by devspace »

Replace line 210 to end of while loop with

Code: Select all

while ($parent_id)
		{
			if (isset($list[$parent_id]['parent_id']))
			{
				$parents[] = (int) $parent_id;
				$parent_id = $list[$parent_id]['parent_id'];
			}
		}
Hopefully that should fix it - until PHP release another version :evil:

HiFi Kabin
Member
Member
Posts: 26
Joined: October 2022

Re: [3.3.1] Breadcrumb Menu

Post by HiFi Kabin »

I'm still getting the original error with that new while loop, but the 'new' error has gone. (as has the 500 error here that I reported to you earlier)

HiFi Kabin
Member
Member
Posts: 26
Joined: October 2022

Re: [3.3.1] Breadcrumb Menu

Post by HiFi Kabin »

**bumping**

User avatar
devspace
Owner
Owner
Posts: 343
Joined: October 2022

Re: [3.3.1] Breadcrumb Menu

Post by devspace »

HiFi Kabin wrote: 21 Oct 2024 10:04
**bumping**
Sorry - I've been away

Can you try replacing the whole public function get_crumb_parents($list, $current_id) with this

Code: Select all

public function get_crumb_parents($list, $current_id)
	{
		$parents = [];

		if ($current_id < 1 || empty($list))
		{
			return $parents; // skip if we're not viewing a forum right now
		}

		if (array_key_exists($current_id, $list))
		{
			$parent_id = $list[$current_id]['parent_id'];

			while ($parent_id)
			{
				$parents[] = (int) $parent_id;
				$parent_id = $list[$parent_id]['parent_id'];
			}
		}

		return array_reverse($parents);
	}

HiFi Kabin
Member
Member
Posts: 26
Joined: October 2022

Re: [3.3.1] Breadcrumb Menu

Post by HiFi Kabin »

devspace wrote: 24 Oct 2024 14:45
Sorry - I've been away
Apologies for bumping
devspace wrote: 24 Oct 2024 14:45

Can you try replacing the whole public function get_crumb_parents($list, $current_id)
Thats fixed it, thanks (apologies for the bold text but the c BBCode is disabled for me)

rowiz100
New Member
New Member
Posts: 1
Joined: May 2025

Re: [3.3.1] Breadcrumb Menu

Post by rowiz100 »

was this extension removed?