Home Forums WordPress Plugins BuddyPress link not appearing in Profiles tab

Viewing 4 reply threads
  • Author
    Posts
    • #17786
      Jamie Furlong
      Participant

      Hi Vinny,

      I’ve updated my API keys to my newly purchased plugins (Digest and BuddyPress) but I am not seeing the Digest options within the BuddyPress front end. Am I right in saying it should appear under the Profile tab? I have renamed mine from Profile to Change Photo but this shouldn’t make a difference as it’s still pulling the sub-menus correctly, just not the Digest sub-menu. Also it is showing my digest options summary under Forums/Subscriptions ok. The only code I have in bp-custom is this:

       * Reorder BuddyPress profile tabs/navigation.
       */
      function buddydev_reorder_buddypress_profile_tabs() {
      	$bp  = buddypress();
      	$nav = $bp->members->nav;
      
      	// it's a map of nav items for user profile to their position.
      	$nav_items = array(
      		'activity' => 10,
      		'friends' => 20,
      		'messages'  => 30,
      		'forums'   => 40,
      		'notifications'    => 50,
      		'profile' => 60,
      		'mp-membership'  => 70,
      		'settings'  => 80,
      	);
      
      	foreach ( $nav_items as $nav_item => $position ) {
      		$nav->edit_nav( array( 'position' => $position ), $nav_item );
      	}
      }
      add_action( 'bp_setup_nav', 'buddydev_reorder_buddypress_profile_tabs', 999 );
      
      /**
       * Change name of nav items
       */
      
      function bpcodex_rename_profile_tabs() {
        
      	  buddypress()->members->nav->edit_nav( array( 'name' => __( "What's New?", 'textdomain' ) ), 'activity' );
            buddypress()->members->nav->edit_nav( array( 'name' => __( 'Change Photo', 'textdomain' ) ), 'profile' );
      	buddypress()->members->nav->edit_nav( array( 'name' => __( 'Account Details', 'textdomain' ) ), 'mp-membership' );
      	buddypress()->members->nav->edit_nav( array( 'name' => __( 'General Settings', 'textdomain' ) ), 'settings' );
        
      }
      add_action( 'bp_actions', 'bpcodex_rename_profile_tabs' );
      
      /**
       * Remove submenus
       */
      
      function bpfr_remove_submenu_tabs() {
      global $bp;
      	bp_core_remove_subnav_item( 'settings', 'data' );
      
      }
      add_action( 'bp_ready', 'bpfr_remove_submenu_tabs', 15 );
      
      /**
       * Rename submenus
       */
      function custom_profile_menu_tabs(){
      global $bp;
      $bp->bp_options_nav['settings']['notifications']['name'] = 'Email Notifications';
      }
      add_action('bp_setup_nav', 'custom_profile_menu_tabs', 201);
    • #17816
      vinny
      Keymaster

      Hi Jamie,

      If I’m not mistaken, you’re using the BuddyPress Extended Profile, so you’ll have to add the settings via the extended profile as well.

      Cheers,
      Vinny

    • #17822
      Jamie Furlong
      Participant

      I am, but how do I do this? I can’t find any documentation on this plugin.

    • #17823
      vinny
      Keymaster

      Sorry about the lack of documentation. I’ll take care of that this week.

      First, enable Extended Profile Fields support:

      Admin > Settings > bbPNNS/BuddyPress Bridge > Use BuddyPress’ Extended Profiles to control Forum Digests settings in the front-end. > Save Changes.

      Then add the profile field via BuddyPress:

      Admin > Users > Profile Fields > Add New Field > Type > Special Fields / Forum Digest Options. Fill in the name and description and whatever other options you’d like, and click Save.

    • #17824
      Jamie Furlong
      Participant

      OK, gotcha. Sorted now, thanks.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.