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

Tagged: 

  • This topic has 1 reply, 2 contibutors, and was last updated 9 years ago by Anonymous.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #54971
    @zartwork

    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

    Answers

    #54988

    Anonymous
    @

    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

    Regards
    Varun Dubey

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