Forum Replies Created
-
This shouldn’t be possible. BuddyPress checks if a username exists before registering the user.
You could filter body_class and add a logged-in and logged-out class. Then style in your child theme’s style.css document. For example:
body.logged-out { // Do some blurring }
“bp_loaded” will also get the job done. You just need to find a hook that’s appropriate. A function needs to be defined before you call it so it’s always worth keeping track of the load order in both WordPress and BuddyPress.
Feel free to edit the documentation if you find an error. BuddyPress welcomes contributions
Try wrapping your call to
bp_is_active()
in a function hooked to something likewp
.For example:
add_action( 'wp', function() { // Call bp_is_active() here } );
You need to do this because it’s likely your plugin is loaded before BuddyPress, hence the
bp_is_active()
function isn’t defined at that point.You could report the issue to the WP Mail SMTP plugin author. They usually appreciate the bug report and often fix.
Unfortunately, the fields are synchronized only when the profile is updated. I do not know how to start mass synchronization
This is likely because you’re hooking to a hook fired at profile update. You’ll need to hook your code to something that gets fired at another point in time.
I wonder why Members page is not part of the BuddyPress menu?
Good question! This is something you can change at the theme level. Nearly all areas of BuddyPress can be customised. If you need help feel free to post questions and open new topics.
You’ll need to use HTML. Check out this guide: https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started
I’m not sure why I would need to hook to something?
Imagine a scenario where your functions.php file is loaded before something else. That something else won’t be available to you in functions.php.
Check out the plugins here https://wordpress.org/plugins/tags/buddypress/
These plugin authors have used the “buddypress” tag which indicates a compatibility with BuddyPress.
Hope it helps!
BuddyPress should be compatible with PHP 7.0 and 7.1. What conflict are you seeing?
Try asking at bbPress. They handle all forum related questions.
I just noticed you want to schedule your callback. You will need to use the method described here https://codex.wordpress.org/Function_Reference/wp_cron
You need to hook to something like
wp
. Try adding this in your functions.php file:add_action( 'wp', function() { // Add your code here } );
You’re using the class method properly. This should output an array containing an array of groups and a count.
$group_ids = BP_Groups_Member::get_group_ids( $user_id ); var_dump( $group_ids );
Make sure the
$user_id
argument you are passing to the class method is valid. It should be an integer but I don’t think type is enforced in this case so a string might also work.If your question relates to your bbPress forum then try asking at bbPress. Alternatively see here for information on the
bp_activity_add()
function:Try creating the pages manually by going to the WordPress admin area. You should then be able to associate each of the pages you have created with your BuddyPress components.
members/username/ is generated by BuddyPress and author/username/ is generated by WordPress. You don’t have to merge them, they can live peacefully together without problems.
TinyMCE has justify, underline and text size buttons. You would need to integrate it with the activity post form. See these resources for more info:
wordpress.org uses Subversion for version control and GitHub uses Git. Some developers just prefer to develop using Git and then post releases to wordpress.org
The plugin hasn’t been abandoned. It’s still maintained by @r-a-y. See https://github.com/r-a-y/buddypress-usernames-only
messages_new_message()
accepts an array argument. “recipients” can be an array of user IDs. Try this:$args = array( 'sender_id' => bp_loggedin_user_id(), 'recipients' => array( 76, 77, 81, 82, 118, 120, 122, 123, 124, 131, 132, 133 ), 'subject' => 'Test subject', 'content' => 'Test content' ); messages_new_message( $args );
Post Formats is a WordPress theme feature. See https://codex.wordpress.org/Post_Formats. Try asking your question at https://wordpress.org/support/
Check with the users that the email isn’t in the junk folder. This often happens so I usually recommend checking that first.
I tried BP Reactions after activating it, it does not show up
You could try opening an issue on the plugin’s forum: https://wordpress.org/support/plugin/bp-reactions