Notifications
Clear all

wpForo 1.x.x [Closed] Adding A WPForo Login/Register & Loggedin status to Menu (Navigation)

3 Posts
2 Users
0 Reactions
3,712 Views
Posts: 2
 wpm
Topic starter
(@wpm)
New Member
Joined: 6 years ago

Hi Everyone,

I've recently installed wpforo and integrated it correctly on my Divi Built website, at the moment wpforo is handling the Login & Register Pages & Process.Β 

I have tested it and logged in users can also comment on blog posts correctly which is great!Β 

I now wish to add a link in the main navigation bar which will display Login / RegisterΒ  (when user is logged in, they will see their Account Display Name (forum name).Β 

Based on permissions e.g. guest or logged in the navigation links will change (e.g. login/register will disappear using Nav Menu Roles plugin).Β 

Would you know the best way to display the Account Name in the Menu when logged in? (as a nav link).Β 

Dev website link

If anyone can show me a good work around that would be great - examples of this implemented even better!

2 Replies
Sofy
Posts: 4905
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

HiΒ wpm,

you should edit your primary menu or other menus and add wpForo menu items. Use the "Custom Links" menu type and these shortcode-URLs in URL field:

  • Register: /%wpforo-register%/
  • Login: /%wpforo-login%/
1 Reply
 wpm
(@wpm)
Joined: 6 years ago

New Member
Posts: 2

Hi Thanks for that I've implemented all of the shortcodes fromΒ  https://wpforo.com/community/faq/wpforo-shortcodes/ Β 

I'd ideally like to pull the WP User Name (Display Name) to display instead of Account (which is currently displayed when loggedin)Β