Hi there, once a person creates a profile on our site, and then comes back later to edit their profile via the front end they are taken to this url and a get a error message. url of http://volitudesports.com/wp-admin/profile.php error message of: Sorry, you are not allowed to access this page.
I dont think that this is the correct URL for editing their profile. but I have left all of the default settings in place for wpForo. If it helps any we also are using your add-ons on of Private Messages and Embeds.
Thank you
Robert
Put this code in current active WordPress theme functions.php file:
function wpforo_custom_profile_url( $url, $userid, $scheme ) {
if(!is_admin()){
global $wpforo;
return $wpforo->member->get_profile_url($userid);
}
else{
return $url;
}
}
add_filter( 'edit_profile_url', 'wpforo_custom_profile_url', 10, 3 );
Hi there, I add the code and got an error message, unable to parse error on line 3
Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /home/volitud8/public_html/wp-content/themes/dt-the7/functions.php on line 3
