• Resolved chinatownlee

    (@chinatownlee)


    Hi,

    I bought the addon for Buddypress integration and was wondering whether the user could directly add adverts through his/her profile.

    The user already has an option to view and edit his/her current listings so the ability to also add advert directly from the user profile would be really convenient.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    you can try adding the code below in your theme functions.php file it should add the “Create Advert” link in the BP menu

    
    add_action( 'bp_setup_nav', 'my_bp_tabs', 200 );
    function my_bp_tabs() {
        $main_slug = adverts_config("bp.nav_slug_listings");		
        bp_core_new_subnav_item( array(
          'name'            => 'Create',
          'slug'            => 'create',
          'parent_url'      => trailingslashit( bp_displayed_user_domain() . $main_slug ),
          'parent_slug'     => $main_slug,
          'screen_function' => 'false',
          'position'        => 150,
          'link'            => 'https://example.com/adverts/add/'
        ));
    }
    

    Just replace the https://example.com/adverts/add/ with actual URL to page with [adverts_add] shortcode.

    The option to display Add Advert button and form in the user profile will be most likely added in next WPAdverts BP release.

    Thread Starter chinatownlee

    (@chinatownlee)

    Great, I’ll definitely be waiting for it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature request: BP integration addon’ is closed to new replies.