Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 14,326 through 14,350 (of 94,562 total)
  • Author
    Search Results
  • r-a-y
    Keymaster

    Try disabling all BuddyPress plugins and try duplicating the problem again.

    My guess is the problem is with the BuddyPress Wall plugin. Deactivate that and see if your problem pops up again.

    Do you have any specific steps to duplicate your problem? Does the problem occur after replying under a certain comment depth or when you hit a certain number of comments in the group update?

    r-a-y
    Keymaster

    @tutorbe – Thanks for mentioning that you are testing on HHVM.

    I personally haven’t tested HHVM with BP 2.6.1.1 yet.

    Can you turn WP_DEBUG on in wp-config.php and note down any debug notices that are showing up with BP 2.6.1.1?

    What happens if you disable class autoloading manually by commenting out these lines?
    https://buddypress.trac.wordpress.org/browser/tags/2.6.1.1/src/bp-loader.php?marks=469-470#L467

    Let me know if that works or not.

    danbp
    Participant

    Hi,

    apparently there is a conflict somewhere. Do you receive php notice or warnings with wp_debug activated ? The fn you mention posts new Activity comments received via a POST request.

    Before opening a ticket, can you provide some more details about your install please ? Server type, php version and memory_limit.

    Theme
    Is Valenti theme updated to fit with BuddyPress 2.6 ? No information about this detail on the theme presentation even if recent update (23/6/2016). But it’s crucial to know, as many things changed in 2.6+

    Plugins
    Hashbuddy wasn’t updated since 2 years.
    Do you use WDS-BuddyPress-Project-Framework ?

    Debug
    To test, you can deactivate all plugins except BP. It’s important you ensure that at least the basic install of WP+BP is fully working. First with a twenty theme and second, with your theme (not the child).

    If the site is for a client, you’re a pro. Hopefully you have a sandbox install (locally or online) to do this debug work ?!!!

    Any thoughts @djpaul, @r-a-y ?

    Jeremy Pry
    Participant

    Under certain circumstances, there is an infinite loop inside the bp_legacy_theme_new_activity_comment() function. Specifically, when all of the secondary_item_id fields are zero, the $parent_id will continually be set to zero. An infinite loop ensues and eventually the script will time out. This causes new activity items to not display until the page is refreshed, as mentioned here: https://buddypress.org/support/topic/activity-comments-post-blank-until-refresh/.

    This error happens when attempting to add a comment to a group post. I believe this is a similar problem as the one expressed here: https://buddypress.org/support/topic/activity-comments-post-blank-until-refresh/

    For information:

    • WordPress 4.5.3
    • BuddyPress 2.6.1.1
    • Single site install in web root
    • There are indeed other plugins activated on this site. The full list is below. This site is for a client, and I’m unsure of which plugins can be safely deactivated to test.
    • We’re using a customized theme, but I have tested with the TwentySixteen theme and found the same results.
    • The core BuddyPress files have not been modified to my knowledge.
    • The site is hosted on Page.ly, but I can reproduce the problems in a local VVV install
    • The live site is http://www.lifeofdad.com/

    I believe that this may be a problem inside BuddyPress itself, as the function with the infinite loop is part of BuddyPress. The Javascript that makes the Ajax request is part of the BuddyPress Wall plugin, but from what I can tell the problem is in the aforementioned bp_legacy_theme_new_activity_comment() function.

    My specific concern is this loop:

    
    	// Load the new activity item into the $activities_template global.
    	bp_has_activities( 'display_comments=stream&hide_spam=false&show_hidden=true&include=' . $comment_id );
    
    	// Swap the current comment with the activity item we just loaded.
    	if ( isset( $activities_template->activities[0] ) ) {
    		$activities_template->activity = new stdClass();
    		$activities_template->activity->id              = $activities_template->activities[0]->item_id;
    		$activities_template->activity->current_comment = $activities_template->activities[0];
    
    		// Because the whole tree has not been loaded, we manually
    		// determine depth.
    		$depth = 1;
    		$parent_id = (int) $activities_template->activities[0]->secondary_item_id;
    		while ( $parent_id !== (int) $activities_template->activities[0]->item_id ) {
    			$depth++;
    			$p_obj = new BP_Activity_Activity( $parent_id );
    			$parent_id = (int) $p_obj->secondary_item_id;
    		}
    		$activities_template->activity->current_comment->depth = $depth;
    	}
    

    I’ve run XDebug locally to inspect the items in the loop as it is running. If some of the raw variable data is required, I can provide that.

    I have tried making some changes to the code in this loop to prevent the infinite loop from occurring. While successful in that endeavor with a few tweaks, the result is that the comment sent back through the Ajax response is the wrong comment, and a page refresh is still needed.

    I considered filing a bug in Trac, but I wasn’t certain whether something else could possibly be interfering.

    
    +--------------------------------------+--------+-----------+---------+
    | name                                 | status | update    | version |
    +--------------------------------------+--------+-----------+---------+
    | akismet                              | active | none      | 3.1.11  |
    | all-in-one-seo-pack                  | active | available | 2.3.7   |
    | appbuddy                             | active | available | 2.0.7   |
    | appcamera                            | active | available | 2.0.0   |
    | appfbconnect                         | active | none      | 2.3.0   |
    | apppresser                           | active | none      | 2.5.0   |
    | apppush                              | active | available | 2.1.0   |
    | appshare                             | active | none      | 2.1.0   |
    | appswiper                            | active | available | 2.2.1   |
    | bp-profile-search                    | active | none      | 4.5.2   |
    | buddypress                           | active | none      | 2.6.1.1 |
    | buddypress-activity-plus             | active | none      | 1.6.4   |
    | bp-moderation                        | active | none      | 0.1.7   |
    | buddypress-nocaptcha-register-box    | active | none      | 1.1.3   |
    | buddypress-toolbar                   | active | none      | 1.6.0   |
    | buddypress-wall                      | active | none      | 0.9.4   |
    | buddypress-xprofile-image-field      | active | none      | 2.0.1   |
    | category-posts                       | active | none      | 4.6.1   |
    | contact-form-7                       | active | none      | 4.4.2   |
    | contact-form-7-to-database-extension | active | none      | 2.10.20 |
    | cubell-themes-functionality          | active | none      | 3.1     |
    | envato-wordpress-toolkit             | active | none      | 1.7.3   |
    | hashbuddy                            | active | none      | 1.5.2   |
    | login-with-ajax                      | active | none      | 3.1.6   |
    | mailchimp-for-wp                     | active | none      | 3.1.11  |
    | nav-menu-roles                       | active | none      | 1.8.2   |
    | nextend-facebook-connect             | active | none      | 1.5.9   |
    | buddypress-media                     | active | none      | 4.0.4   |
    | vine-embed                           | active | none      | 0.2     |
    | wds-lod-automatic-friends            | active | none      | 0.1.0   |
    | wds-lod-base                         | active | none      | 0.1.0   |
    | wds-lod-bp                           | active | none      | 0.1.0   |
    | wds-lod-post-types                   | active | none      | 0.1.0   |
    | wds-lod-widgets                      | active | none      | 0.1.0   |
    | wordpress-importer                   | active | none      | 0.6.1   |
    +--------------------------------------+--------+-----------+---------+
    
    #256590
    tonywillis
    Participant

    So is this is definite “Object cache doesn’t work inside W3 Total Cache” because it breaks password resets? This seems to be my experience.. I’ve whitelisted registration, membership (Paid Memberships Pro) and activation pages in the page cache but seem to have issues with password reset and account activation since using activating xcache Object Cache within W3.
    So my questions are:
    1) is there a different object cache plugin I could use alongside w3 (which is great for its page cache etc)?
    2) is this issue unique to xcache? Could I use APC instead?
    3) are there any other integrated cache solutions that work with Buddypress that include object cache? The benefits to my site speed have been huge since activating.. It’s just the account activation issue
    Thanks

    #256578
    coffeywebdev
    Participant

    also ‘bp_signup_validate’

     function bp_password_beefing() {
     global $bp;
    
     if ( !empty( $_POST['signup_password'] ) )
       if ( strlen( $_POST['signup_password'] ) < 6 )
        $bp->signup->errors['signup_password'] = __( 'Your password needs to be at least 6 characters', 'buddypress' );  
     }
     add_action( 'bp_signup_validate', 'bp_password_beefing');

    source:
    http://wordpress.stackexchange.com/questions/160475/how-to-increase-password-requirements-for-registration

    #256573
    coffeywebdev
    Participant

    Copy the buddypress theme into your WordPress child theme, and then you can modify the register template if needed.

    copy the buddypress theme into your child theme by pasting this path into your child theme folder
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress

    path of file for registration fields is this:
    /wp-content/themes/child-theme/buddypress/members/register.php

    Then, add First and Last name fields under User>Profile Links in the WordPress Dashboard.

    Currently there is a ‘Name’ field that is required, you can edit it to read ‘First Name’ then add another ‘Last Name’ field..

    Then you need to process the data before it saves into the database, I’m kind of at a loss here… I would need more time to brainstorm on it but I did find this hook ‘bp_core_signup_user’

    I believe this is the hook you are looking for:

    // define the bp_core_signup_user callback 
    function action_bp_core_signup_user( $array, $int, $int ) { 
        // make action magic happen here... 
    }; 
             
    // add the action 
    add_action( 'bp_core_signup_user', 'action_bp_core_signup_user', 10, 3 ); 
    #256569
    danbp
    Participant
    #256567
    JetZ
    Participant

    I’m new to all this so please bear with me.

    I’m helping to build a social networking site with BuddyPress. One of the requirements is that it has to have a “login with Facebook” option (to the new social network, not WP). I have already done this with the JS SDK. My problem is that this gives me a generic button on my website’s footer. I don’t want it there and I can’t seem to figure out how to move it. There was already a placeholder button added with WordPress tools. I would like to either: move the new login button to where the old one is and customize it, or, transfer the functionality of the new button to the old one. As an added note, when I open the editor to move things around, the button doesn’t show up as a customizable item. I’m using the X Child theme, if that has any importance.

    Thank you so much in advance.

    I’m using WordPress version 4.5.3, BuddyPress version 2.5.3. I can’t provide a link to the site because it’s not live yet.

    #256562
    shanebp
    Moderator

    Assuming there are no errors on your site….
    afaik, the auto-complete only handles friends by default. So if you aren’t friends with ‘Jenn’, you won’t see a suggestion.

    To turn on auto-complete for all users, put this in bp-custom.php :
    define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true );

    gorbett
    Participant

    I have read a bunch of posts on registration (this one being closest to what I was looking for: https://buddypress.org/support/topic/modifying-customising-the-registration-process/) but have not found a good way to add $_POST data to the registration before BuddyPress starts processing it. I need a filter hook, but can’t find it.

    Essentially I want to combine two fields the user fills out, run a function to return a combined value, and pass that as $_POST data to BuddyPress.

    EXAMPLE: User fills out ‘First Name’ and ‘Last Name”. I want to combine those fields to create the Username after running a value from a function that will combine first and last name, check if the username_exists(), and possibly append a number to the end of it.

    #256554
    Earl_D
    Participant

    Currently running BP 2.6.1.1 WP 4.53 using twenty twelve child theme. I have incorporated many plugins to get the features desired for my private social network. The more I late about BP and how flexible it really it the more I have been working to apply the best practices regarding plugin use to the development of the site. Leading me to the questions -what features of BP are best extended or custoomized using plugins and what features are best extended customized using code snippets in the available tools for customization bp-custom and functions files?

    Thanks in advance to the incredible people who share their expertise and experiments here for to the benefit of the rest of us. Something I hope to do and my skills in this area develops.

    #256551
    venturavan2
    Participant

    I just installed WP Engine PHP Compatibility Checker plugin on one of my A2 hosting sites which is running PHP 7.08. 78 errors and 11 warnings from the Buddypress 2.6.11

    Who do I send the Checker log file to (if anyone)?

    jen000
    Participant

    Hi I am new to Buddypress but I’ve been building websites for 10 yrs. I need to build a site which will have a listings part (companies will list offers) and a social part (Buddypress) where users can register for free. The client wants the users to be logged in before they can see the listings part. I was thinking of using Astoundify’s Listify for the listings element but I’ve seen numerous posts here and over on their support suggesting that it doesn’t work well with Buddypress. I’ve never built a site like this so am I approaching this challenge the right way? Can anyone offer me any suggestions please?

    nickrobinson352
    Participant

    Here is the function where I create a dynamic Menu . This function is called from a ‘wp_nav_menu_items’ filter function. The below function creates a dynamic menu based on the buddypress groups the user is entitled to. The idea is to provide navigation to the groups directly via a Menu.

    function get_entitled_groups_menu_html()
    {
        $dataset  = getDS_entitled_groups();
        $html = "";
        foreach($dataset as $row)
        {
            $url = site_url()."/groups/".$row->slug;
            $html .= '<ul id="menu-item-381" align="right" class="bp-menu bp-groups-nav current_page_item current-menu-item menu-item menu-item-type-bp_nav menu-item-object-bp_loggedin_nav menu-item-381">';
            $html .= '<a href="'.$url.'">'.$row->name.'</a></ul>';
        }
        return $html;
    }

    The menu renders properly, however when clicked I get the warning. I know I can suppress the warning by turning WP_DEBUG off, but the fact that it does not throw an warning, when I navigate to the group page via going to groups page and then selecting the individual group, but only does when I navigate via this function makes me think there must be a better way.

    #256539
    socialc
    Participant

    I’m trying to get the group cover image src value and output inside <img src=""> but can’t seem to make it happen.

    I’ve tried this but no canolies.

    Any help appreciated

    #256536
    socialc
    Participant

    @henrywright Tidy, I’ve been away from BuddyPress for a while but this is achieable. Thanks.

    #256534
    danbp
    Participant
    #256531
    jamesduffell
    Participant

    I’m trying to get WordPress to use the BuddyPress email template when users reset their passwords, any pointers on how best to achieve this?

    Thanks,
    ^JD

    #256523
    Henry Wright
    Moderator

    Hi @socialc

    The Template Hierarchy will let you override create.php. In your own version of that file you could use custom_show_blog_signup_form() in place of bp_show_blog_signup_form(). I’d copy everything from bp_show_blog_signup_form() to your custom function and edit what you need to.

    #256518
    danbp
    Participant

    In addition, and relative to this point:
    Often people don’t have a profile picture on their harddrive/desktop

    you can use BP Avatar Suggestion

    If profile informations are important for your project, you can also use my BuddyPress Progress Bar plugin, which helps any site administrator to kindly remember his community members to complete their profile in a clear, significant and non-obstrusive way.

    #256516
    danbp
    Participant

    Hi,

    it’s not the solution but an example you can perhaps use.
    The snippet handles the object members and sort them by type “contributing”
    Replace object by activity and type by “beer” and see what you can do from that.

    // add order options to members loop
    function ch_member_order_options() {
    ?>
       <option value="contributing"><?php _e( 'Contributing Members', 'buddypress' ); ?></option>
    <?php
    }
    add_action( 'bp_members_directory_order_options', 'ch_member_order_options' );
    
    // filter ajax members by contributing
    function ch_filter_ajax_querystring( $querystring = '', $object = '' ) {
    
    	if( $object != 'members' )
    		return $querystring;
    
    	$defaults = array(
    		'type'            => 'active',
    		'action'          => 'active',
    		'scope'           => 'all',
    		'page'            => 1,
    		'user_id'         => 0,
    		'search_terms'    => '',
    		'exclude'         => false,
    	);
    
    	$ch_querystring = wp_parse_args( $querystring, $defaults );
    
    	if( $ch_querystring['type'] == 'contributing' ) {
    	
           // grab members by Member Type role declared on xprofile	
    	$users = get_users( array( 'fields' => array( 'ID' ), 'role' => 'contributor' ) );
    		
    		$users_str = '';
    		foreach ( $users as $user ) {
    				 $users_str .=  $user->ID . ',';
    			}
    		$users_str = rtrim($users_str, ",");
    
    		$ch_querystring['include'] = $users_str; 
    		$ch_querystring['type'] = 'alphabetical'; 
    		
    		return $ch_querystring;
    		
    	}	
    	
    	else
    		return $querystring;
    			
    }
    add_filter( 'bp_ajax_querystring', 'ch_filter_ajax_querystring', 20, 2 );

    https://buddypress.org/support/topic/adding-new-order-by-on-members-loop/

    Members Loop

    Member Types

    #256513
    Ben Riga
    Participant

    I am struggling with this one so any nudge in the right direction (however small) would be great.

    I have tried going at it from the other direction but that seems like it will duplicate a lot of BuddyPress code and so doesn’t feel right. By this I mean, if I can’t query the BuddyPress activities based on the meta from the cpt the activities come from, I figured I could try querying the original CPT and filtering on the meta (easily done) and then outputting those as if they are activities. I’ve gotten quite far down that path by duplicating a lot of the code from activity\entry.php. But I’m missing a lot still calculating the date, adding comments, favoriting/reactions etc etc. It doesn’t feel right though and I’m sure I’ll miss things so that the two will never be the same and I’ll be stuck maintaining something that I prob should never have written.

    One thought I had was that it might be possible to pull the cpt and find the associated activity id (like secondary_item_id in activity but in the other direction). I have not found a link between the two in that direction.

    Then I thought, well if that link from cpt-to-activity is not available by default maybe I could grab it at the time of the initial creation of the activity and save it. Is that possible?

    Apologies if this is starting to sound like a stream of consciousness. I’m complete lost right now.

    Thanks for any help and support.

    Regards,
    Ben

    r-a-y
    Keymaster

    I cannot duplicate this on my local nginx test site.

    Are you testing with no plugins? If not, disable all BuddyPress plugins and code snippets and try again.

    Also try looking at your nginx.conf file and see if it needs to be tweaked.

    r-a-y
    Keymaster

    You have some other BuddyPress plugins that is causing this notice.

    For now, I would recommend turning off WP_DEBUG mode on your production site.

Viewing 25 results - 14,326 through 14,350 (of 94,562 total)
Skip to toolbar