Profile Redirect -I will Pay up to $100 for a solution-
-
Ive searched everywhere and tried everything I found to redirect the BBPress profile and before I will give up I thought to make a request in this forum.
Ive tried this in the .htaccess with no success:
RewriteEngine on
RewriteRule ^forums/users/(.*)/?$ http://www.mysite.com/dashboard/listings/$1 [L,R=301]Ive tried the Redirection WP plugin and its redirecting the forums/users/(.*)/ where I want but it is also redirecting http://www.mysite.com/forums/users/favorites/ and all the profile links and I DO NOT want this since my idea is to redirect the BBPress profile into a main profile and link the favorites and the topics started from there.
Ive also found this code but I cant get it to work:
add_action(‘bb_init’, ‘profile_redirect’); function profile_redirect() { if (is_bb_profile() && $_GET != ‘edit’ && $_GET != ‘favorites’) { $user = bb_get_user($_GET); if ($user) wp_redirect(“http://www.example.com/members/” . $user->user_nicename); } }
Please help me to do this and I am willing to pay up to $100 for a working solution but I need it as soon as possible.
- You must be logged in to reply to this topic.