AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] show username on menu

4 Posts
2 Users
0 Reactions
2,821 Views
Posts: 9
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@raymond-heriel)
Active Member
Joined: 7 years ago
[#9583]

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

See image 

 Capture

3 Replies
Robert
Posts: 10729
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months 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: 7 years ago

Active Member
Posts: 9
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@robert

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

Thanks in advance.


Robert
Posts: 10729
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months 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/


Share: