BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25068

    Wow, That was some fast reply 🙂
    Sure, we are going to have some good time today after the release 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25068

    Hi Jan,
    Just updating that a new update is coming in couple of hours now. That should fix all the bugs.

  • Keymaster
    (BuddyDev Team)
    Posts: 25068
    Brajesh Singh on in reply to: Ajax Registration with Social Login #660

    Thank you. It will need some css. Will check with social login today and provide you the css.

  • Keymaster
    (BuddyDev Team)
    Posts: 25068
    Brajesh Singh on in reply to: Can't seem to get it to work #659

    Hi george,
    Can you please point me to your site/activity page?

  • Keymaster
    (BuddyDev Team)
    Posts: 25068

    Hi Richard,

    Thank you

    1. You are right about that. The reason is I used ‘buddyblog_get_posttype()’ in the array. You can replace that by the custom post type and it won’t need you to select them in the settings.

    2. This requires a change in core file, Please open buddyblog-functions.php and on line 58

    change

    
    $count = $wpdb->get_var( $wpdb->prepare( "SELECT count('*') FROM {$wpdb->posts} WHERE post_author=%d AND post_type=%s AND (post_status='publish'||post_status='draft')", $user_id, buddyblog_get_posttype() ) );
    
    

    to

    
    $count = $wpdb->get_var( $wpdb->prepare( "SELECT count('*') FROM {$wpdb->posts} WHERE post_author=%d AND (post_status='publish'||post_status='draft')", $user_id ) );
    
    

    That will do it.

  • Keymaster
    (BuddyDev Team)
    Posts: 25068

    Hi George,
    The plugin should allow pagination. Is it not allowing that?

  • Keymaster
    (BuddyDev Team)
    Posts: 25068
    Brajesh Singh on in reply to: Loop Subnav Function #656

    Hi,
    Just trying to find some clarifications here.
    A Term can be used by more than one user, is that correct?

    Also, you only want to display the terms used by the user and not all the terms in that particular taxonomy?

  • Keymaster
    (BuddyDev Team)
    Posts: 25068

    Hi Deepak,
    I am sorry for the trouble. I will be pushing an update in 3-4 hours and that will fix it.

  • Keymaster
    (BuddyDev Team)
    Posts: 25068

    Hi Richard,
    Apologies for the delayed reply.

    No change in the plugin core file is required.
    Please copy buddyblog/templates/buddyblog to your theme/buddyblog
    Those are template files. Then,open posts.php and change this line

    
        $query_args = array(
    		'author'        => bp_displayed_user_id(),
    		'post_type'     => buddyblog_get_posttype(),
    		'post_status'   => $status,
    		'paged'         => intval( $paged )
        );
    

    to

    
    
        $query_args = array(
    		'author'        => bp_displayed_user_id(),
    		'post_type'     => array( 'post', buddyblog_get_posttype(), 'other-post-type'),//all post types
    		'post_status'   => $status,
    		'paged'         => intval( $paged )
        );
    

    That will make it list everything. Same goes for buddyblog/single.php

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25068
    Brajesh Singh on in reply to: Inviting Ideas for the best ever WordPress Gallery Plugin #646

    Hi George,
    Thank you. Those are some great ideas and most of theme I have covered in upcoming release.