BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall Add Wall Functions


Viewing 2 posts - 1 through 2 (of 2 total)
  • Question


    I would like to add tabs/functions to the friend view of the “wall” i.e. a standard tab on a friends wall has the tab photos which has photos they have posted. When the tab is pressed it activates http://site.com/members/member_name/photos/. I would like to add a new tab called newtab that would activate the function http://site.com/members/member_name/newtab, which would display information only for that member. To be clear I am just looking for the file or hooks not code. If you could direct me to the phot tab/coded function I can take it from there. This would be a large time saver. Thanks



    Hi @zartwork
    It will need to create screen functions and add bp_core_new_nav_item

    Like here you will need to define buddyboss_media_screen_photo_grid()

    bp_core_new_nav_item( array(
    				'name'					 => sprintf( __( 'Photos <span>%d</span>', 'buddyboss-media' ), $photos_cnt ),
    				'slug'					 => $this->slug,
    				'position'				 => 80,
    				'screen_function'		 => 'buddyboss_media_screen_photo_grid',
    				'default_subnav_slug'	 => 'my-gallery'
    			) );

    You can check the codes inside buddyboss-media/include/photo-class.php

    Varun Dubey

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘Add Wall Functions’ is closed to new replies.