BuddyDev

Search

Using Circles as a subnav other than Friends and moving subnavs

  • Participant
    Level: Initiated
    Posts: 8
    Prangesco on #35342

    Hullo there,
    2 different questions here:

    1) I am using Circles and Profile tab creator Pro and I would like to display the circles page content as a subnav in another, custom main>subnav item.

    Is it possible to achieve this with Tab Creator Pro?
    I guess I would also need to edit the circles page(s) template as no navigation menu is print on such pages.

    Alternatively is there a way to retrieve a shortcode that cn print the circles page(s) so that I can use it with Tab creator pro?

    2) Any advice on how effectively move subnavs under a different main nav item (ideally singing your tab creator plugin)?
    Example> moving the Settings subnavs under > profile

    Thanks in advance

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #35350

    Hi Prangesco,
    Thank you for the questions.

    1. No. You can not use Profile Tabs Pro to move existing Tabs. You can use it to link from other pages or add new tab . in BuddyPress, the existing tabs are tied to the url and changing them is not feasible.

    The plugin does offer you to move it to “Friends” component. We can update and add a hook to let you move it into another tab.

    2. I am sorry, the Profile Tabs Pro can not move nav items. The reason is nav items view call back are attched to the url and can not be changed easily(unless the plugin that adds this tab allows it via some hook/filters).

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 8
    Prangesco on #35396
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 8
    Prangesco on #35493
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #35518
    This reply has been marked as private.
  • Participant
    Level: Initiated
    Posts: 8
    Prangesco on #35791
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #35798

    Hi,
    Thank you for the patience.
    The update needed some major changes. That’s why it took soem time.

    Please upgrade to 1.1.4 and you can put a code like this in your bp-custom.php

    
    
    /**
     * Example:- Settings 'Account/settings' component as circle parent
     */
    add_filter( 'bcircles_parent_component_slug', function ( $slug ) {
    	return 'settings';
    } );
    

    The above code sets the settings component as parent. You can use the slug from any component.
    There is a side effect. If the parent component is not friends, we do not add adminbar nav menu sub item for circles.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved