Notifications
Clear all

Script [Solved] Linking to Custom Profile Page

6 Posts
3 Users
1 Reactions
136 Views
Posts: 11
Topic starter
(@support)
Active Member
Joined: 2 months ago

In the Member Profile setup you note: wpForo forum has a powerful user profile system which can be managed in this setting page. Here you can hide/show forum header and footer on profile pages, manage profile components like avatars, member titles, nickname, URL structure, signature etc... In case you use BuddyPress or Ultimate Members plugins, you can switch forum profile page to the plugin profile page.

We have a custom profile page how do we set it as default instead of wpForo, BuddyPress, or Ultimate Members??

5 Replies
Posts: 11
Topic starter
(@support)
Active Member
Joined: 2 months ago

It appears we maybe able to do it here??

For member profile, account and subscription pages use following URLs:
https://www.circlecitycampers.com/circlecitycampersblog/participant/profile/
https://www.circlecitycampers.com/circlecitycampersblog/participant/account/
https://www.circlecitycampers.com/circlecitycampersblog/participant/subscriptions/

2 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 5322

@support 

"Please let us know which plugin you’re using to create the profile pages.

(@support)
Joined: 2 months ago

Active Member
Posts: 11

@sofy We are writing our own code using wp snippet pro plug in. So it would be nice instead of defaulting specific plugins you could offer a textarea url hyperlink option in the dropdown.

Robert
Posts: 10604
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @support ,

There are a lot of hooks in wpForo so you can change the profile URLs as you want.

You should use the wpforo_member_profile_url hook.

Example:

add_filter( 'wpforo_member_profile_url', 'my_custom_profile_url', 10, 3 );

function my_custom_profile_url( $url = '', $member = [], $template = 'profile' ){
     if( ! wpforo_is_admin() && wpfval( $member, 'userid' ) ) {
          switch( $template ) {
               case 'account':
                     $url = home_url() . '/participant/account/';
               break;
               case 'activity':
                     $url = home_url() . '/participant/profile/';
               break;
               case 'subscriptions':
                     $url = home_url() . '/participant/subscriptions/';
               break;
               case 'profile':
                     $url = home_url() . '/participant/profile/';
               break;
          }		
     }
     return $url;
}
1 Reply
(@support)
Joined: 2 months ago

Active Member
Posts: 11

@robert Yep - thanks, we tweaked it a bit but your recommendation worked !! Thanks.