Skip to:
Content
Pages
Categories
Search
Top
Bottom

hidden groups on the main menu


  • ivanwancora
    Participant

    @ivanwancora

    HI

    We are developing a site with many hidden groups (around 20). When a hidden group is created nots visible in the loop of groups, and its only accessible by the url if you are in this group. So we need to know if exist any way to display the hidden group you are in the main menu of wordpress hiding the other groups and options of buddypress in the main navigation.

    We don’t know if that possible.

    Thanks a lot for your time. We appreciate you anwers.

Viewing 2 replies - 1 through 2 (of 2 total)

  • clickallco
    Participant

    @clickallco

    I’m unsure if I’m understanding your question correct, but otherwise you could play around with the group types to gather all the hidden groups in one place.

    It would be go something like this

    Insert this into your bp-custom.php

    function bp_custom_group_types()
    	{
    	bp_groups_register_group_type('hidden', array(
    		'labels' => array(
    			'name' => 'Hidden',
    			'singular_name' => 'Hidden'
    		) ,
    
    		'has_directory' => 'hidden',
    		'show_in_create_screen' => true,
    		'show_in_list' => true,
    		'description' => 'Add the group to the hidden list',
    		'create_screen_checked' => true
    	));
    	}
    
    add_action('bp_groups_register_group_types', 'bp_custom_group_types');

    Marking the hidden groups “hidden” inside manage < settings under group types.

    Followed by entering the “hidden” directory found at https://yourwebsite.com/groups/type/hidden/

    Only admins or the members of these groups would be able to see them though.


    ivanwancora
    Participant

    @ivanwancora

    Thanks @clickallco but that’s not what we are trying.

    What we need is create in the main menu an option with the hidden group of every member and hide all the others the member not’s in them. Because the only way to access to this groups is thought this links. We don’t need private groups because we don’t want the users can request registration or see the other groups.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar