Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 102 total)
  • Profile photo of David Cavins
    David Cavins
    Moderator

    @dcavins

    Hi Kineta-

    Your best bet is to start a new topic for support with your issue. In that topic, it would be helpful to know which version of bbPress you’re using, what version of BuddyPress you upgraded from (to 2.6.2) as well as the usual stuff.

    Thanks!

    -David

    Profile photo of David Cavins
    David Cavins
    Moderator

    @dcavins

    Visit a forum, like https://buddypress.org/support/forum/how-to/ and scroll to the bottom of the topic list. The new topic form should be down there.

    Profile photo of David Cavins
    David Cavins
    Moderator

    @dcavins

    wadece1979- You should start a new topic for your support request. In that topic, describe your WP setup (single site, multisite) and whether the problem persists if you use a different theme. Thanks!

    Profile photo of David Cavins
    David Cavins
    Moderator

    @dcavins

    That’s the default behavior. If you’re not getting a list of matches, open your browser console to see what’s going wrong with the AJAX request that fetches the list of matches.

    Note that if you type the @ symbol, you won’t find matches, so just start typing the username or display name.

    Hi there-

    Yes, 2.6.1 (and 2.6.1.1) have a conflict with BP Group Hierarchy. The problem is caused by the addition of the autoloader check in bp-loader.php because BPGH instantiates its class before BP knows if the groups component is active or not. The short term fix is, unhappily, to change bp-loader.php. Comment out the line that reads return (add a // before return) here:
    https://github.com/buddypress/BuddyPress/blob/master/src/bp-loader.php#L621

    @logicsystems & @houser: If you have any idea of what might be behind those errors, please let us know.

    @hamzacoding: Thanks for your report. I’ll look into it.

    To add your own create group button output function, unhook the current ones:

    remove_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav', 999 );
    remove_action( 'bp_groups_directory_group_filter', 'bp_group_backcompat_create_nav_item', 1000 );

    and add your own to bp-custom.php:

    add_action( 'bp_groups_directory_group_filter', 'my_dolla_bill_group_create_button', 82 );
    function my_dolla_bill_group_create_button() {
    	if ( dolla_bill_has_dollas ) { 
                 bp_group_create_nav_item();
            }
    }

    Your other issues can probably be solved in the similar way. Read up on hooks and actions in WP: http://blog.teamtreehouse.com/hooks-wordpress-actions-filters-examples

    Menus aren’t very php-friendly, usually, but you could do something like this:

    
    <?php
    if ( groups_is_user_member( bp_loggedin_user_id(), $group_id_of_group_A ) ) {
    	$group = groups_get_group( array( 'group_id' => $group_id_of_group_A ) );
    	?>
    	<li><a href="<?php echo bp_get_group_permalink( $group ) . 'forum/'; ?>"><?php bp_group_name( $group ) ?> Forum</a></li>
    	<?php
    }
    

    You may have to hook onto wp_nav_menu_items or similar to inject the link. It depends on your theme. That would look like:

    add_filter( 'wp_nav_menu_items', 'my_inject_group_forum_link_into_menu' );
    my_inject_group_forum_link_into_menu( $items ) {
    	if ( groups_is_user_member( bp_loggedin_user_id(), $group_id_of_group_A ) ) {
    		$group = groups_get_group( array( 'group_id' => $group_id_of_group_A ) );
    		$items .= '<li><a href="' . bp_get_group_permalink( $group ) . 'forum/">' . bp_get_group_name( $group ) . 'Forum</a></li>';
    		<?php
    	}
    	return $items;
    }

    I’m not sure what behavior you’re aiming for, but this snippet will disable the confirmation email and log the user in automatically upon successful registration.

    <?php 
    add_action( 'bp_core_signup_user', array( $this, 'disable_validation_of_new_users' ) );
    add_filter( 'bp_registration_needs_activation', '__return_false' );
    add_filter( 'bp_core_signup_send_activation_key', '__return_false' );
    
    function disable_validation_of_new_users( $user_id ) {
    
    	// Get the user's activation key for BP. This is the activation_key in user_meta, not the key in the user table.
    	$user_key = get_user_meta( $user_id, 'activation_key', TRUE );
    
    	// Activate the signup
    	$awuser = apply_filters( 'bp_core_activate_account', bp_core_activate_signup( $user_key ) );
    
    	// Automatically log the user in.
    	// Thanks to Justin Klein's  wp-fb-autoconnect plugin for the basic code to login automatically
    	$user_info = get_userdata($user_id);
    	wp_set_auth_cookie($user_id);
    
    	do_action( 'wp_signon', $user_info->user_login );
    
    	bp_core_add_message( __( 'Your account is now active!', 'my-plugin-slug' ) );
    
    	buddypress()->activation_complete = true;
    }

    @earl_d: No. The above snippets are added to a custom version of the buddypress/members/single/messages/compose.php file. Basically, if you add this file to your theme (following the structure buddypress/members/single/messages/), it will be used in preference to the one BuddyPress ships with. Read more about adding custom template parts: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    Hi Ben,

    You are correct that it’s best to leave the bp stylesheet in place so that you get updates to that file. You can add a custom stylesheet, though, and increase the selector power of the rule, so that it overrides the bp.css rule, like .site #buddypress #item-body { border-left: none; }

    Here’s the basic concept.
    https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity

    Adding a stylesheet:

    Including CSS & JavaScript

    Hi pckelly123: WP Better Emails works well for applying a template to all mail sent via the function wp_mail(), which is what the group email subscription plugin uses.
    https://wordpress.org/plugins/wp-better-emails/

    Correct. My answer only disables rich text for specific fields; the other answer disables rich text for all fields. Pick your poison. 🙂

    I suspect that BP is trying to use the new cover-header-specific member and group header template files. You can disable them until you have a chance to retheme for cover headers by visiting wp-admin > Settings > BuddyPress > Settings and unchecking the check boxes for group and user cover images:
    Allow registered members to upload cover images
    Allow customizable cover images for groups

    Hi Johnywhy-

    You can disable the rich text editor on a per-field basis using the filter bp_xprofile_is_richtext_enabled_for_field which was added when the wp_editor was added.

    You might do

    
    add_filter( 'bp_xprofile_is_richtext_enabled_for_field', 'my_disable_rt_function', 10, 2 );
    function my_disable_rt_function( $enabled, $field_id ) {
      // 14 is the id of the field I want to be plain text.
      if ( 14 == $field_id ) {
        $enabled = false;
      }
      return $enabled;
    }
    

    This plugin automatically activates new user accounts: https://wordpress.org/plugins/bp-disable-activation-reloaded/

    I sure hope that you’re weeding out spammers on the way in, or this site isn’t open to the world.

    It sounds like you need to update your permalink structure: https://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure

    You could add a page-load listener and look for the action using bp_is_current_action(). To learn more about what action or action_variables are set as you browse your site, I recommend adding r-a-y’s BP Footer Debug plugin: https://gist.github.com/r-a-y/5736878

    Page loads are often caught on the action bp_actions.

    You’d have to do some more work to make sure that your filters can’t collide with group names.

    Your best best is to create a new language file, then you can customize nearly all of the strings:
    https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/

    Hi Zoe-

    My memory is that users need to have usermeta with the key last_activity and a value like 2015-06-16 13:29:04 to reliably appear in the members directory. You can “repair” this value once the users are imported by visiting (from wp-admin) Tools > BuddyPress then select Repair user "last activity" data. In fact, it probably wouldn’t hurt to run all of those repair tools one at a time since you’ve got a bunch of untracked users.

    Hi @pilha-

    That’s totally weird behavior. It seems like the table in your database has lost its mind. 🙂

    Can you check the structure of the table wp_bp_groups? What I want to know is:

    • Is id set as the primary key?
    • Is id set to auto-increment?

    Since you’ve already emptied records from the database, I suspect you’re familiar with some software for MySQL management like phpMyAdmin. Can you check the questions above?

    Hi Pihla-

    I can’t reproduce the problem you’re having. Can you add a tracer to your theme’s functions file or to bp-custom.php then try to create a group?

    https://gist.github.com/dcavins/a9197f21d7f31b6594bc

    I added this to my theme’s functions.php and the file that it created (groups_group_after_save_args.txt) ended up at the root of my site. It looked like this:

    
    newly created group args: BP_Groups_Group Object
    (
        [id] => 8
        [creator_id] => 4
        [name] => Number 5
        [slug] => number-5
        [description] => Will this be recorded?
        [status] => public
        [enable_forum] => 0
        [date_created] => 2015-06-15 14:59:00
        [admins] => 
        [mods] => 
        [total_member_count] => 
        [is_member] => 
        [is_invited] => 
        [is_pending] => 
        [last_activity] => 
        [user_has_access] => 
        [args] => Array
            (
                [populate_extras] => 
            )
    
    )
    

    Please let me know if you can do this test and what the results are.

    Is Settings > General > “Membership” section “Anyone can register” checked?

    I can verify this behavior and will take a look.

    Thanks for the report.

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