Notifications
Clear all

wpForo 1.x.x [Closed] show username on menu

4 Posts
2 Users
0 Likes
1,309 Views
Posts: 9
Topic starter
(@raymond-heriel)
Active Member
Joined: 5 years ago

Hello, guys, I am trying to show username on wpforo menu when they log in. How can I do that?

See image 

3 Replies
Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi @raymond-heriel,

Call this function to display Current Login User with a ink to that user profile page:

<?php wpforo_member_link( WPF()->current_user ); ?>

Or just use WPF()->current_user array to get any data of current login user:

<?php echo WPF()->current_user["display_name"]; ?>
1 Reply
(@raymond-heriel)
Joined: 5 years ago

Active Member
Posts: 9

@robert

Hey where should insert this line of code. My coding skills are not that great.

Thanks in advance.

Robert
Posts: 10499
Admin
(@robert)
Support Team
Joined: 8 years ago

@raymond-heriel,

After inserting you'll need design correction and other things. I'm really sorry but we don't provide forum customization service in free support forum. The support forum is open for problem fixing and helping to use and manage forums not for custom codding. I'm really sorry but you may need some developer to help you customize your forum layout and design.

Also you should aks that developer to use update save way for any customization based on this documentation: https://wpforo.com/docs/root/forum-themes/theme-customization/