Hi,
I've seen somewhere that it could not be possible, but my website (intras.fr) already get hundred of profiles pages, well referenced. I just have created some forums using the (very good) WPForo plugin, but it creates many new profiles pages.
My profiles pages are custom one and I don't want to change them !
Is it possible to create something like "add action" with some function ?
Thanks for your answer and sorry for any mistakes, my native language is french.
Hi @geve2009,
Yes that's possible. Please leave your website URL and some example of the profile pages.
In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.
Hi,
website url with your forum : https://www.intras.fr/forum/forum-formation/
Examples of profile page :
https://www.intras.fr/formateurs/fiche-membre/?ID=37
and
https://www.intras.fr/freelances/profil-freelance/?ID=463
This is depending on user's role.
Thanks for any help 🙂
You should only change the profile page, but leave the Account, Subscription and Activity Menus. They are forum specific pages and your forum users will not be able to change account information in forum.
To replace profile URLs to your custom profile URLs put this code in your active WordPress theme functions.php file:
function change_wpforo_profile_to_custom_url( $url = '', $member = array(), $template = 'profile' ){
if( wpfval($member, 'ID') ){
return get_option('siteurl') . '/formateurs/fiche-membre/?ID=' . $member['ID'];
}
return $url;
}
add_filter( 'wpforo_member_profile_url', 'change_wpforo_profile_to_custom_url', 10, 3 );
How to Easily Add Custom Code in WordPress (without Breaking Your Site)
In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.
Also I recommend disable wpForo Profile Page indexing in Dashboard > Forums > Settings > Features admin page:
In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.
Thousand thanks for this fast an nice answer. It works well and I had customized it for my own use.
Suggestion : Why don't add this in your next update ?
A backoffice screen which offer options to select the profile link (UM profile, WC profile, ... and custom profile).
It would be very usefull for anyone.
😀 Of course, I went to submit a 5 stars review for your nice plugin, but...
I would be happy to get ALL my WPForo screens translated into french language...
I had completed the PO file for french translation, but it seems that some words aren't into the translation file (i.e. "Unread posts" as link at the bottom of a forum, and some others... Thanks to check.