SafeInSanity
Junior Member
Falling in love with Proboards again!
Posts: 424
inherit
23917
0
Feb 27, 2020 11:29:13 GMT -8
SafeInSanity
Falling in love with Proboards again!
424
May 2004
wiki
|
Post by SafeInSanity on Sept 20, 2019 8:11:48 GMT -8
Is there a way that I could add a link to the top navigation menu that would display user specific member notifications to all members via the same link?
It looks like the notifications link is only accessible via user id like this:
http://sitename.proboards.com/user/1/notifications
I want the same menu link to show all board members their unique site notifications.
The reason I want this is because currently it takes two clicks to get to view your notifications (that sucks!) You have to first go to your profile page, and then click on the notifications tab to view them. It would make much more sense to change this to only "one click" for obvious reasons.
|
|
inherit
96289
0
May 17, 2020 9:37:00 GMT -8
elli
1,822
January 2007
ebbymac
|
Post by elli on Sept 20, 2019 8:32:32 GMT -8
When a user has a notification, a bubble will appear over the "Profile" link in the navigation. Clicking this bubble takes the user to their notifications.
Are you wanting to add a new navigation item that goes directly to Notifications? You can do this by going to Admin > Themes > Layout Templates > Forum Wrapper, scrolling to find your navigation loop:
{foreach $[navigation.menu]} ... {/foreach} And under that closing {/foreach}, add this new block:
<li> <a href="$[current_user.href]/notifications" target="_parent"> Notifications {if $[current_user.new_notifications]} <div class="tip-holder" onclick="window.location='$[current_user.href]/notifications'; return false;"> <div class="tip-number">$[current_user.new_notifications]</div> </div> {/if} </a> </li>
|
|
SafeInSanity
Junior Member
Falling in love with Proboards again!
Posts: 424
inherit
23917
0
Feb 27, 2020 11:29:13 GMT -8
SafeInSanity
Falling in love with Proboards again!
424
May 2004
wiki
|
Post by SafeInSanity on Sept 20, 2019 9:16:56 GMT -8
When a user has a notification, a bubble will appear over the "Profile" link in the navigation. Clicking this bubble takes the user to their notifications. Are you wanting to add a new navigation item that goes directly to Notifications? You can do this by going to Admin > Themes > Layout Templates > Forum Wrapper, scrolling to find your navigation loop: {foreach $[navigation.menu]} ... {/foreach} And under that closing {/foreach}, add this new block: <li> <a href="$[current_user.href]/notifications" target="_parent"> Notifications {if $[current_user.new_notifications]} <div class="tip-holder" onclick="window.location='$[current_user.href]/notifications'; return false;"> <div class="tip-number">$[current_user.new_notifications]</div> </div> {/if} </a> </li> Thanks! .. seems to be working .
|
|
#e61919
Support Staff
224482
0
1
Mar 28, 2024 16:54:21 GMT -8
Scott
23,133
August 2015
socalso
|
Post by Scott on Sept 20, 2019 10:22:30 GMT -8
SafeInSanity , just echoing what elli stated at the beginning of her post: There is no need for extra code as this function is already built-in. If you click on the notification bubble itself it takes you to the notifications. ONE click, not two.
|
|
inherit
223590
0
May 17, 2023 9:13:21 GMT -8
Kitty Katt
My Username is @kittykatt (with 2 t's in katt)
819
July 2015
kittykatt
|
Post by Kitty Katt on Sept 20, 2019 14:25:27 GMT -8
SafeInSanity , just echoing what elli stated at the beginning of her post: There is no need for extra code as this function is already built-in. If you click on the notification bubble itself it takes you to the notifications. ONE click, not two. I think, Scott, that what may be referred to is - when there is more than one notification, the bubble only stays for that first click. To get back to the notifications, to check the rest of them, it does take two clicks. By having a navbar link, even that can be reduced to one click.
|
|
#e61919
Support Staff
224482
0
1
Mar 28, 2024 16:54:21 GMT -8
Scott
23,133
August 2015
socalso
|
Post by Scott on Sept 20, 2019 18:08:15 GMT -8
Good point Kitty Katt. I usually view all mine in one sitting by clicking each to a new tab, so didn't think of that.
|
|