Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25295

    Hi Sujee,
    I will post back the shortcode in an hour or two when back to my dev system.

    I missed it earlier because I was not sure if you needed the code or not.

  • Keymaster
    (BuddyDev Team)
    Posts: 25295
  • Keymaster
    (BuddyDev Team)
    Posts: 25295
    Brajesh Singh on in reply to: BuddyPress Moderation – Report Users/Groups #14651

    Hi Julia,
    That should not be an issue of concern as it works with Ids and not the usernames. Changing username will not make any difference.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295

    Hi Axl,
    Are you using a custom theme? If yes, Please try disabling it and using twentyseventeen and see if the issue is resolved.

    Also, the issue comes from BuddyPress dependent codebase, so try renaming bp-custom.php(if preset in wp-content/plugins directory) and disbaling all BuddyPress related plugins one by one to check it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295

    HI Dime,

    1. For Icon, Please contact your theme authors. Icons are provided/set by the theme authors and they will assist you.

    2. Please copy plugins/buddyblog/template/buddyblog/edit.php to yourtheme/buddyblog/edit.php and add this line

    
    
    <?php if( ! current_user_can( buddyblog_get_option( 'post_cap' ) ) :?>
    message... here..
    
    <?php endif;?>
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295
    Brajesh Singh on in reply to: Location of buddypress main nav – sub nav #14648

    Hi Julia,
    I am not sure which main nav you are referring to? Is it about the User profile main nav? Do you need to know the php file?

  • Keymaster
    (BuddyDev Team)
    Posts: 25295
    Brajesh Singh on in reply to: [Resolved] Required profile feild not working #14645

    Marking it as resolved due to lack of replies for last 1.5 years.

  • Keymaster
    (BuddyDev Team)
    Posts: 25295

    Hi Brendan,
    When registering the form you can register the callback to be called after post is saved

    
    
    'update_callback'       => 'buddydev_form_saved_callback',
    
    

    Now, In the callback, you can redirect as you please.
    Here is how the function should look like

    
    
    /**
     * This gets called when a post is saved/updated in the database
     * after create/edit action handled by BP simple front end post plugin
     *
     * @param int                      $post_id post id.
     * @param boolean                  $is_new is new post.
     * @param BPSimpleBlogPostEditForm $form_object form.
     */
    function buddydev_form_saved_callback( $post_id, $is_new, $form_object ) {
    // do a redirect here.
    }
    
    

    You get the post id, whether is was a new post or an edit post and the form object.

    I hope you can take from there.

    Best Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295

    Hi Sujee,
    are you using a normal post for this? or do you want to use a custom post type? I will be happy to share the complete code for achieving it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25295

    Hi Sujee,
    You are correct in your assumptions.

    About 3rd:- yes, you are right about that. We can use WP_Query to fetch for the first time and cache the post id in transient for later use. That way, It can be flexible as well as efficient.

    Since we are setting the user at author of the post, we can fetch it based on the post type + author combination.

    Best Regards
    Brajesh