BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24611

    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: 24611

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

  • Keymaster
    (BuddyDev Team)
    Posts: 24611
    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: 24611

    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: 24611

    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: 24611
    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.

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

    Hi George,
    The current MediaPress needs you to visit MediaPress->settings and click on “Save Changes” atleast once. Sorry for the confusion. Please try updating the settings and things will come back to normal.

  • Keymaster
    (BuddyDev Team)
    Posts: 24611

    Hi Richard,
    Welcome to BuddyDev forum.

    If you are only concerned about displaying then I can easily guide you. If you want to allow users to write posts for multiple post type then BuddyPress can not handle that. The limitation is due to the need of different UI for allowing creating posts and having separate forms for each of these.

    Please do let me know if you just need to display it.

  • Keymaster
    (BuddyDev Team)
    Posts: 24611

    Hi Micah,
    Most probably, I forgot to enable keyboard navigation. Will look into it today.

  • Keymaster
    (BuddyDev Team)
    Posts: 24611

    Hi Jan,
    Apologies for the delay.
    The changes are huge, specially for templates, so I was just trying to make sure that we won’t have to break them in future.

    I am currently working on a few fixes on activity optimization and I am hopeful to have this plugin released today.

    Please do know that MediaPress is my only priority and will remain so as we consider it the most important plugin on BuddyDev.

    We are working and will continue to work to make MediaPress the most loved Media plugin for BuddyPress & WordPress.

    When I push the release today, you will be surprised to see the things it allows us now 🙂