-
David Cavins replied to the topic deny access to subscriber profile in the forum How-to & Troubleshooting 6 years, 9 months ago
Ha, that’s because there was an extra semi-colon. Try this:
add_action( 'wp', function() {
if ( bp_is_profile() ) {
$user_meta = get_userdata( bp_displayed_user_id() );if ( in_array( 'subscriber', $user_meta->roles ) ) {
wp_redirect( home_url() );
exit;
}
}
}, 1 );
What I was saying about roles is that WordPress handles roles.…[Read more]
-
David Cavins replied to the topic Prevent group forums to show up in root forum update stream in the forum How-to & Troubleshooting 6 years, 10 months ago
Make sure you’re seeing what your subscriber users see. As a site admin, you can see everything. As a limited user, private forums don’t show up, unless the user has access to it.
-
David Cavins replied to the topic Groups – Create Not Working Properly in the forum How-to & Troubleshooting 6 years, 10 months ago
Hi @franciscofgb, if you’re having a caching issue, you’ll have to solve it from the caching end. If that’s not the issue, try deactivating your other plugins one at a time to see if the issue resolves itself. In a vanilla BP install, I’ve never run into the problem you’re describing.
-
David Cavins replied to the topic deny access to subscriber profile in the forum How-to & Troubleshooting 6 years, 10 months ago
Here’s some untested code that should prevent anyone from visiting the profile of a subscriber user. Roles are not a BP construct, so you’ve got to look to WordPress for that info.
add_action( 'wp', function() {
if ( bp_is_profile() ) {
$user_meta = get_userdata( bp_displayed_user_id() );if ( in_array( 'subscriber', $user_meta->roles; ) )…[Read more]
-
David Cavins replied to the topic add link to Skype account to user profile in the forum Installing BuddyPress 6 years, 10 months ago
Boone wrote something that might be helpful: https://github.com/boonebgorges/bp-social-media-profiles/
It automatically converts some social site links in extended profile fields into the right kind of link.
-
David Cavins replied to the topic Set textfield max characters in the forum Creating & Extending 6 years, 10 months ago
That depends on where you’re using it. You could use a
bp_signup_validate
filter to check that a username has certain characteristics. But for profile fields or other places, you’d have to enforce it some other way.Here’s an example of how you might disalloe long usernames:
[Read more]
add_action('bp_signup_validate', function() {
if ( isset( $_POST[… -
David Cavins replied to the topic Prevent group forums to show up in root forum update stream in the forum How-to & Troubleshooting 6 years, 10 months ago
Forums created in association with private or hidden groups are created as private forums. (They’ll only show up in the big forums list if you can see them.) Forums associated with public groups are not private–anyone can visit your-group/forum. They will show up in the big list. Visit
/wp-admin/edit.php?post_type=forum
to verify that private…[Read more] -
David Cavins replied to the topic Group user list doesn't work correctly in the forum How-to & Troubleshooting 6 years, 10 months ago
Here’s another report of this with a suggested fix: https://buddypress.trac.wordpress.org/ticket/7704
-
David Cavins replied to the topic Error in notification buddypress in the forum How-to & Troubleshooting 6 years, 10 months ago
You might looks at adding an email using the BuddyPress email system: https://codex.buddypress.org/emails/custom-emails/
-
David Cavins replied to the topic User Tag in Profile in the forum Creating & Extending 6 years, 10 months ago
Maybe you could use friend relationships for this. If the “friend” terminology doesn’t make sense for your use, there is a plugin that creates one-way relationships called “follows” https://wordpress.org/plugins/buddypress-followers/
-
David Cavins replied to the topic Allow Moderators to see private messages? in the forum How-to & Troubleshooting 6 years, 10 months ago
Hi James, I guess it depends on what a moderator is. (I can only think of Group Mods in BP, not sure what would count as a site-wide moderator.)
The ability to see private messages is controlled by the check
bp_current_user_can( 'bp_moderate' )
which is true for site or network admins.You could probably filter that value for some other role,…[Read more]
-
David Cavins replied to the topic Let users react to forum posts? in the forum Installing BuddyPress 6 years, 10 months ago
The forum functionality is provided by bbPress. I’m not aware of any plugins that add the feature you’re requesting, but the bbPress forums are probably a better place to ask:
https://bbpress.org/forums/ -
David Cavins replied to the topic email verification in the forum How-to & Troubleshooting 6 years, 10 months ago
If you are asking about bbPress, try the bbPress forum.
If you’re asking about removing the BuddyPress email verification step for new accounts, there are several plugins that do that:
-
David Cavins replied to the topic Duplicate Description in user field in the forum Miscellaneous 6 years, 10 months ago
It looks like your
buddypress/members/register.php
file is based on an old version of the template (that had the field description hardcoded in the template). You’ll need to remove this line:
<p class="description"><?php bp_the_profile_field_description(); ?></p>
in that file.
-
David Cavins replied to the topic BuddyPress and Custom HTML emails in the forum Creating & Extending 6 years, 10 months ago
There is an issue with hotmail/outlook rejecting activation emails (See the fix here: https://buddypress.trac.wordpress.org/changeset/11862).
Otherwise, the best way to customize your emails is explained here: https://codex.buddypress.org/emails/
-
David Cavins replied to the topic BuddyPress is not sending emails but test emails are sending. in the forum How-to & Troubleshooting 6 years, 10 months ago
There’s a known issue with hotmail/outlook addresses that will be addressed in the next minor update. You can see the fix here:
https://buddypress.trac.wordpress.org/changeset/11862That may be your issue. If not, please provide more information.
-
David Cavins updated the Customizing Labels, Messages, and URLs page, on the BuddyPress Codex 6 years, 10 months ago
Do you want to change various labels and messages in BuddyPress, but don’t want to hack the core files to do so? This page explains how to use a language translation file to customize BuddyPress labels, messages, […]
-
David Cavins replied to the topic Shortcode returns string "Array" in the forum Ideas 6 years, 10 months ago
Try wrapping the bp_get_profile_field_data() call in bp_unserialize_profile_field(), like this:
bp_unserialize_profile_field( bp_get_profile_field_data( ‘field=School Subjects’))
I’m not sure what shortcodes are doing in there, but
bp_unserialize_profile_field()
will convert an array into a comma-separated list. -
David Cavins replied to the topic Delete Account in the forum How-to & Troubleshooting 6 years, 10 months ago
Hi @mironegrini–
This isn’t possible, and will likely be even less possible in the future (as GDPR becomes a reality). BuddyPress does a bunch of cleanup when a user is deleted. You can search the code base for the actions:
'wpmu_delete_user'
and'delete_user'
to see all the hooked cleanup functions. You could unhook those actions, but then you’d…[Read more] -
David Cavins replied to the topic Users can't reply to forum in the forum How-to & Troubleshooting 6 years, 10 months ago
You might try the bbPress support forum for more specific help. https://bbpress.org/forums/
- Load More
@dcavins
Active 3 weeks, 2 days ago