Jul 13, 2019 8:51 am
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 9:42 am
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 11:54 am
do you want to show all online users ?