-
David Cavins replied to the topic Restrict users seeing other users based on fields in the forum Creating & Extending 7 years 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 7 years 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 7 years 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 7 years 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 7 years 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.
-
David Cavins replied to the topic Adding new field to user registration form. in the forum Installing BuddyPress 7 years ago
Hi @teljkon–
I don’t understand your points 2 and 3, but 1 can be solved easily: https://codex.buddypress.org/administrator-guide/extended-profiles/
Fields in the “Primary (Base)” profile field group are added to the registration form.
-
David Cavins replied to the topic Update URL on "Register" in the forum How-to & Troubleshooting 7 years ago
Good job solving your issue.
-
David Cavins replied to the topic Can view profile on desktop, but not on mobile in the forum How-to & Troubleshooting 7 years ago
Please share how you solved the issue, so that other forum users can learn from your experience.
Thanks!
-
David Cavins replied to the topic Why can you crop the cover image? in the forum How-to & Troubleshooting 7 years ago
Cover images work best when the original image is large enough. You can disable cover images for groups and/or members at wp-admin > settings > buddypress > options:
• Group Settings > Allow customizable cover images for groups
• Profile Settings > Allow registered members to upload cover images -
David Cavins replied to the topic Embed Groups in the forum How-to & Troubleshooting 7 years ago
I don’t know of a shortcode for listing out groups. However, you could use the code in
buddypress/bp-templates/bp-legacy/buddypress/groups/groups-loop.php
as a starter. The loop is powered bybp_has_groups()
which is template loop like the WordPress posts loop. You could add a template to your child theme, likepage-group-list.php
and copy that…[Read more] -
David Cavins replied to the topic Activity Feed showing items twice in the forum How-to & Troubleshooting 7 years ago
Huh. I can’t replicate this behavior. You’ll need to share more info about your site environment (plugins, versions, theme).
On my several BP sites, nested commenting is working as expected, so I expect that it’s a combination of tools you’re using.
-
David Cavins replied to the topic How to Insert @username in activity comment replies. in the forum How-to & Troubleshooting 7 years ago
I’m not sure I’m understanding what you’re trying to do. Can you share an image or similar showing the desired result?
-
David Cavins replied to the topic version 2.9.5 for bug fixes!? in the forum How-to & Troubleshooting 7 years ago
Hello, not sure about the timing of a 2.9.4 release. Also unaware of a bug with the number of friends not matching the indicator bubble. If you can verify that there is a bug, please open a trac ticket: https://buddypress.trac.wordpress.org/
Thanks!
-
David Cavins replied to the topic Noindex tag in the forum How-to & Troubleshooting 7 years ago
There’s a function to tell when you’re on a BP page
is_buddypress()
so this is a guess at how you could do it:add_action( 'wp_head', function() {
if ( is_buddypress() ) {
echo '<meta name="robots" content="noindex">';
}
}); -
David Cavins replied to the topic Can view profile on desktop, but not on mobile in the forum How-to & Troubleshooting 7 years 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 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 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 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 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 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%;
}
}
- Load More
@dcavins
Active 2 weeks, 1 day ago