-
David Cavins replied to the topic Can view profile on desktop, but not on mobile in the forum How-to & Troubleshooting 7 years, 6 months ago
Try using a more vanilla theme to test this out, like twentyseventeen. I suspect the problem is the theme you’re using.
-
David Cavins replied to the topic Edit fields in members directory in the forum How-to & Troubleshooting 7 years, 6 months ago
It would be better if you added your custom code to
bp-custom.php
rather than to a theme. (When the theme is updated, you’ll lose your changes.)About
bp-custom.php
: https://codex.buddypress.org/themes/bp-custom-php/To insert those fields, you’ll just have to change you code, replacing
'field=Location'
with the name of your profile field.…[Read more] -
David Cavins replied to the topic Change details bp_last_activity in the forum How-to & Troubleshooting 7 years, 6 months ago
That’s an interesting idea. It seems like it should be possible, because BuddyPress is using a JavaScript library called
livestamp
to generate those strings. It relies onmoment.js
for localization (localization usually means translation, but could also mean “custom messages”). I think you could change the “relative time thresholds” as described…[Read more] -
David Cavins replied to the topic deny access to subscriber profile in the forum How-to & Troubleshooting 7 years, 6 months ago
OK, that’s a different issue, ha ha. You’ll have to instead of preventing access to the entire user profile, prevent access to the user profile tab on the user’s profile. Clear, right?
You’ll need to use the Navigation API.
This should get you close:…[Read more]
-
David Cavins replied to the topic Post Update in groups sometimes hangs in the forum How-to & Troubleshooting 7 years, 6 months ago
Check the plugin’s GitHub page, where work is currently ongoing to solve the issue.
-
David Cavins replied to the topic Mobile friendly registration? in the forum How-to & Troubleshooting 7 years, 6 months ago
CSS.Something like this will fix up the default form:
@media (max-width: 600px) {
#buddypress .standard-form #profile-details-section,
#buddypress .standard-form #basic-details-section {
float: left;
width: 100%;
}
}
-
David Cavins replied to the topic Buttons Turn Grey when Hovering in the forum How-to & Troubleshooting 7 years, 6 months ago
Hi, it looks like this rule is what’s active when hovering on your registration form, so I suspect it’s what you’ll need to override:
https://buddypress.trac.wordpress.org/browser/tags/2.9.3/src/bp-templates/bp-legacy/css/buddypress.css#L956 -
David Cavins replied to the topic Display email in frontend in the forum How-to & Troubleshooting 7 years, 7 months ago
The user can edit his or her email address via their profile > settings tab. You could add a link to that page like you’re doing above, with a link like “Change your Email Address” or similar.
I’m not sure what you mean about radio buttons. They should look like this:
• Option One
• Option Two
• Option ThreeAnd those items are called “optio…[Read more]
-
David Cavins replied to the topic Post Update in groups sometimes hangs in the forum How-to & Troubleshooting 7 years, 7 months ago
If you’re using BuddyPress Group Email Subscriptions, posting updates can take a long time because the plugin has to do a bunch of work to create the email notifications for all the group members. The devs are working to resolve the issue, but my crystal ball says that’s what you problem is, lacking more information.
-
David Cavins replied to the topic deny access to subscriber profile in the forum How-to & Troubleshooting 7 years, 7 months ago
Ha,
bp_is_profile()
isn’t a function. This works:
https://gist.github.com/dcavins/c5bb41691846b809c30c72230c3c5adf -
David Cavins replied to the topic New user Activation email is not received in the forum How-to & Troubleshooting 7 years, 7 months ago
Hi there-
There’s a known issue with outlook/hotmail emails being rejected:
https://buddypress.trac.wordpress.org/ticket/7697#comment:7A fix is forthcoming (but there’s no timetable for that update).
-
David Cavins replied to the topic deny access to subscriber profile in the forum How-to & Troubleshooting 7 years, 7 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 7 years, 7 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 7 years, 7 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 7 years, 7 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 7 years, 7 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 7 years, 7 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 7 years, 7 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 7 years, 7 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 7 years, 7 months ago
You might looks at adding an email using the BuddyPress email system: https://codex.buddypress.org/emails/custom-emails/
- Load More
@dcavins
Active 1 day, 21 hours ago