AI Search
Classic Search
Notifications
Clear all
Jul 13, 2019 12:51 pm
where do I add this code to show the active users profile? I've embed [wpforo item="profile" id="25"] its only showing my Profile page
Global $wpforo;
$current_user_id = get_current_user_id();
if( $current_user_id ) $forum_profile_url = $wpforo->member->get_profile_url( $current_user_id );
9 Replies
Jul 13, 2019 1:42 pm
Hi @darkness,
As far as i see. You don't need any code to get current user profile URLs, just use those URLs without specific user nickname and it'll automatically open current user profile pages:
- https://wpforo.com/community/profile/
- https://wpforo.com/community/account/
- https://wpforo.com/community/activity/
- https://wpforo.com/community/subscriptions/
Jul 14, 2019 3:54 pm
do you want to show all online users ?