BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: BuddyBlog new post link to main menu #2170

    Hi Toan,
    Please put this code in your bp-custom.php or functions.php of your theme and let me know if it works.

    
    
    add_filter( 'wp_nav_menu_items', 'buddyblog_custom_newpost_link' );
    function buddyblog_custom_newpost_link($menu) { 
    	
    	if ( ! is_user_logged_in() ) {
    		return $menu;
    	}
    
    	if( function_exists( 'buddyblog_get_home_url' ) ) {
    		
    		$new_post_url  = buddyblog_get_home_url( get_current_user_id() ) . 'edit' ;
    		$menu = $menu . '<li><a href="' . $new_post_url . '">' . __('Create Post') . '</a></li>';
    	}
    	
    	return $menu;
    }
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: [Resolved] Ajax Buddy press registration. #2156

    Hi David,
    Merry Christmas.
    I am sorry I missed it in the ongoing festive atmosphere.

    Please allow me till Sunday to put the code.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: [Resolved] Testimonials one time only #2154

    Thank you Jan.
    Glad it worked.
    Merry Christmas and happy holiday 🙂

    Cheers
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: [Resolved] Auto Welcome PM #2153

    Hi Joshua,
    Thank you for asking.

    Do you want me to put the code or a plugin? It is very easy to achieve.

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: Happy Holidays! #2152

    Hi Joshua,
    Thank you. Wish you and all members here a a pleasant Christmas and happy holiday.

    Cheers 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: [Resolved] How to Create a Custom Page for Groups? #2146

    Hi Hans,
    Thank you. Glad it is working.
    I will leave the topic open for another 2 weeks in case @Chelle needs any help on this.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: MediaPress and WP Job Manager Upload Conflict #2144

    Hi Israel,
    Thank you for the effort to debug.

    Please PM Me here or mail me at brajesh@buddydev.com

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25058

    Hi Joshua,
    No problem. Glad It helped 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25058

    Hi Joshua,
    Do you need this in the context of bp-default-email notification plugin? If yes, There is an option in the admin settings page for this. Please correct me if I am mistaken.

  • Keymaster
    (BuddyDev Team)
    Posts: 25058
    Brajesh Singh on in reply to: [Resolved] Testimonials one time only #2136

    Hi Jan,
    I am sorry for the delayed reply.

    Please create a file in wp-content/plugins directory(If the file does not exist) and name it bp-custom.php. This file is loaded by BuddyPress before anything.

    Please give it a try then and let me know how it goes.

    Thank you
    Brajesh