Note that you will have to have “Enable BuddyPress to WordPress profile syncing” checked in order for the function I provided to work.
Also, “WP offers the ability to set the display_name to any of the other names (nickname, first name last name, username, and more)”, yes that’s true, but when your preference is saved, the value you chose is c…[Read more]
Sorry, it’s not the BP nickname field. That’s actually a WP user meta field.
Other things that appear to be true:
• BP uses WP’s “Display Name” to label the user in activity items and elsewhere.
• WP’s ‘nickname’ meta is required but not used widely?
So it seems like the key field for display in BP, bbPress and WP is WP’s “display name” field…[Read more]
It sounds like you have a lot of balls in the air. For instance:
Remember, I have removed the original xprofile_sync function.
Honestly, I can’t know enough about your setup to tell you anything for sure. What I can tell you is this:
• bbPress uses WordPress’s “Display Name” field, not a BuddyPress field.
• BuddyPress only updates the…[Read more]
David Cavins replied to the topic Problem with the "front" page of mysyte.com/members" in the forum How-to & Troubleshooting 1 week, 5 days ago
Hi. I don’t know what you mean. Can you post an image of the problem to imgur or imgbb or similar?
There are several ways to edit messages. Since these messages are filtered (it’s applied here: https://github.com/buddypress/BuddyPress/blob/5.0.0/src/bp-templates/bp-nouveau/includes/functions.php#L932), you could add something like this in your
add_filter( 'bp_nouveau_feedback_messages', function ( $messages )…
Users are considered “active” when they have contributed something to the site. This is judged by whether they have an item in the
bp_activitytable. You could add fake
last_activityitems directly to the database table to make it look like they are active users.
You could also change the loop templates (like
members/members-loop.php) to actually…[Read more]
I’d try to use Xprofile for managing profile fields. There’s a lot of baked-in goodness with the Xprofile component.
Obviously, I don’t know what will work in your situation, but it seems like name matching is reasonable. You could probably also extend the Xprofile Groups and Fields classes to add some sort of persistent-ID parameter…[Read more]
I’d guess that you (or the previous site admin) edited the Display Name field to be called “Name.” You can check by visiting this screen on your installation: /wp-admin/users.php?page=bp-profile-setup
“Display Name” is usually the first profile field created, so if you inspect the
input, and it has the
name=field_1, then you can guess…[Read more]
I can verify that adding a
community.phpfile to the root of the active theme directory does result in BuddyPress using that file preferentially over something more generic. Please check that the new file has been created with permissions that allow the
_wwwuser (or whatever your webserver runs as) to read the…[Read more]
It sounds like you’ll need to visit the updates page in your WP admin dashboard to download and use the language files for BuddyPress and other plugins. The updates page is at
David Cavins replied to the topic The Registration area do not have a border for name, email and more in the forum How-to & Troubleshooting 2 weeks, 6 days ago
There’s an inline style on your site that is setting the input border to white. It’s most likely being added via some theme setting or via the customizer (because it is being added inline).
What screen are you using to change the bbPress “forum name”? (That’s unfamiliar to me.)
BuddyPress uses the user’s profile to manage names, and doesn’t generally interact with the First and Last name fields; it allows the user to manage the Display Name field. For instance, via…[Read more]
David Cavins replied to the topic Restrict Commenting on Activity Stream to Certain Roles in the forum How-to & Troubleshooting 2 weeks, 6 days ago
Sure, you can add a filter to the
bp_activity_can_commentfilter point. It is designed to only allow comments on certain types of posts/objects, but there’s no reason you couldn’t take the current user into account in your filter.
You can read more about filters here:
The filter I’m…[Read more]
David Cavins replied to the topic After registration i want to store the role in 'wp_user' table in the forum How-to & Troubleshooting 2 weeks, 6 days ago
It wouldn’t be wise to edit the
wp_usertable. You could store the info in the user meta table, or better yet use BuddyPress member types: https://codex.buddypress.org/developer/member-types/
You can get the profile field groups and fields by using the function:
$groups = bp_xprofile_get_groups( array( 'fetch_fields' => true ) );
With this information, you should be able to determine whether a field exists and what its ID is.
Also, if you’re trying to link to the users own profile, don’t forget about the utility url:
If the user isn’t logged in, it’ll pass them through the registration form to get there.
Actually your code will work either way (no matter what the restrict group creation checkbox is set to). Your function must not be “seen” by WP. Is it in bp-custom.php or in your theme’s functions.php file?
That looks promising! The only way you can know if it “works” is by trying it in your environment. Create a couple of test users, one who’s got the somewhat elevated role of “vendor” and one who’s just a subscriber. Then try it when logged in as your test users. If your vendor can do create groups, but your subscriber can’t…[Read more]
- Load More
@dcavins active 5 days, 21 hours ago