disable plugin in specific dynamic buddypress pages

There are two ways to solve this issue: 1) As mentioned above, Plugin Organizer is a popular plugin built to handle this sort of request. 2) Custom code, either in your theme or in the plugin itself. Knowing the inner workings of the plugin you are attempting to disable will be important if you decide … Read more

Include Information Text within Registration Page

Please see this thread: https://stackoverflow.com/questions/4869154/how-to-detect-adblock-on-my-website This possible by creating a javascript file in your theme folder, enqueue it properly and than execute some message (maybe in jQuery model, or alert box in JavaScript)

Create a dynamic buddupress tab

You can’t use an object variable, $user->display_name, in a string. And why would you want a tab that links back to the member being viewed? You’re already viewing that member. This will provide the url of the displayed member: bp_displayed_user_domain() So you could do this: function redirect_user_to_tab3(){ bp_core_redirect( bp_displayed_user_domain() ); } If you just want … Read more

TOO MANY REDIRECTS ERROR when redirecting buddypress register page to WordPress sign up

Had the same problem Found this solution in my intense google search: / hacks and mods will go here This Version is plugin folder /** * Disables BuddyPress’ registration process and fallsback to WordPress’ one. */ function my_disable_bp_registration() { remove_action( ‘bp_init’, ‘bp_core_wpsignup_redirect’ ); remove_action( ‘bp_screens’, ‘bp_core_screen_signup’ ); } add_action( ‘bp_loaded’, ‘my_disable_bp_registration’ ); add_filter( ‘bp_get_signup_page’, “firmasite_redirect_bp_signup_page”); … Read more

Buddypress – Custom Name For Logged In User’s Messages In Message Thread

A. in the template file only.. in message.php replace <?php bp_the_thread_message_sender_name(); ?> with <?php $userID = bp_loggedin_user_id(); $senderID = bp_get_the_thread_message_sender_id(); if ($userID == $senderID) : ?> You wrote: <?php else : ?> <?php bp_the_thread_message_sender_name(); ?> <?php endif; ?> B. or, as a function add this to bp-custom.php function custom_bp_the_thread_message_sender_name() { $userID = bp_loggedin_user_id(); $senderID = … Read more

is it possible to add_action via template.php rather than function.php for this specific buddypress hook?

As cybmeta said – removing the tab does not block access to functionality. The quick solution is to leave all the tabs in place, regardless of a user’s role. Instead, add a conditional to an overloaded template. For example, overload this template: buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\edit.php And add a role-based conditional at the top. The conditional will control … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)