Quick link selections on Nav' Bar

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
stoo23
Registered User
Posts: 54
Joined: Tue Feb 14, 2023 11:20 am
Location: Berkeley Vale, NSW, Australia
Name: Stewart

Quick link selections on Nav' Bar

Post by stoo23 »

Hi all, I was wondering whether it is possible to Duplicate certain Elements currently located in the 'Quick links' drop down selector and place them somewhere on the 'Nav Bar', such as 'New Posts' etc ??

I had a look but there doesn't seem to be a current Extension specifically for this latest version but Ideally, would be nice if (as I kind of suspect it can be), done without resorting to another Extension etc :)

Any help / suggestions appreciated. :)
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6834
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James

Re: Quick link selections on Nav' Bar

Post by HiFiKabin »

Header Link ? Just add the url and name of the link you want to show and its going to do what you want
User avatar
Anișor
Translator
Posts: 393
Joined: Tue Jan 08, 2013 9:36 pm
Location: Angus, Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿
Name: Anișor Neculai

Re: Quick link selections on Nav' Bar

Post by Anișor »

The links are found inside navbar_header.html
You can copy/paste them or you can create an extension to inject them somewhere in your template.
Where exactly do you want them?
User avatar
stoo23
Registered User
Posts: 54
Joined: Tue Feb 14, 2023 11:20 am
Location: Berkeley Vale, NSW, Australia
Name: Stewart

Re: Quick link selections on Nav' Bar

Post by stoo23 »

Where exactly do you want them?
I was thinking having 'New Posts' Clearly visible on the Nav Bar perhaps on the Far Right, under Notifications and Private messages etc,... Standard Pro Silver them btw :)

Quick links_3.png
You do not have the required permissions to view the files attached to this post.
User avatar
P_I
Community Team Member
Community Team Member
Posts: 2562
Joined: Tue Mar 01, 2011 8:35 pm
Location: Western Canada 🇨🇦

Re: Quick link selections on Nav' Bar

Post by P_I »

stoo23 wrote: Sun Jan 19, 2025 1:33 pm I was thinking having 'New Posts' Clearly visible on the Nav Bar perhaps on the Far Right, under Notifications and Private messages etc,
It has been my experience that board members tend to bookmark in their browser their favourite "Quick link". That becomes their 'homepage' for the board. Personally on most boards I use the 'Unread posts' quick link.
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
Gumboots
Registered User
Posts: 821
Joined: Fri Oct 11, 2019 1:59 am

Re: Quick link selections on Nav' Bar

Post by Gumboots »

I'll second that. IMO the New Posts link is useless. The only one worth using is Unread Posts or, if that is not enabled for guests, Active Topics.

I edited Quick Links to have Active Topics and FAQ in the drop menu for guests, with Unread Posts (for members and guests) in the nav bar just after Quick Links. Notifications and Private Messages are not available for guests, so if you want guests to be able to use Unread Posts it can't go in those drop menus.

Screenshot and code here: viewtopic.php?p=15893331#p15893331
🇺🇦 Слава Україні! 🇺🇦 Героям слава! 🇺🇦
User avatar
stoo23
Registered User
Posts: 54
Joined: Tue Feb 14, 2023 11:20 am
Location: Berkeley Vale, NSW, Australia
Name: Stewart

Re: Quick link selections on Nav' Bar

Post by stoo23 »

Yes, well, I was ONLY using 'New Posts' as an example of a Quick Links menu item that would be nice to Duplicate, elsewhere.
Whilst we Do have quite a few Members, the Forum is not truly one that could be described as Busy or overly Active.

We have Never really had Many 'posters' it is used more as a repository of Info' and Events (past and future) and whilst it May be 'Viewed' by Many, they invariably do Not Log-In, so 'Unread Posts' would be pointless. New Posts or Active Topics would be the best options.

The reason for wanting it on the Far Right of the Nav Bar, (UNDER the 'Register / Login' items), is that it would NOT be a Problem for Members or Guests and actually seemed logical to me, as it would place it above the 'Last Post' descriptor of the Forum 'Body' :)

Quick links_4.png
You do not have the required permissions to view the files attached to this post.
User avatar
Gumboots
Registered User
Posts: 821
Joined: Fri Oct 11, 2019 1:59 am

Re: Quick link selections on Nav' Bar

Post by Gumboots »

Grab the li from the quick links dropdown, paste it in at the end of the breadcrumbs list, then give it a "rightside" class.

Works the same way with active topics. Both can be found in the quick links list at the start of navbar_header.html:

Find:

Code: Select all

		{% if S_DISPLAY_SEARCH and not S_IN_SEARCH %}
Replace:

Code: Select all

		<li class="rightside">
			<a href="{U_SEARCH_NEW}" role="menuitem">
				<i class="icon fa-file-o fa-fw icon-red" aria-hidden="true"></i><span>{L_SEARCH_NEW}</span>
			</a>
		</li>

		{% if S_DISPLAY_SEARCH and not S_IN_SEARCH %}
🇺🇦 Слава Україні! 🇺🇦 Героям слава! 🇺🇦
User avatar
stoo23
Registered User
Posts: 54
Joined: Tue Feb 14, 2023 11:20 am
Location: Berkeley Vale, NSW, Australia
Name: Stewart

Re: Quick link selections on Nav' Bar

Post by stoo23 »

:)
Thank you Very Much for that !! :D worked like a Treat !!
Much appreciated.
8-)

As that has removed the function from the Quick Link Drop-down list, is there perhaps a method to 'Duplicate' the control ??

Interestingly (and as suggested by others previously), 'Active Topics' may be a better option, as interestingly, 'New Posts', actually requires one to be Logged-In to provide the List of New Posts,... 'since your last visit' :)

I'll do some testing and see what's best ;) :)
User avatar
Gumboots
Registered User
Posts: 821
Joined: Fri Oct 11, 2019 1:59 am

Re: Quick link selections on Nav' Bar

Post by Gumboots »

Well, if you don't want it removed from quick links, don't delete it from quick links.

When I said "grab" I just meant that was the code to paste into the breadcrumbs bar. I didn't mean you had to delete anything. You can have it in both places if you want. It won't cause any issues.
🇺🇦 Слава Україні! 🇺🇦 Героям слава! 🇺🇦
User avatar
stoo23
Registered User
Posts: 54
Joined: Tue Feb 14, 2023 11:20 am
Location: Berkeley Vale, NSW, Australia
Name: Stewart

Re: Quick link selections on Nav' Bar

Post by stoo23 »

Well, if you don't want it removed from quick links, don't delete it from quick links
I Didn't :)
When I said "grab" I just meant that was the code to paste into the breadcrumbs bar
Well, exactly and all I did, was find that Code and Paste the code you provided :)
I didn't mean you had to delete anything
As suggested, ... I Didn't :)

I just checked and the Code relating to 'New' posts still exists in Both places in the navbar_header.html file.

I have a test forum setup, so I'll have a 'Mess around' :)
User avatar
Gumboots
Registered User
Posts: 821
Joined: Fri Oct 11, 2019 1:59 am

Re: Quick link selections on Nav' Bar

Post by Gumboots »

Now that is odd, because I have used Unread Posts in two places before without any issues. I can't see why it would be different for New Posts, or any other item. They are just li's and anchors, like any other.

I just tried using the document inspector to do the edit live on this page. It works. No problem.
🇺🇦 Слава Україні! 🇺🇦 Героям слава! 🇺🇦
User avatar
stoo23
Registered User
Posts: 54
Joined: Tue Feb 14, 2023 11:20 am
Location: Berkeley Vale, NSW, Australia
Name: Stewart

Re: Quick link selections on Nav' Bar

Post by stoo23 »

Well, don't mind me,... :roll:
I had inadvertently logged-out of the test forum when I reported on it's disappearance :?

It's all good,... :) Everything is OK, after I logged back in,.. ;) :D

Once again, thanks for the help :)

Return to “[3.3.x] Support Forum”