Search Results for 'code'
-
Search Results
-
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.
Hi.
I am getting this error.
Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /home/xxx/public_html/xxx/wp-includes/functions.php on line 3245I saw some of people asked about this question for previous versions. Its supposed to be fixed.
I am using
Debug : True
Wordpress : 3.9
bbPress Version 2.5.3Topic: bbcode
Is there any simple solution to delete default bbcodes. In which file the default bbcodes defined. Many thnaks for any hint.
Hi, I am using is_bbpress() in page.php to check whether I am in a bbPress context. It seems BuddyPress and bbPress are sharing the same profile page. Therefore, when the latter is being displayed, bbPress is being defined, and this triggers wrong behavior in my code. So, how can I check a bbPress or BuddyPress profile page is being displayed so I can fix my code? thx.

