Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 289 total)

  • David Cavins
    Keymaster

    @dcavins

    Also, if you’re trying to link to the user’s own profile, don’t forget about the utility url:

    http://mysite.com/members/me.

    If the user isn’t logged in, it’ll pass them through the registration form to get there.


    David Cavins
    Keymaster

    @dcavins

    Try: add_action( 'groups_cover_image_uploaded' )
    See the action here:
    https://buddypress.trac.wordpress.org/browser/tags/2.9.4/src/bp-core/bp-core-attachments.php#L1362

    In BP 3.0, this action is going to get more useful parameters:
    https://buddypress.trac.wordpress.org/browser/trunk/src/bp-core/bp-core-attachments.php#L1404


    David Cavins
    Keymaster

    @dcavins

    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
    Keymaster

    @dcavins

    If you uncheck “allow group creation for all users” only site admins will be able to make groups.


    David Cavins
    Keymaster

    @dcavins

    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 (and your admin still can) you’ve nailed it!

    Good luck!


    David Cavins
    Keymaster

    @dcavins

    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 ability to create groups.

    No, there is not currently a way to make a group “pending” though that’s will be possible as a result of something I’m working on.

    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!

    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.

    You might also approach this with member types: https://codex.buddypress.org/developer/member-types/

    #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.

    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 ) {
    	$can_create = false;
    	if ( current_user_can( 'known_capability' ) ) {
    		$can_create = true;
    	}
    	return $can_create;
    } );

    If you want to wrestle with the confusion of roles, this might work:

    add_filter( 'bp_user_can_create_groups', function( $can_create ) {
    	$can_create = false;
    	$user = wp_get_current_user();
    	if ( in_array( 'administrator', (array) $user->roles ) || in_array( 'my_custom_role_name', (array) $user->roles ) ) {
    	    $can_create = true;
    	}
    	return $can_create;
    } );

    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 shouldn’t be surprised that the result is blurry–they can see the result before accepting the crop. 🙂

    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.

    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.

    Good job solving your issue. 🙂

    Please share how you solved the issue, so that other forum users can learn from your experience.

    Thanks!

    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

    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 by bp_has_groups() which is template loop like the WordPress posts loop. You could add a template to your child theme, like page-group-list.php and copy that groups loop into it and start tinkering. you can read more about the parameters you can pass into bp_has_groups() here: https://buddypress.trac.wordpress.org/browser/branches/2.9/src/bp-groups/bp-groups-template.php#L290

    I do want to make sure that you know there’s a group directory built by default, right?

    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.

    I’m not sure I’m understanding what you’re trying to do. Can you share an image or similar showing the desired result?

    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!

    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">';
      }
    });

    Try using a more vanilla theme to test this out, like twentyseventeen. I suspect the problem is the theme you’re using.

    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. Here’s some more info: https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/

    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 on moment.js for localization (localization usually means translation, but could also mean “custom messages”). I think you could change the “relative time thresholds” as described here:
    http://momentjs.com/docs/#/customization/relative-time-threshold/

Viewing 25 replies - 1 through 25 (of 289 total)
Skip to toolbar