MyBB Community Forums

Full Version: How to add 'Secondary' Breadcrumb?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I don't know what to call it, but here's what I want.

When you make a custom page, you add the following code to make a breadcrumb:

add_breadcrumb("Breadcrumb Name", "url.php");

That will make it appear like this: Your Website / Your Breadcrumb Name

What could I use to make it so that I could add something in between the two?

Your Website / Something Else / Your Breadcrumb Name
I know theres probably a better way than this but you can just add another add_breadcrumb("Breadcrumb Name", "url.php");.
Actually, Joshee's method is probably the best way. That's the way I've always done it...
That's how I do it too.
(2009-11-12, 08:40 AM)Tomm M Wrote: [ -> ]Actually, Joshee's method is probably the best way. That's the way I've always done it...

Well Im glad a developer is doing it the same way Toungue
I would have thought a developer would have a better way of doing it Toungue
(2009-11-12, 04:07 PM)Joshee Wrote: [ -> ]I would have thought a developer would have a better way of doing it Toungue

You can always add it manually to the array of $navbits items, but that's just what the function does anyway... Wink
why wouldn't:
add_breadcrumb("foldername/Breadcrumb Name", "foldername/url.php");
work?

I've not used any breadcrumbs yet, so I've not really checked out how they work....
Thanks Joshee, your method works :p

Didn't think it was that simple :p