-
David Cavins replied to the topic Page.php to buddypress.php in the forum How-to & Troubleshooting 5 years, 3 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, 3 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, 3 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, 3 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, 3 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, 3 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, 3 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, 3 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, 8 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, 8 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, 8 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, 8 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, 8 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 6 years, 8 months 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 6 years, 8 months 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.
-
David Cavins replied to the topic Restrict users seeing other users based on fields in the forum Creating & Extending 6 years, 8 months ago
You might also approach this with member types: https://codex.buddypress.org/developer/member-types/
-
David Cavins replied to the topic Forgotten Password in the forum Installing BuddyPress 6 years, 8 months ago
#2 can also happen if the user’s email client has stripped out some of the needed query arg parameters. Outlook has been known to strip the query arg
?key=
for instance. -
David Cavins replied to the topic How to restrict group creation to certain users in the forum How-to & Troubleshooting 6 years, 8 months ago
I generally stick to using capabilities. So I’d find a capability that all of the roles you want to be able to create groups have. Then the code looks like:
add_filter( 'bp_user_can_create_groups', function( $can_create ) {
[Read more]
$can_create = false;
if ( current_user_can( 'known_capability' ) ) {
$can_create = true;
}
return $can_create;
}… -
David Cavins replied to the topic remove the cropping function in the forum Installing BuddyPress 6 years, 9 months ago
The blurriness is a result of the image being cropped to smaller than the size needed to display it, or starting with an image that is too small to begin with. I’m afraid that disabling the cropping functionality wouldn’t completely solve your problem. The cropping tool does show a preview of the resulting image, so in any case, your users…[Read more]
-
David Cavins replied to the topic BuddyPress Moderator in the forum Third Party Plugins 6 years, 9 months ago
I’ve been using this plugin, which is an updated version of that old one: https://github.com/hwdsbcommons/BP-Moderation
It works well and the repository owner is open to accepting pull requests.
- Load More
@dcavins
Active 3 weeks, 2 days ago