inherit
221074
0
Aug 1, 2019 9:11:47 GMT -8
dillonk47polik
201
May 2015
dillonk47polik
|
Post by dillonk47polik on May 7, 2015 13:23:21 GMT -8
Is there a way to put a notification tab in the navigation menu so each member can be taken directly to their notification tab within their profile? I tried using adding a custom tab by using the url ]http://taylorswiftboards.proboards.com/user/1/notifications, but that won't work because each member has their own unique id.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on May 7, 2015 14:10:22 GMT -8
Hi, dillonk47polik. Clicking on the notification bubble on the Profile button should automatically take you to your notifications when you have new ones. If you want a dedicated menu button for it you'll have to edit your layout templates to dynamically generate the user ID in the URL. Namely this line in Themes > Layout Templates > Forum Wrapper. You'd change it to this, substituting the text in green with the name of your notifications menu button. It won't matter what URL you specify in your menu settings at that point since any buttons matching the name you specify will adopt the URL in the code instead of the one in your settings.
|
|
inherit
221074
0
Aug 1, 2019 9:11:47 GMT -8
dillonk47polik
201
May 2015
dillonk47polik
|
Post by dillonk47polik on May 7, 2015 14:25:59 GMT -8
BrianMy forum wrapper code shows some admin code in that place. Replacing the code would take that out. Should that line of admin code be somewhere else. P.S. The reason I want a notifications menu item in the navigation bar is because I moved the profile menu item out of the navigation bar and next to the logout link, so 'Profile' is no longer tabbed with notifications. I could have asked for a code to put the tabbed notifications back onto 'Profile' but I like the idea of a notification menu item better.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on May 7, 2015 14:32:26 GMT -8
You can incorporate the change I posted alongside your previous change. Mine only affects this part of that line:
If you find the same part in my code you'll notice the only thing that needs changing is the code between the quotation marks in that section.
|
|
inherit
221074
0
Aug 1, 2019 9:11:47 GMT -8
dillonk47polik
201
May 2015
dillonk47polik
|
Post by dillonk47polik on May 7, 2015 15:08:35 GMT -8
You can incorporate the change I posted alongside your previous change. Mine only affects this part of that line: If you find the same part in my code you'll notice the only thing that needs changing is the code between the quotation marks in that section. Okay I put it in the code, and it works, but it doesn't put the notification number on the notification menu item.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on May 7, 2015 15:17:58 GMT -8
You didn't ask for that. Find this line. Add a new line after it and place this on it. Same rules as before.
|
|
inherit
221074
0
Aug 1, 2019 9:11:47 GMT -8
dillonk47polik
201
May 2015
dillonk47polik
|
Post by dillonk47polik on May 7, 2015 15:40:26 GMT -8
Is there any way to make the notification number a bubble like 'profile would have rather than just a number in parenthesis?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on May 7, 2015 15:59:10 GMT -8
You'd have to duplicate the regular notification bubble HTML and change it to show specifically for the Notifications button.
Replace the notification number code I gave you with this.
|
|
inherit
221074
0
Aug 1, 2019 9:11:47 GMT -8
dillonk47polik
201
May 2015
dillonk47polik
|
Post by dillonk47polik on May 7, 2015 16:46:18 GMT -8
You're awesome Brian! Thank you so much. Thread Complete/Resolved
|
|