-
David Cavins replied to the topic Problem with the "front" page of mysyte.com/members" in the forum How-to & Troubleshooting 5 years, 6 months ago
Hi. I don’t know what you mean. Can you post an image of the problem to imgur or imgbb or similar?
-
David Cavins replied to the topic How to edit Buddypress functions in the forum How-to & Troubleshooting 5 years, 6 months ago
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
bp-custom.php
file:
[Read more]
add_filter( 'bp_nouveau_feedback_messages', function ( $messages )… -
David Cavins replied to the topic Active Buddypress users in the forum How-to & Troubleshooting 5 years, 6 months ago
Users are considered “active” when they have contributed something to the site. This is judged by whether they have an item in the
bp_activity
table. You could add fakelast_activity
items 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] -
David Cavins replied to the topic Programmatically create xprofile field in the forum Creating & Extending 5 years, 6 months ago
Hi @ibes–
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]
-
David Cavins replied to the topic Losing first and last name fields in the forum How-to & Troubleshooting 5 years, 6 months ago
Hi Tom-
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 thename=field_1
, then you can guess…[Read more] -
David Cavins replied to the topic Page.php to buddypress.php in the forum How-to & Troubleshooting 5 years, 6 months ago
Hi @jannetto96–
I can verify that adding a
buddypress.php
orcommunity.php
file 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_www
user (or whatever your webserver runs as) to read the…[Read more] -
David Cavins replied to the topic Registration box Spanish in the forum Installing BuddyPress 5 years, 6 months ago
Hi @javimarcal–
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
/wp-admin/update-core.php
-
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 5 years, 6 months 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).
-
David Cavins replied to the topic Losing first and last name fields in the forum How-to & Troubleshooting 5 years, 6 months ago
Hi @tdurocher–
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 5 years, 6 months ago
Sure, you can add a filter to the
bp_activity_can_comment
filter 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 Comments not showing on Activity Stream in the forum How-to & Troubleshooting 5 years, 6 months ago
Thanks @benjiswart for posting the solution you found!
-
David Cavins replied to the topic After registration i want to store the role in 'wp_user' table in the forum How-to & Troubleshooting 5 years, 6 months ago
It wouldn’t be wise to edit the
wp_user
table. You could store the info in the user meta table, or better yet use BuddyPress member types: https://codex.buddypress.org/developer/member-types/ -
David Cavins replied to the topic Programmatically create xprofile field in the forum Creating & Extending 5 years, 6 months ago
Hi @ibes–
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.
Best,
-David
-
David Cavins replied to the topic Shortcode question [bp_profile_url] in the forum Installing BuddyPress 6 years, 11 months ago
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.
-
David Cavins replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 6 years, 11 months ago
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?
-
David Cavins replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 6 years, 11 months ago
If you uncheck “allow group creation for all users” only site admins will be able to make groups.
-
David Cavins replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 6 years, 11 months ago
Hi @auctionarmory–
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]
-
David Cavins replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 6 years, 11 months ago
See above for a list of user capabilities by role:
2) Choose the users that you want to enable (to create groups). Get the list of WP capabilities for each of them from here (or use a role/capability editing plugin):
https://codex.wordpress.org/Roles_and_Capabilities
Choose one capability which is only shared by those users that will have the…
-
David Cavins replied to the topic Messages not all showing. in the forum How-to & Troubleshooting 7 years ago
Since you’re using BuddyBoss theme (I think) I’d probably ask them first, because the template that loads the message loop is provided by the theme.
That’s a weird problem, though!
-
David Cavins replied to the topic Registration process in the forum Ideas 7 years ago
The best advice I can offer is to make the registration page as simple as can be, and then ask for more info later, once the user is registered. If the registration page is hard, the user has to _really_ want to join to go through with it.
- Load More
@dcavins
Active 4 days, 19 hours ago