Notifications
Clear all

wpForo 1.x.x [Closed] Link to User's profile page

8 Posts
2 Users
2 Likes
6,106 Views
wolfpup64
Posts: 19
Topic starter
(@wolfpup64)
Eminent Member
Joined: 8 years ago

Heyo wpForo, I'm currently in the process of building an integrated buddypress/wpForo site for software troubleshooting and community building. I really dig the wpForo platform and I think it'll work great for what I'm trying to achieve, I'd just like to better integrate the user profiles pages.

 

Short term, goal is to make a tab in the BP profile page that links to the active logged in user's wpForo profile, if you could help me out with what line would achieve that it would be awesome.

7 Replies
Robert
Posts: 10503
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi wolfpup64,

I'm sorry but I'm not familiar with BuddyPress profile template API. If you have question related to wpForo functions please let me know.

wolfpup64
Posts: 19
Topic starter
(@wolfpup64)
Eminent Member
Joined: 8 years ago

Not a big deal, I think I'll be able to do all the buddypress profile modifications, what I really need is information on how to link to the active wpForo's user profile. I haven't been able to find a link anywhere on my own through wpForo.

 

I'm fairly new to this so I don't know the proper term for what I'm looking for, I would imagine its called something like a dynamic link. I just want a link for the logged in user to access their own account, I think I'll be able to take care of the rest.

 

Thanks,

Andrew

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

I suppose you mean current logged in user saying "active user".

The best way to get Forum Profile URL of current logged in user is this:

global $wpforo;
$current_user_id = get_current_user_id();
if( $current_user_id ) $forum_profile_url = $wpforo->member->get_profile_url( $current_user_id );   
wolfpup64
Posts: 19
Topic starter
(@wolfpup64)
Eminent Member
Joined: 8 years ago

Awesome, thanks man. I'll let you know how it works. Really dig your forum platform by the way.

Page 1 / 2