Create a new link in the navbar

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Suggested Hosts
Post Reply
ilContadino
Registered User
Posts: 22
Joined: Fri Feb 04, 2022 9:44 pm

Create a new link in the navbar

Post by ilContadino »

Which is the right way to add a new link to the top navigation bar?

Schermata 2022-05-17 alle 10.37.17 copia.jpg

Since I can deal with internal code, I did some attempts but the result does not fit correctly in, therefore I think I'm missing something.
User avatar
invenio
Registered User
Posts: 341
Joined: Wed Dec 09, 2015 1:45 pm
Location: New Hampshire, USA
Contact:

Re: Create a new link in the navbar

Post by invenio »

https://www.phpbb.com/customise/db/extension/pages/

You should use an extension, not modify the base code.
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3732
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: Create a new link in the navbar

Post by Kailey »

To expand on what invenio said, what link are you trying to add? There might be an extension available that automatically adds the link for you (KB, Rules, etc).
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2353
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦
Contact:

Re: Create a new link in the navbar

Post by P_I »

I would suggest the OP take a look at the extension LMDI Multilinks
Normal people… believe that if it ain’t broke, don’t fix it. Engineers believe that if it ain’t broke, it doesn’t have enough features yet. – Scott Adams
User avatar
lurttinen
Translator
Posts: 4728
Joined: Tue Sep 21, 2004 12:05 pm

Re: Create a new link in the navbar

Post by lurttinen »

I did it with the custom pages addon
You need shell access to forum files

First create a custom page and link in header from the pages add on.

Then edit .htaccess and add
Redirect /path_to_forum/app.php/page_name https://target_url

Doing so you redirect all traffic from phpBB page to whatever you want page.

If you want to hardcode links in the header, IIRC it was breadcrumbs.something as file and you need to clear cache. 8-)
Signature is here
ilContadino
Registered User
Posts: 22
Joined: Fri Feb 04, 2022 9:44 pm

Re: Create a new link in the navbar

Post by ilContadino »

P_I wrote: Tue May 17, 2022 12:17 pm I would suggest the OP take a look at the extension LMDI Multilinks
Thanks P_I, this extension is exactly what I was looking for.

Thanks also to all of you for the great contributions. 👍
Post Reply

Return to “Extension Requests”