Forum Replies Created
-
@danbp thanks for adding to make a full solution 🙂
In reply to: Remove Everything GravatarFor just BuddyPress (not the WordPress side of things), see comment 4 here:
https://buddypress.trac.wordpress.org/ticket/2367#comment:4In reply to: UsernameGreat 🙂
Just copy and paste it into your theme’s functions.php file.
In reply to: Let’s work togetherIt’s always a disappointment when a thread you’ve opened gets closed, especially when your intentions are genuine. That said, the mod offers some great advice which I think will help you find people with similar interests as yourself.
Twitter is another great way to interact with the BuddyPress community. Be sure to hashtag your Tweets with #buddypress related words so people will find you 🙂
You should be able to do this:
remove_action( 'bp_core_activated_user', 'bp_core_new_user_activity' );In reply to: Members page and my themeI’d suggest you contact the theme author asking if they can release an update; making things compatible with BuddyPress.
In reply to: User RoleHi @hoseke
Assuming you’re talking about WordPress roles and not BuddyPress member types, then you can do this:
$user = wp_get_current_user(); $user->set_role( 'student' );In reply to: UsernameIn reply to: Let’s work togetherHey @marcella1981
Great to see you’re interested in developing BuddyPress themes. It might be worth also asking your question over at wordpress.org; I’m hoping there’ll be some WordPress theme authors who’ll want to turn their hand to themes for BuddyPress.
In reply to: how to add language in buddypress?Hi @arturamirov
See the Languages and Translations article to start with. There’s also the Translator Handbook.
In reply to: Login redirect not excluding admin@mcuk there must be something conflicting. Try raising the priority from 11 to 999 temporarily just in case you have anything else hooked to login_redirect
In reply to: Login redirect not excluding adminThe code should work now. I can’t see anything wrong with it. Are you sure the user account you’re logging in with has admin capabilities?
In reply to: Login redirect not excluding adminJust to note, is_admin() checks if the dashboard is being viewed, not the user’s capabilities.
In reply to: Login redirect not excluding adminTry putting
return $redirect_to;after your condition. It’s currently wrapped inside it.In reply to: Login redirect not excluding adminThis won’t check for ‘normal’ admins unless network mode is disabled.
Try
if ( ! current_user_can( 'manage_options' ) ) {In reply to: How to disable HTML in BuddyPress private messageHey @danbp,
WordPress provides a function for that. Check out
wp_filter_nohtml_kses(). It strips all HTML from the string you provide so there’s no need to usepreg_replace().function hellowed_remove_html_private_messages( $message ) { $message = wp_filter_nohtml_kses( $message ); return $message; } add_filter( 'messages_message_content_before_save', 'hellowed_remove_html_private_messages' );In reply to: allow search by usernameHi @evilnut
You shouldn’t modify core files because when you upgrade the plugin, your changes will be lost.
In reply to: Activity linkHi @gsupriya
Can you add some background to your question? It’s not entirely clear what you’re trying to do.
In reply to: Buddypress popup registration form@leanneoleary Try contacting the author @sbrajesh letting him know. I’m sure he’ll be grateful for the bug report and may release a fix.
Hi @winnergirl
Does BuddyPress require its own independent WP site?
No. BuddyPress works just like any other plugin you might install on your WordPress website. You should just be able to click ‘activate’.
In reply to: Register page password strength and hint@leanneoleary great to hear you found a solution 😀
In reply to: Register page password strength and hintOn the registration page, the password shows a strength meter from weak to strong. However, I have had a few testers mention that no matter what password they use the meter always says ‘Weak’
This is definitely a problem. As your testers provide more obscure passwords, the meter should start to increase from weak to strong