Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'hide admin in directory'

Viewing 25 results - 1 through 25 (of 99 total)
  • Author
    Search Results
  • #332963
    emaralive
    Participant

    Hi @jchretien, in lieu of trying to hide the Members directory; have you considered using Member Types as a way to filter which Members are listed within the Members directory (as in admin (list all) vs non-admin (only list Therapists)?

    #332872
    jchretien
    Participant

    It seems this directory stuff was depracated in the location you mentioned. Does this still exist? I need to hide this page too from anyone not admin. We use this in the medical space, so we WANT to show those that are assigned as Therapists, but we CANNOT show the people that sign up as a patient.

    fppmarketing
    Participant

    Hi

    I would like to hide the two columns in the members directory: role and activity as this is not interesting on our intranet.

    Here’s the link to a screenshot: https://tinyurl.com/22pahgnt so the column ‘Rol’ (=role)(Beheerder = Administrator) and ‘Activiteit’ (=Activity) should be hidden.

    How can I hide this? Can’t find it in the theme options of Woffice.

    Thank you!

    geepers
    Participant

    I expect this is likely a configuration issue with either our BuddyPress installation, a conflict from another plugin (though it works on staging version), or perhaps a lingering cacheing issue. But looking to find assistance resolving it and willing to consider hired help on this.

    No url to share, as it is a member’s only site (Intranet).

    
    ### wp-core ###
    
    version: 6.1.1
    site_language: en_CA
    user_language: en_CA
    timezone: America/Vancouver
    permalink: /%year%/%monthnum%/%day%/%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 0
    default_comment_status: open
    environment_type: production
    user_count: 431
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /home/susyah/public_html
    wordpress_size: 58.81 MB (61669230 bytes)
    uploads_path: /home/susyah/public_html/wp-content/uploads
    uploads_size: 62.25 MB (65272481 bytes)
    themes_path: /home/susyah/public_html/wp-content/themes
    themes_size: 23.15 MB (24279208 bytes)
    plugins_path: /home/susyah/public_html/wp-content/plugins
    plugins_size: 400.27 MB (419712905 bytes)
    database_size: 96.29 MB (100972517 bytes)
    total_size: 640.78 MB (671906341 bytes)
    
    ### wp-dropins (2) ###
    
    advanced-cache.php: true
    maintenance.php: true
    
    ### wp-active-theme ###
    
    name: Kleo Child (kleo-child)
    version: undefined
    author: SeventhQueen
    author_website: http://seventhqueen.com
    parent_theme: Kleo (kleo)
    theme_features: core-block-patterns, widgets-block-editor, editor-style, automatic-feed-links, post-formats, menus, post-thumbnails, html5, featured-content, title-tag, customize-selective-refresh-widgets, responsive-embeds, kleo-facebook-login, kleo-mega-menu, kleo-menu-items, bbpress, woocommerce, buddypress-use-nouveau, widgets
    theme_path: /home/susyah/public_html/wp-content/themes/kleo-child
    auto_update: Disabled
    
    ### wp-parent-theme ###
    
    name: Kleo (kleo)
    version: 5.1.2
    author: SeventhQueen
    author_website: https://themeforest.net/user/SeventhQueen
    theme_path: /home/susyah/public_html/wp-content/themes/kleo
    auto_update: Disabled
    
    ### wp-themes-inactive (1) ###
    
    Twenty Twenty-Three: version: 1.0, author: the WordPress team, Auto-updates disabled
    
    ### wp-plugins-active (71) ###
    
    Admin Menu Editor Pro: version: 2.18.1, author: Janis Elsts, Auto-updates disabled
    AS Admin Customizer: version: 1.0, author: Andolasoft, Auto-updates disabled
    bbPress: version: 2.6.9, author: The bbPress Contributors, Auto-updates disabled
    bbp style pack: version: 5.4.1, author: Robin Wilson, Auto-updates disabled
    Better Notifications for WP: version: 1.9.2, author: Made with Fuel, Auto-updates disabled
    Big File Uploads: version: 2.1.1, author: Infinite Uploads, Auto-updates disabled
    BP Profile Search: version: 5.4.8, author: Andrea Tarantini, Auto-updates disabled
    Brozzme Multiple Admin Emails: version: 1.4, author: Benoti, Auto-updates disabled
    BuddyPress: version: 11.1.0, author: The BuddyPress Community, Auto-updates disabled
    BuddyPress Notifications Widget: version: 1.3.2, author: BuddyDev, Auto-updates disabled
    Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates disabled
    Display Posts: version: 3.0.2, author: Bill Erickson, Auto-updates disabled
    Document Library Pro: version: 1.9.4, author: Barn2 Plugins, Auto-updates disabled
    Duplicate Page: version: 4.5.1, author: mndpsingh287, Auto-updates disabled
    Envato Market: version: 2.0.8, author: Envato, Auto-updates disabled
    Essential Grid: version: 3.0.16, author: ThemePunch, Auto-updates disabled
    FileBird: version: 5.1.4, author: Ninja Team, Auto-updates disabled
    Force Login: version: 5.6.3, author: Kevin Vess, Auto-updates disabled
    GeoDirectory: version: 2.2.25, author: AyeCode - WordPress Business Directory Plugins, Auto-updates disabled
    Image Upload for BBPress: version: 1.1.18, author: Aspen Grove Studios, Auto-updates disabled
    Jetpack: version: 11.9.1, author: Automattic, Auto-updates disabled
    Jetpack Boost: version: 1.7.0, author: Automattic - Jetpack Site Speed team, Auto-updates disabled
    K Elements: version: 5.1.2, author: SeventhQueen, Auto-updates disabled
    K Fonts: version: 1.1.0, author: SeventhQueen, Auto-updates disabled
    Like Button Rating ♥ LikeBtn: version: 2.6.47, author: LikeBtn, Auto-updates disabled
    List Categories: version: 0.4, author: Fernando Briano, Auto-updates disabled
    MainWP Child: version: 4.4.0.1, author: MainWP, Auto-updates disabled
    Manage Notification E-mails: version: 1.8.4, author: Virgial Berveling, Auto-updates disabled
    Media Sync: version: 1.2.9, author: Erol Živina, Auto-updates disabled
    Meta Box: version: 5.6.17, author: MetaBox.io, Auto-updates disabled
    MonsterInsights - Dimensions Addon: version: 2.0.6, author: MonsterInsights Team, Auto-updates disabled
    MonsterInsights - Forms Tracking Addon: version: 2.2.6, author: MonsterInsights Team, Auto-updates disabled
    MonsterInsights - Media Addon: version: 1.0.7, author: MonsterInsights Team, Auto-updates disabled
    MonsterInsights - Page Insights Addon: version: 1.5.2, author: MonsterInsights Team, Auto-updates disabled
    MonsterInsights Pro: version: 8.13.1, author: MonsterInsights, Auto-updates disabled
    Ninja Forms: version: 3.6.20, author: Saturday Drive, Auto-updates disabled
    Page-list: version: 5.3, author: webvitaly, Auto-updates disabled
    Page scroll to id: version: 1.7.7, author: malihu, Auto-updates disabled
    Pages with category and tag: version: 0.9.0, author: YAHMAN, Auto-updates disabled
    Popup Maker: version: 1.18.1, author: Popup Maker, Auto-updates disabled
    Post Slider For Visual Composer: version: 1.1, author: Nasir, Auto-updates disabled
    PublishPress Permissions: version: 3.8.5, author: PublishPress, Auto-updates disabled
    Redirection: version: 5.3.9, author: John Godley, Auto-updates disabled
    rtMedia for WordPress, BuddyPress and bbPress: version: 4.6.13, author: rtCamp, Auto-updates disabled
    SearchWP: version: 4.2.9, author: SearchWP, Auto-updates disabled
    SearchWP bbPress Integration: version: 1.3.1, author: SearchWP, Auto-updates disabled
    SearchWP Custom Results Order: version: 1.3.6, author: SearchWP, Auto-updates disabled
    SearchWP Live Ajax Search: version: 1.7.4, author: SearchWP, LLC, Auto-updates disabled
    SearchWP Shortcodes: version: 1.8.3, author: SearchWP, Auto-updates disabled
    Shortcode in Menus: version: 3.5.1, author: Gagan Deep Singh, Auto-updates disabled
    Site Plugin for susyah.csfs.org: author: (undefined), version: (undefined), Auto-updates disabled
    Social Articles: version: 2.9.5, author: Broobe, Auto-updates disabled
    SQ Sidebar Generator: version: 1.2.2, author: SeventhQueen, Auto-updates disabled
    TablePress: version: 2.0.4, author: Tobias Bäthge, Auto-updates disabled
    The Events Calendar: version: 6.0.10, author: The Events Calendar, Auto-updates disabled
    The Events Calendar: Community Events: version: 4.10.5, author: The Events Calendar, Auto-updates disabled
    The Events Calendar: Filter Bar: version: 5.4.3, author: The Events Calendar, Auto-updates disabled
    The Events Calendar PRO: version: 6.0.9.2, author: The Events Calendar, Auto-updates disabled
    User Role Editor: version: 4.63.3, author: Vladimir Garagulya, Auto-updates disabled
    User Switching: version: 1.7.0, author: John Blackbourn & contributors, Auto-updates disabled
    UsersWP: version: 1.2.3.11, author: AyeCode Ltd, Auto-updates disabled
    Wbcom Designs - BuddyPress Member Export Import: version: 1.5.0, author: Wbcom Designs, Auto-updates disabled
    When Last Login: version: 1.2.2, author: Yoohoo Plugins, Auto-updates disabled
    WordPress Toolbar Editor: version: 1.4.2, author: Janis Elsts, Auto-updates disabled
    WP Add Mime Types: version: 3.0.3, author: Kimiya Kitani, Auto-updates disabled
    WPBakery Page Builder: version: 6.10.0, author: Michael M - WPBakery.com, Auto-updates disabled
    wpDataTables - Tables & Table Charts: version: 2.1.53, author: TMS-Plugins, Auto-updates disabled
    WP Easy Updates: version: 1.1.20, author: AyeCode Ltd, Auto-updates disabled
    WPForms Lite: version: 1.8.0.2, author: WPForms, Auto-updates disabled
    WP Rocket: version: 3.12.5.3, author: WP Media, Auto-updates disabled
    WP SMS: version: 6.1.1, author: VeronaLabs, Auto-updates disabled
    
    ### wp-plugins-inactive (1) ###
    
    Password Protected Categories: version: 2.1.8, author: Barn2 Plugins, Auto-updates disabled
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_GD
    imagick_module_version: Not available
    imagemagick_version: Not available
    imagick_version: Not available
    file_uploads: File uploads is turned off
    post_max_size: 128M
    upload_max_filesize: 128M
    max_effective_size: 128 MB
    max_file_uploads: 20
    gd_version: 2.3.3
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: 9.25
    
    ### wp-server ###
    
    server_architecture: Linux 3.10.0-962.3.2.lve1.5.42.el7.x86_64 x86_64
    httpd_software: Apache
    php_version: 7.4.33 64bit
    php_sapi: litespeed
    max_input_variables: 10000
    time_limit: 360
    memory_limit: 2048M
    max_input_time: 360
    upload_max_filesize: 128M
    php_post_max_size: 128M
    curl_version: 7.84.0 OpenSSL/1.1.1p
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 5.7.41
    client_version: mysqlnd 7.4.33
    max_allowed_packet: 268435456
    max_connections: 250
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/susyah/public_html/wp-content
    WP_PLUGIN_DIR: /home/susyah/public_html/wp-content/plugins
    WP_MEMORY_LIMIT: 1024M
    WP_MAX_MEMORY_LIMIT: 2048M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: true
    SCRIPT_DEBUG: true
    WP_CACHE: true
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    0: Writable
    
    ### jetpack ###
    
    site_id: 212215713
    ssl_cert: No
    time_diff: 2
    version_option: 11.9.1:1678828073
    old_version: 11.9:1678301680
    public: Public
    master_user: #1 ConceptDesign
    current_user: #1 ConceptDesign
    tokens_set: Blog User
    blog_token: P8&fk$QOWUjx^E0IRR3qiHSD*VPExwHg
    user_token: bvJ0#WWGEoaVgl@fq*KX$BqCk5YW7Si1
    version: 11.9.1
    jp_plugin_dir: /home/susyah/public_html/wp-content/plugins/jetpack/
    plan: free
    protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false}
    full_sync: {"started":"Tue, 08 Nov 2022 19:26:26 +0000","finished":"Tue, 08 Nov 2022 19:31:21 +0000","progress":{"comments":{"total":"5","sent":5,"finished":true,"last_sent":"3"},"constants":{"finished":true},"functions":{"finished":true},"options":{"finished":true},"posts":{"total":"3647","sent":3647,"finished":true,"last_sent":"2"},"term_relationships":{"total":"3115","sent":3115,"finished":true,"last_sent":{"object_id":"1","term_taxonomy_id":"270"}},"terms":{"total":"398","sent":398,"finished":true,"last_sent":"1"},"themes":{"finished":true},"updates":{"finished":true},"users":{"total":"83","sent":83,"finished":true,"last_sent":"1"}},"config":{"comments":1,"constants":1,"functions":1,"options":1,"posts":1,"term_relationships":1,"terms":1,"themes":1,"updates":1,"users":1}}
    sync_size: undefined
    sync_lag: 0 seconds
    full_sync_size: undefined
    full_sync_lag: 0 seconds
    idc_urls: {"home":"https:\/\/susyah.csfs.org","siteurl":"https:\/\/susyah.csfs.org","WP_HOME":"","WP_SITEURL":""}
    idc_error_option: false
    idc_optin: true
    cxn_tests: All Pass.
    
    ### buddypress ###
    
    version: 11.1.0
    active_components: Community Members, Extended Profiles, Account Settings, Friend Connections, Private Messaging, Activity Streams, Notifications, User Groups
    template_pack: BuddyPress Nouveau 11.1.0
    ! hide-loggedout-adminbar: No
    ! bp-disable-account-deletion: No
    ! bp-disable-avatar-uploads: Yes
    ! bp-disable-cover-image-uploads: Yes
    bp-enable-members-invitations: No
    bp-enable-membership-requests: No
    ! bp-disable-profile-sync: Yes
    ! bp_restrict_group_creation: No
    ! bp-disable-group-avatar-uploads: Yes
    ! bp-disable-group-cover-image-uploads: Yes
    ! bp-disable-blogforum-comments: Yes
    _bp_enable_heartbeat_refresh: Yes
    
    ### redux-framework ###
    
    version: 4.3.12
    installation: in_plugin
    data directory: /home/susyah/public_html/wp-content/plugins/k-elements/lib/options/
    browser: 
    	Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0
    	Browser: Firefox
    	Version: 112.0
    	Platform: Apple
    
    ### redux-instance-kleo_kleo_child ###
    
    opt_name: kleo_kleo_child
    global_variable: false
    dev_mode: false
    ajax_save: false
    page_slug: kleo_options
    page_permissions: manage_options
    menu_type: menu
    page_parent: themes.php
    compiler: false
    output: false
    output_tag: true
    templates_path: undefined
    extensions: 
    	Customizer: 4.0.0
    	Import Export: 4.0.0
    	Metaboxes: 4.0.0
    	Options Object: 4.0.0
    	Repeater: 4.3.7
    	Search: 3.4.5
    	Shortcodes: 4.3.5
    
    ### wpforms ###
    
    version: 1.8.0.2
    lite: Nov 14, 2022 @ 5:41pm
    upload_dir: Writable
    total_forms: undefined
    total_submissions: undefined
    
    ### bp-profile-search ###
    
    version: 5.4.8
    platform: BuddyPress 11.1.0
    theme: Kleo Child 
    index: /plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/index.php
    loop: /plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/members-loop.php
    template0: /themes/kleo/buddypress-nouveau/members/bps-form-legacy.php
    template1: /themes/kleo/buddypress-nouveau/members/bps-form-inline.php
    template2: /themes/kleo/buddypress-nouveau/members/bps-form-with-labels.php
    
    
    #328174

    In reply to: remove group privacy

    edensan
    Participant

    okay here is the php code for every privacy set to public:

    <?php
    /**
     * BP Nouveau Group's edit settings template.
     *
     * This template can be overridden by copying it to yourtheme/buddypress/groups/single/admin/group-settings.php.
     *
     * @since   BuddyPress 3.0.0
     * @version 1.0.0
     */
    ?>
    
    <?php if ( bp_is_group_create() ) : ?>
    
    	<h3 class="bp-screen-title creation-step-name">
    		<?php esc_html_e( 'Select Group Settings', 'buddyboss' ); ?>
    	</h3>
    
    <?php else : ?>
    
    	<h2 class="bp-screen-title">
    		<?php esc_html_e( 'Change Group Settings', 'buddyboss' ); ?>
    	</h2>
    
    <?php endif; ?>
    
    <div class="group-settings-selections">
    
    	<fieldset class="radio group-status-type">
    		<legend><?php esc_html_e( 'Privacy Options', 'buddyboss' ); ?></legend>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-public" class="bs-styled-radio" value="public"
    			<?php
    			if ( 'public' === bp_get_new_group_status() || ! bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="public-group-description" />
    			<label for="group-status-public"><?php esc_html_e( 'This is a public group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="public-group-description">
    			<li><?php esc_html_e( 'Any site member can join this group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddyboss' ); ?></li>
    		</ul>
    <?php
    /** DIT UITGEVINKT DOOR EDWIN
    	<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-private" class="bs-styled-radio" value="private"
    			<?php
    			if ( 'private' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="private-group-description" />
    			<label for="group-status-private"><?php esc_html_e( 'This is a private group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="private-group-description">
    			<li><?php esc_html_e( 'Only people who request membership and are accepted can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-hidden" class="bs-styled-radio" value="hidden"
    			<?php
    			if ( 'hidden' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="hidden-group-description" />
    			<label for="group-status-hidden"><?php esc_html_e( 'This is a hidden group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="hidden-group-description">
    			<li><?php esc_html_e( 'Only people who are invited can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    DIT UITGEVINKT DOOR EDWIN
    
    */
    ?>
    	</fieldset>
    
    	<fieldset class="radio group-invitations">
    		<legend><?php esc_html_e( 'Group Invitations', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    			<label for="group-invite-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    			<label for="group-invite-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
    			<label for="group-invite-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>	
    
    </fieldset>
    
    	<fieldset class="radio group-post-form">
    		<legend><?php esc_html_e( 'Activity Feeds', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to post into the activity feed?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_activity_feed_status_setting( 'members' ); ?> />
    			<label for="group-activity-feed-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_activity_feed_status_setting( 'mods' ); ?> />
    			<label for="group-activity-feed-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_activity_feed_status_setting( 'admins' ); ?> />
    			<label for="group-activity-feed-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>
    
    	</fieldset>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_media_support_enabled() ) : ?>
    
    		<fieldset class="radio group-media">
    			<legend><?php esc_html_e( 'Group Photos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload photos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_media_status_setting( 'members' ); ?> />
    				<label for="group-media-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    
    <?php
    /**			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_media_status_setting( 'mods' ); ?> />
    				<label for="group-media-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_media_status_setting( 'admins' ); ?> />
    				<label for="group-media-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_albums_support_enabled() ) : ?>
    
    		<fieldset class="radio group-albums">
    			<legend><?php esc_html_e( 'Group Albums', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to create albums?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_albums_status_setting( 'members' ); ?> />
    				<label for="group-albums-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_albums_status_setting( 'mods' ); ?> />
    				<label for="group-albums-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_albums_status_setting( 'admins' ); ?> />
    				<label for="group-albums-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    						*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_document_support_enabled() ) : ?>
    
    		<fieldset class="radio group-document">
    			<legend><?php esc_html_e( 'Group Documents', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload documents?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_document_status_setting( 'members' ); ?> />
    				<label for="group-document-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_document_status_setting( 'mods' ); ?> />
    				<label for="group-document-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_document_status_setting( 'admins' ); ?> />
    				<label for="group-document-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    	
    	*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'video' ) && bp_is_group_video_support_enabled() ) : ?>
    
    		<fieldset class="radio group-video">
    			<legend><?php esc_html_e( 'Group Videos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload videos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_video_status_setting( 'members' ); ?> />
    				<label for="group-video-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_video_status_setting( 'mods' ); ?> />
    				<label for="group-video-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_video_status_setting( 'admins' ); ?> />
    				<label for="group-video-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    				*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'messages' ) && true === bp_disable_group_messages() ) : ?>
    
    		<fieldset class="radio group-messages">
    			<legend><?php esc_html_e( 'Group Messages', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to send group messages?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input checked type="radio" name="group-message-status" id="group-messages-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_messages_status_setting( 'members' ); ?> />
    				<label for="group-messages-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_messages_status_setting( 'mods' ); ?> />
    				<label for="group-messages-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_messages_status_setting( 'admins' ); ?> />
    				<label for="group-messages-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	$group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' );
    
    	// Hide Group Types if none is selected in Users > Profile Type > E.g. (Students) > Allowed Group Types meta box.
    	if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    		$get_all_registered_member_types = bp_get_active_member_types();
    		if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    			$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    			if ( '' !== $current_user_member_type ) {
    				$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    				$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    				if ( isset( $include_group_type ) && ! empty( $include_group_type ) && 'none' === $include_group_type[0] ) {
    					$group_types = '';
    				}
    			}
    		}
    	}
    
    	// Group type selection
    	if ( $group_types ) :
    		?>
    
    		<fieldset class="group-create-types">
    			<legend><?php esc_html_e( 'Group Type', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'What type of group is this? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-type" name="group-types[]" autocomplete="off">
    				<option value="" <?php selected( '', '' ); ?>><?php _e( 'Select Group Type', 'buddyboss' ); ?></option>
    			<?php foreach ( $group_types as $type ) : ?>
    				<?php
    				if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    
    					$get_all_registered_member_types = bp_get_active_member_types();
    
    					if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    						$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    
    						if ( '' !== $current_user_member_type ) {
    
    							$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    							$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    
    							if ( isset( $include_group_type ) && ! empty( $include_group_type ) ) {
    								if ( in_array( $type->name, $include_group_type ) ) {
    									?>
    									<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    									<?php
    								}
    							} else {
    								?>
    								<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    								<?php
    							}
    						} else {
    							?>
    							<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    							<?php
    						}
    					} else {
    						?>
    						<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    						<?php
    					}
    				} else {
    					?>
    					<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    					<?php
    				}
    				?>
    
    			<?php endforeach; ?>
    			</select>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	if ( bp_enable_group_hierarchies() ) :
    		$current_parent_group_id = bp_get_parent_group_id();
    		$possible_parent_groups  = bp_get_possible_parent_groups();
    		?>
    
    		<fieldset class="select group-parent">
    			<legend><?php esc_html_e( 'Group Parent', 'buddyboss' ); ?></legend>
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which group should be the parent of this group? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-parent" name="bp-groups-parent" autocomplete="off">
    				<option value="0" <?php selected( 0, $current_parent_group_id ); ?>><?php _e( 'Select Parent', 'buddyboss' ); ?></option>
    				<?php
    				if ( $possible_parent_groups ) {
    
    					foreach ( $possible_parent_groups as $possible_parent_group ) {
    						?>
    						<option value="<?php echo $possible_parent_group->id; ?>" <?php selected( $current_parent_group_id, $possible_parent_group->id ); ?>><?php echo esc_html( $possible_parent_group->name ); ?></option>
    						<?php
    					}
    				}
    				?>
    			</select>
    		</fieldset>
    	<?php endif; ?>
    
    </div><!-- // .group-settings-selections -->
    

    greetz Edwin

    #328170

    In reply to: remove group privacy

    edensan
    Participant

    okay i find this setting in:
    \bp-nouveau\buddypress\groups\single\admin\group-settings.php

    <?php
    /**
     * BP Nouveau Group's edit settings template.
     *
     * This template can be overridden by copying it to yourtheme/buddypress/groups/single/admin/group-settings.php.
     *
     * @since   BuddyPress 3.0.0
     * @version 1.0.0
     */
    ?>
    
    <?php if ( bp_is_group_create() ) : ?>
    
    	<h3 class="bp-screen-title creation-step-name">
    		<?php esc_html_e( 'Select Group Settings', 'buddyboss' ); ?>
    	</h3>
    
    <?php else : ?>
    
    	<h2 class="bp-screen-title">
    		<?php esc_html_e( 'Change Group Settings', 'buddyboss' ); ?>
    	</h2>
    
    <?php endif; ?>
    
    <div class="group-settings-selections">
    
    	<fieldset class="radio group-status-type">
    		<legend><?php esc_html_e( 'Privacy Options', 'buddyboss' ); ?></legend>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-public" class="bs-styled-radio" value="public"
    			<?php
    			if ( 'public' === bp_get_new_group_status() || ! bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="public-group-description" />
    			<label for="group-status-public"><?php esc_html_e( 'This is a public group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="public-group-description">
    			<li><?php esc_html_e( 'Any site member can join this group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will be visible to any site member.', 'buddyboss' ); ?></li>
    		</ul>
    <?php
    /** DIT UITGEVINKT DOOR EDWIN
    	<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-private" class="bs-styled-radio" value="private"
    			<?php
    			if ( 'private' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="private-group-description" />
    			<label for="group-status-private"><?php esc_html_e( 'This is a private group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="private-group-description">
    			<li><?php esc_html_e( 'Only people who request membership and are accepted can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will be listed in the groups directory and in search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-status" id="group-status-hidden" class="bs-styled-radio" value="hidden"
    			<?php
    			if ( 'hidden' === bp_get_new_group_status() ) {
    				?>
    				 checked="checked"<?php } ?> aria-describedby="hidden-group-description" />
    			<label for="group-status-hidden"><?php esc_html_e( 'This is a hidden group', 'buddyboss' ); ?></label>
    		</div>
    
    		<ul id="hidden-group-description">
    			<li><?php esc_html_e( 'Only people who are invited can join the group.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'This group will not be listed in the groups directory or search results.', 'buddyboss' ); ?></li>
    			<li><?php esc_html_e( 'Group content and activity will only be visible to members of the group.', 'buddyboss' ); ?></li>
    		</ul>
    DIT UITGEVINKT DOOR EDWIN
    
    */
    ?>
    	</fieldset>
    
    	<fieldset class="radio group-invitations">
    		<legend><?php esc_html_e( 'Group Invitations', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to invite others?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_invite_status_setting( 'members' ); ?> />
    			<label for="group-invite-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_invite_status_setting( 'mods' ); ?> />
    			<label for="group-invite-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-invite-status" id="group-invite-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_invite_status_setting( 'admins' ); ?> />
    			<label for="group-invite-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>	
    
    </fieldset>
    
    	<fieldset class="radio group-post-form">
    		<legend><?php esc_html_e( 'Activity Feeds', 'buddyboss' ); ?></legend>
    
    		<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to post into the activity feed?', 'buddyboss' ); ?></p>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_activity_feed_status_setting( 'members' ); ?> />
    			<label for="group-activity-feed-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    		</div>
    <?php
    /**
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_activity_feed_status_setting( 'mods' ); ?> />
    			<label for="group-activity-feed-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    		</div>
    
    		<div class="bp-radio-wrap">
    			<input type="radio" name="group-activity-feed-status" id="group-activity-feed-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_activity_feed_status_setting( 'admins' ); ?> />
    			<label for="group-activity-feed-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    		</div>
    */
    ?>
    
    	</fieldset>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_media_support_enabled() ) : ?>
    
    		<fieldset class="radio group-media">
    			<legend><?php esc_html_e( 'Group Photos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload photos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_media_status_setting( 'members' ); ?> />
    				<label for="group-media-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    
    <?php
    /**			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_media_status_setting( 'mods' ); ?> />
    				<label for="group-media-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-media-status" id="group-media-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_media_status_setting( 'admins' ); ?> />
    				<label for="group-media-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_albums_support_enabled() ) : ?>
    
    		<fieldset class="radio group-albums">
    			<legend><?php esc_html_e( 'Group Albums', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to create albums?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_albums_status_setting( 'members' ); ?> />
    				<label for="group-albums-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_albums_status_setting( 'mods' ); ?> />
    				<label for="group-albums-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-album-status" id="group-albums-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_albums_status_setting( 'admins' ); ?> />
    				<label for="group-albums-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    						*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'media' ) && bp_is_group_document_support_enabled() ) : ?>
    
    		<fieldset class="radio group-document">
    			<legend><?php esc_html_e( 'Group Documents', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload documents?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_document_status_setting( 'members' ); ?> />
    				<label for="group-document-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**	
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_document_status_setting( 'mods' ); ?> />
    				<label for="group-document-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-document-status" id="group-document-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_document_status_setting( 'admins' ); ?> />
    				<label for="group-document-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    	
    	*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'video' ) && bp_is_group_video_support_enabled() ) : ?>
    
    		<fieldset class="radio group-video">
    			<legend><?php esc_html_e( 'Group Videos', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to upload videos?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_video_status_setting( 'members' ); ?> />
    				<label for="group-video-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_video_status_setting( 'mods' ); ?> />
    				<label for="group-video-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-video-status" id="group-video-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_video_status_setting( 'admins' ); ?> />
    				<label for="group-video-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    				*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php if ( bp_is_active( 'messages' ) && true === bp_disable_group_messages() ) : ?>
    
    		<fieldset class="radio group-messages">
    			<legend><?php esc_html_e( 'Group Messages', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which members of this group are allowed to send group messages?', 'buddyboss' ); ?></p>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-members" class="bs-styled-radio" value="members"<?php bp_group_show_messages_status_setting( 'members' ); ?> />
    				<label for="group-messages-status-members"><?php esc_html_e( 'All group members', 'buddyboss' ); ?></label>
    			</div>
    <?php
    /**
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-mods" class="bs-styled-radio" value="mods"<?php bp_group_show_messages_status_setting( 'mods' ); ?> />
    				<label for="group-messages-status-mods"><?php esc_html_e( 'Organizers and Moderators only', 'buddyboss' ); ?></label>
    			</div>
    
    			<div class="bp-radio-wrap">
    				<input type="radio" name="group-message-status" id="group-messages-status-admins" class="bs-styled-radio" value="admins"<?php bp_group_show_messages_status_setting( 'admins' ); ?> />
    				<label for="group-messages-status-admins"><?php esc_html_e( 'Organizers only', 'buddyboss' ); ?></label>
    			</div>
    			
    			*/
    ?>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	$group_types = bp_groups_get_group_types( array( 'show_in_create_screen' => true ), 'objects' );
    
    	// Hide Group Types if none is selected in Users > Profile Type > E.g. (Students) > Allowed Group Types meta box.
    	if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    		$get_all_registered_member_types = bp_get_active_member_types();
    		if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    			$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    			if ( '' !== $current_user_member_type ) {
    				$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    				$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    				if ( isset( $include_group_type ) && ! empty( $include_group_type ) && 'none' === $include_group_type[0] ) {
    					$group_types = '';
    				}
    			}
    		}
    	}
    
    	// Group type selection
    	if ( $group_types ) :
    		?>
    
    		<fieldset class="group-create-types">
    			<legend><?php esc_html_e( 'Group Type', 'buddyboss' ); ?></legend>
    
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'What type of group is this? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-type" name="group-types[]" autocomplete="off">
    				<option value="" <?php selected( '', '' ); ?>><?php _e( 'Select Group Type', 'buddyboss' ); ?></option>
    			<?php foreach ( $group_types as $type ) : ?>
    				<?php
    				if ( false === bp_restrict_group_creation() && true === bp_member_type_enable_disable() ) {
    
    					$get_all_registered_member_types = bp_get_active_member_types();
    
    					if ( isset( $get_all_registered_member_types ) && ! empty( $get_all_registered_member_types ) ) {
    
    						$current_user_member_type = bp_get_member_type( bp_loggedin_user_id() );
    
    						if ( '' !== $current_user_member_type ) {
    
    							$member_type_post_id = bp_member_type_post_by_type( $current_user_member_type );
    							$include_group_type  = get_post_meta( $member_type_post_id, '_bp_member_type_enabled_group_type_create', true );
    
    							if ( isset( $include_group_type ) && ! empty( $include_group_type ) ) {
    								if ( in_array( $type->name, $include_group_type ) ) {
    									?>
    									<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    									<?php
    								}
    							} else {
    								?>
    								<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    								<?php
    							}
    						} else {
    							?>
    							<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    							<?php
    						}
    					} else {
    						?>
    						<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    						<?php
    					}
    				} else {
    					?>
    					<option for="<?php printf( 'group-type-%s', $type->name ); ?>" value="<?php echo esc_attr( $type->name ); ?>" <?php selected( ( true === bp_groups_has_group_type( bp_get_current_group_id(), $type->name ) ) ? $type->name : '', $type->name ); ?>><?php echo esc_html( $type->labels['singular_name'] ); ?></option>
    					<?php
    				}
    				?>
    
    			<?php endforeach; ?>
    			</select>
    		</fieldset>
    
    	<?php endif; ?>
    
    	<?php
    	if ( bp_enable_group_hierarchies() ) :
    		$current_parent_group_id = bp_get_parent_group_id();
    		$possible_parent_groups  = bp_get_possible_parent_groups();
    		?>
    
    		<fieldset class="select group-parent">
    			<legend><?php esc_html_e( 'Group Parent', 'buddyboss' ); ?></legend>
    			<p class="group-setting-label" tabindex="0"><?php esc_html_e( 'Which group should be the parent of this group? (optional)', 'buddyboss' ); ?></p>
    			<select id="bp-groups-parent" name="bp-groups-parent" autocomplete="off">
    				<option value="0" <?php selected( 0, $current_parent_group_id ); ?>><?php _e( 'Select Parent', 'buddyboss' ); ?></option>
    				<?php
    				if ( $possible_parent_groups ) {
    
    					foreach ( $possible_parent_groups as $possible_parent_group ) {
    						?>
    						<option value="<?php echo $possible_parent_group->id; ?>" <?php selected( $current_parent_group_id, $possible_parent_group->id ); ?>><?php echo esc_html( $possible_parent_group->name ); ?></option>
    						<?php
    					}
    				}
    				?>
    			</select>
    		</fieldset>
    	<?php endif; ?>
    
    </div><!-- // .group-settings-selections -->
    

    so i commented everything out what i dont want.
    only thing is how can i select by default the last option?
    mabe someone can help me point in right direction?

    greetz Edwin

    manni65929
    Participant

    Hey!

    Is there a way to hide Admins from the general member’s directory – maybe with a plugin or a shot script? Also, would that not be a great feature to be included in the next update for BuddyPress?

    Thanks in advance

    ayllachristinne
    Participant

    Hi, I want to show the loggedin user profile if he/she tries to access other user’s profile.
    Here’s a list of what I want and what I’ve accomplished

    • OK – Redirect to own profile when entering /members/
    • X – Redirect to own profile when entering another profile via link
    • OK – WMDs can view member listings
    • OK – ADMs can view member profile

    This is the code i have until now

    function buddydev_hide_members_directory_for_all_except_users_with_specific_roles() {
      if ( ! bp_is_members_directory() ) {
        return;
      }
    
      if ( !is_user_logged_in() ) {
        bp_do_404();
        load_template( get_404_template() );
        exit( 0 );
      }
    
      $allowed_roles = array( 'administrator', 'editor' );
      $hide          = true;
      $user          = wp_get_current_user();
      
      foreach ( $allowed_roles as $role ) {
        if ( in_array( $role, $user->roles, true ) ) {
          $hide = false;
          break;
        }
      }
    
      if ( ! $hide ) {
        return;
      }
    
      /** 
       * bp_is_my_profile()
       * bp_is_user_profile()
       * bp_is_user()
       * bbp_is_single_user_profile()
       * bbp_is_user_home()
       * bbp_is_single_user()
       */
       if(!bbp_is_user_home()){
           wp_redirect(bp_loggedin_user_domain());
       }
    
      //REDIRECT TO USER PROFILE
      wp_redirect(bp_loggedin_user_domain());
      exit( 0 );
    }
    add_action( 'bp_template_redirect', 'buddydev_hide_members_directory_for_all_except_users_with_specific_roles' );

    I tried some things like the last IF with the commented functions but none work, so I guess I’m doing something wrong. Can you help me plz?

    Thanks in advance

    deaf25
    Participant

    Hello,

    I am looking for php code to be inserted into my custom function plugin so that my admin account will be visible hidden from members on members directory and else where.

    I did see some colder codes here but it does not seem to be working on the current BuddyPress version.

    Does anyone have the workable code?

    Thanks

    #318912
    khocvole1197
    Participant

    hi there,
    i am looking for a way to hide user role in member page, i still don’t have a working solution. anyone have any ideas, thanks.

    I tried using this guide:
    https://wordpress.org/support/topic/hide-admin-users-from-being-displayed-in-members-directory/ is not working.

    #306826
    chris19731973
    Participant
    <?php
    
    /**
     * Listing detail Page.
     *
     * @link    https://pluginsware.com
     * @since   1.0.0
     *
     * @package Advanced_Classifieds_And_Directory_Pro
     */
     
    // Exit if accessed directly
    if ( ! defined( 'WPINC' ) ) {
    	die;
    }
    
    /**
     * ACADP_Public_Listing Class.
     *
     * @since 1.0.0
     */
    class ACADP_Public_Listing {
    	
    	/**
    	 * Filter the post content.
    	 *
    	 * @since  1.5.4
    	 * @param  string $html The post thumbnail HTML.
    	 * @return string $html Filtered thumbnail HTML.
    	 */
    	public function post_thumbnail_html( $html ) {	
    		if ( is_singular( 'acadp_listings' ) ) {
    			return '';
    		}
    		
    		return $html;		
    	}
    	
    	/**
    	 * Filter the post content.
    	 *
    	 * @since  1.0.0
    	 * @param  string $content Content of the current post.
    	 * @return string $content Modified Content.
    	 */
    	public function the_content( $content ) {		
    		if ( is_singular( 'acadp_listings' ) && in_the_loop() && is_main_query() ) {		
    			global $post;
    			
    			acadp_update_listing_views_count( $post->ID );
    			
    			$general_settings      = get_option( 'acadp_general_settings' );
    			$recaptcha_settings    = get_option( 'acadp_recaptcha_settings' );	
    			$registration_settings = get_option( 'acadp_registration_settings' );
    
    			$post_meta = get_post_meta( $post->ID );
    			
    			$description = $content;
    					
    			$can_show_date         = isset( $general_settings['display_options'] ) && in_array( 'date', $general_settings['display_options'] )  ? true : false;
    			$can_show_user         = isset( $general_settings['display_options'] ) && in_array( 'user', $general_settings['display_options'] )  ? true : false;
    			$can_show_views        = isset( $general_settings['display_options'] ) && in_array( 'views', $general_settings['display_options'] ) ? true : false;
    			$can_show_contact_form = empty( $general_settings['has_contact_form'] ) ? false : true;	
    			$can_add_favourites    = empty( $general_settings['has_favourites'] )   ? false : true;
    			$can_report_abuse      = empty( $general_settings['has_report_abuse'] ) ? false : true;
    			$has_widgets           = acadp_has_active_listing_widgets();
    			$has_sidebar           = ! $has_widgets;
    			
    			// $login_url
    			$current_page_url = get_permalink();
    			$login_url        = acadp_get_user_login_page_link( $current_page_url );
    			
    			// $location
    			$has_location = empty( $general_settings['has_location'] ) ? false : true;
    			$can_show_location = false;
    			
    			if ( $has_location ) {
    				$location = wp_get_object_terms( $post->ID, 'acadp_locations' );
    			
    				if ( ! empty( $location ) ) {
    					$location = $location[0];
    					$can_show_location = true;
    				}
    			}
    			
    			// $category
    			$has_category = false;
    			$can_show_category = isset( $general_settings['display_options'] ) && in_array( 'category', $general_settings['display_options'] ) ? true : false;
    			$can_show_category_desc = isset( $general_settings['display_options'] ) && in_array( 'category_desc', $general_settings['display_options'] ) ? true : false;
    			$categories = wp_get_object_terms( $post->ID, 'acadp_categories' );
    			
    			if ( empty( $categories ) ) {
    				$can_show_category = false;
    			} else {
    				$category = $categories[0];
    				$has_category = true;
    			}
    			
    			// $can_show_images
    			$has_images = empty( $general_settings['has_images'] ) ? false : true;
    			$can_show_images = false;
    			
    			if ( $has_images ) {
    				$can_show_images = isset( $post_meta['images'] ) ? true : false;
    			}
    			
    			// $can_show_video
    			$has_video = empty( $general_settings['has_video'] ) ? false : true;
    			$can_show_video = false;
    			$video_url = '';
    			
    			if ( $has_video ) {
    				if ( ! empty( $post_meta['video'][0] ) ) {
    					$video_url = acadp_parse_videos( $post_meta['video'][0] );	
    					$can_show_video = empty( $video_url ) ? false : true;				
    				}				
    			}
    			
    			// $can_show_map
    			$has_map = ! empty( $general_settings['has_map'] ) && empty( $post_meta['hide_map'][0] ) ? true : false;
    			$can_show_map = false;
    		
    			if ( $can_show_location && $has_map ) {			
    				$can_show_map = ! empty( $post_meta['latitude'][0] ) && ! empty( $post_meta['longitude'][0] ) ? true : false;
    			}
    
    			// $can_show_price
    			$has_price = empty( $general_settings['has_price'] ) ? false : true;
    			$can_show_price = false;
    		
    			if ( $has_price && isset( $post_meta['price'] ) && $post_meta['price'][0] > 0 ) {
    				$can_show_price = true;
    			}
    			
    			// Get custom fields
    			$fields = array();
    			$category_ids = array();
    
    			foreach ( $categories as $category ) {
    				$category_ids[] = $category->term_id;
    			}
    
    			$custom_field_ids = acadp_get_custom_field_ids( $category_ids );	
    					
    			if ( ! empty( $custom_field_ids ) ) {
    				$args = array(
    					'post_type' => 'acadp_fields',
    					'post_status' => 'publish',
    					'posts_per_page' => 500,	
    					'post__in' => $custom_field_ids,
    					'no_found_rows' => true,
    					'update_post_term_cache' => false,	
    					'meta_key' => 'order',
    					'orderby' => 'meta_value_num',				
    					'order' => 'ASC'
    				);
    				
    				$acadp_query = new WP_Query( $args );
    
    				if ( $acadp_query->have_posts() ) {
    					$fields = $acadp_query->posts;
    				}
    			}
    
    			// Process output
    			ob_start();
    			do_action( 'acadp_before_listing_content' );
    			include( acadp_get_template( "listing/acadp-public-listing-display.php" ) );
    			do_action( 'acadp_after_listing_content' );
    			$content = ob_get_clean();		
    		}
    		
    		return $content;		
    	}
    	
    	/**
    	 * Add or Remove favourites.
    	 *
    	 * @since 1.0.0
    	 */
    	public function ajax_callback_add_remove_favorites() {	
    		check_ajax_referer( 'acadp_ajax_nonce', 'security' );
    
    		$post_id = (int) $_POST['post_id'];
    		
    		$favourites = (array) get_user_meta( get_current_user_id(), 'acadp_favourites', true );
    		
    		if ( in_array( $post_id, $favourites ) ) {			
    			if ( ( $key = array_search( $post_id, $favourites ) ) !== false ) {
        			unset( $favourites[ $key ] );
    			}
    		} else {
    			$favourites[] = $post_id;
    		}
    		
    		$favourites = array_filter( $favourites );
    		$favourites = array_values( $favourites );
    		
    		delete_user_meta( get_current_user_id(), 'acadp_favourites' );
    		update_user_meta( get_current_user_id(), 'acadp_favourites', $favourites );
    		
    		the_acadp_favourites_link( $post_id );
    		
    		wp_die();	
    	}
    	
    	/**
    	 * Report Abuse.
    	 *
    	 * @since 1.0.0
    	 */
    	public function ajax_callback_report_abuse() {	
    		check_ajax_referer( 'acadp_ajax_nonce', 'security' );
    
    		$data = array( 'error' => 0 );
    		
    		if ( acadp_is_human('report_abuse') ) {		
    			if ( acadp_email_admin_report_abuse() ) {			
    				$data['message'] = __( 'Your message sent successfully.', 'advanced-classifieds-and-directory-pro' );				
    			} else {				
    				$data['error']   = 1;
    				$data['message'] = __( 'Sorry! Please try again.', 'advanced-classifieds-and-directory-pro' );				
    			}			
    		} else {		
    			$data['error']   = 1;
    			$data['message'] = __( 'Invalid Captcha: Please try again.', 'advanced-classifieds-and-directory-pro' );			
    		}
    				
    		echo wp_json_encode( $data );
    		wp_die();	
    	}
    	
    	/**
    	 * Send contact email.
    	 *
    	 * @since 1.0.0
    	 */
    	public function ajax_callback_send_contact_email() {	
    		check_ajax_referer( 'acadp_ajax_nonce', 'security' );
    		
    		$data = array( 'error' => 0 );
    		
    		if ( acadp_is_human('contact') ) {		
    			if ( acadp_email_listing_owner_listing_contact() ) {			
    				// Send a copy to admin( only if applicable ).
    				acadp_email_admin_listing_contact();
    				
    				$data['message'] = __( 'Your message sent successfully.', 'advanced-classifieds-and-directory-pro' );				
    			} else {				
    				$data['error']   = 1;
    				$data['message'] = __( 'Sorry! Please try again.', 'advanced-classifieds-and-directory-pro' );				
    			}			
    		} else {		
    			$data['error']   = 1;
    			$data['message'] = __( 'Invalid Captcha: Please try again.', 'advanced-classifieds-and-directory-pro' );			
    		}
    			
    		echo wp_json_encode( $data );	
    		wp_die();	
    	}
    
    }
    
    #279732
    adrihessels
    Participant

    Hello Prashant Singh,

    In which file/directory you need to put the code. In other cases i’ve found /wp-content/plugins/bp-custom.php

    Trying this gives an error.

    Question: why is this option to hide adminstrators of other kind of roles not a default parameter?

    #276921
    slash75
    Participant

    I want to prevent several accounts from displaying in the Members Directory.
    Ex. Administrators

    Is t his possible?

    #276700

    In reply to: Hide members

    lookingahead
    Participant

    so, @shanebp forgive me if resurrecting this thread is a bad idea, but it has the information in it that i have a question on, and i figured it’s easier to use this one to talk about my issue rather than create a new thread and link back here.

    i looked at the bp-custom.php file you linked to for this issue and i’m unsure where i can find the correct code to use with it….because i am actually not trying to merely hide members from the directory, but am instead trying to hide them from the directory and ALL other users on the site. i want to make it so that the user profiles basically are unreachable…along with each user’s information.

    so i believe (not sure, but i believe) that to achieve this is i would need to make sure the profiles are handled in one of the following ways:
    – password protected from view, accessible only to admins/keymaster
    – never loaded at all somehow, via bp-custom.php
    – the template for user profiles is blanked out somehow, so information is never put in them
    – get the buddypress profile for users — when clicking on an avatar — just redirect to the main site page

    of course, i have no idea if these guesses are the way to achieve the goal i really want….which is to have only one profile used (i’m using woocommerce’s account screen for their profiles)……i have no need for a buddypress profile to be used in addition to the woocommerce account profile page that i have them already using.

    i honestly just want each user’s personal profile page in buddypress to be disabled. so they can’t see their own profile or any profile of others.

    whether that involves forwarding users to the site main page when they click on a user, or (ideally) not being clickable at all, or….oh, i don’t know. as long as no buddypress profile is viewable by any member in any way. not even by the buddypress user themselves.

    and yes — this would also include hiding member names from search.

    note: i don’t care if they can see the member list in the hidden group forums; that is the only place i care to see members listed. but i don’t want those member avatars to be clickable in a hidden group forum. not ever.

    thoughts????

    #273569

    In reply to: wordpress top bar

    Venutius
    Moderator

    There’s a number of plugins that will allow you to remove the wp-admin top bar, just search the plugin directory.

    Hide Admin Bar

    #273300
    cyberjulie
    Participant

    WordPress : 4.9.6 as a directory
    Theme : Kleo last update
    Plugins :
    Activity Reactions For Buddypress Version 1.0.22
    Akismet Anti-Spam Version 4.0.3
    bbPress Version 2.5.14
    bbPress auto subscribe for new topics and replies Version 1.0
    BuddyPress Version 3.0.0
    Contact Form 7 Version 5.0.2
    Essential Grid Version 2.2.3
    Events Manager Version 5.8.1.1
    Events Manager Pro Version 2.5.1
    Heartbeat Control Version 1.2.3
    Hide Admin Bar Version 1.7.1.3
    iThemes Security Version 6.9.2
    K Elements Version 4.3.5
    Lightweight Subscribe To Comments Version 1.5.7
    MetaSlider Version 3.7.2
    reBusted! Version 1.1
    Rendez Vous Version 1.4.2
    rtMedia for WordPress, BuddyPress and bbPress Version 4.4.8
    Simple Buddypress Profile Privacy Version 0.7.7
    Slider Revolution Version 5.4.6.3.1
    Wordfence Security Version 7.1.4
    WP FullCalendar Version 1.2
    WP Rocket Version 3.0.4
    WP-Optimize Version 2.2.4
    Éditeur de page Version 5.4.7

    Link : https://dispo.fun

    Hello, since installing version 3.0.0, we’ve lost the ability to comment on group posts. Is this a bug ???
    On the other hand, in the presentation video of the template New, we see an editor like the one to customize the themes but for Buddy Press. How can we reach it?

    Regards

    Julie

    gheebuttersnaps
    Participant

    Hey there,

    I am currently setting up a members directory for our alumni association using buddypress (currently Version 3 RC1 from trac). I really love it and so far the feedback from our testers is really positive. I might consider contributing a showcase/case study if there is anything like that for buddypress. I have already contributed several translations and will add more during the weekend!

    I have one issue remaining which is related to the search function. We allow our members to hide certain information from other members. For example one member can set their current location to “adminsonly”. Let’s assume this example. We have user Thomas in city Berlin and user Peter in city Munich. Thomas decides to hide his location from other members and sets the field visibility to adminsonly. Now Peter views Thomas’ profile and is not able to see his location. So far everything works as expected. Now Peter uses the search function and uses the keyword “Berlin”. The result set contains Thomas (without displaying any information about the city) although Peter should not be able to know the city.

    I would tend to consider this as a breach of privacy for users. That’s why I currently have removed the search boxes from all pages. Technically, if someone knows the URL search strings he/she could still do the search. Is it possible to configure the search so that it only searches fields which are available to the user conducting the search?

    Thanks and regards!

    #272344

    In reply to: Hiding the admin user

    shanebp
    Moderator

    You could use the overload method.
    imo, using hooks is easier.

    For example, to hide admin users from the members loop, you could put this into bp-custom.php… untested…

    function grw_members_loop_ghosts( $retval ) {
    
        if ( bp_is_members_directory() ) {
    
            $admins = get_users( array(
    				'fields' => 'ID',
    				'role'   => 'administrator',
    			      ));
            
            $admins = implode(',', $admins );
    
            $retval['exclude'] = $admins;
        }
    
        return $retval;
    }
    add_filter( 'bp_before_has_members_parse_args', 'grw_members_loop_ghosts' );
    #271778
    andyjay83
    Participant

    Wordpress 4.9.5, BuddyPress 2.9.4, BuddyBoss Theme, http://www.torus.drumsbygenre.com

    I am trying to hide all admin accounts from all BuddyPress touch points using this code found on the BuddyDev website:

    add_filter( ‘bp_after_has_members_parse_args’, ‘buddydev_exclude_users_by_role’ );

    function buddydev_exclude_users_by_role( $args ) {
    //do not exclude in admin
    if( is_admin() && ! defined( ‘DOING_AJAX’ ) ) {
    return $args;
    }

    $excluded = isset( $args[‘exclude’] )? $args[‘exclude’] : array();

    if( !is_array( $excluded ) ) {
    $excluded = explode(‘,’, $excluded );
    }

    $role = ‘administrator’;//change to the role to be excluded
    $user_ids = get_users( array( ‘role’ => $role ,’fields’=>’ID’) );

    $excluded = array_merge( $excluded, $user_ids );

    $args[‘exclude’] = $excluded;

    return $args;
    }

    This code seemed to have worked for a lot of people but isn’t currently working for me. I tried putting it into my child theme’s functions.php and also tried making a bp-custom.php file in my wp-content/plugins directory and that didn’t work either. I even refreshed cache and cookies after each of these attempts. Still nothing.

    I’m not advanced when it comes to this stuff. I know that I must be doing something wrong. Any help or guidance would be greatly appreciated.

    #270576
    otty-dev
    Participant

    I tried to implement the following code:

    function buddydev_hide_members_directory_from_all_except_admin() {
    
    	if ( bp_is_members_directory() && ! is_super_admin() ) {
    		//should we add a message too?
    		//bp_core_add_message( 'Private page.', 'error' );
    		bp_core_redirect( site_url('/') );
    	}
    }
    add_action( 'bp_template_redirect', 'buddydev_hide_members_directory_from_all_except_admin' );

    in plugins> bp-custom.php. Just in case, I also tried to implement it by creating a new plugin folder > bp-custom.php in the child theme, but the member directory page is still visible to non-admin/non-logged in users.

    #269331
    HDcms
    Participant

    Hello Gorges
    And thank you 🙂

    In fact, I want to hide these tabs to everyone except for a wordpress role and the super admin
    It works (a priori) but do not hesitate to suggest an improvement.
    I am not sure of my code!

    Regards

    add_action('wp_head', 'HD_maj_activite');
    function HD_maj_activite() {
    	$bp_loggedin_user_id = bp_loggedin_user_id();
    	$user_info = get_userdata($bp_loggedin_user_id);
    	$user_roles = $user_info->roles;
    	if (is_super_admin() || in_array('membre2', $user_roles)) 
     	return ;
    	$output .= '<style type="text/css">body.activity.directory #activity-friends {display: none;}</style>';
    	$output .= '<style type="text/css">body.activity.directory #activity-groups {display: none;}</style>';
       echo $output; // 
    }
    #268054
    xmginc
    Participant

    Hey guys,

    Would anyone know how to hide and disable member pages based on their role type. (e.g. yoursite.com/members/username)

    Goal: if a member is set to a WordPress Administrator role, we would like to make his/her page inaccessible from the public

    Purpose: while we have been able to hide specific roles from displaying in the member directory, their member/page is still visible if you know the URL.

    Similar to how we can make the WordPress Author page inaccessible, we’d like to do the same for BuddyPress’s equivalent Member page.

    Thanks in advance

    #268044
    xmginc
    Participant

    Update: we have found that with a multisite with multiblog enabled to share the member list from the parent across all the child sites, code to filter out roles such as “administrator” only work if that user is also added to the child site.

    Example:

    Does not work in this scenario:

    – parent site setup with user “johnadmin” with admin role is hidden on parent site directory
    – child site without this user created does not hide him from the site directory

    Works in this scenario:

    – parent site setup with user “johnadmin” with admin role is hidden on parent site directory
    – child site ALSO setup with user “johnadmin” with admin role is hidden on child site directory

    For anyone wondering, the code that is partially working for us is below found at buddydev.com. This code has been added to the functions.php in the child site so that we can control what the child site loop shows individually. (example: parent shows everyone, child 1 shows only subscribers, child 2 only shows x, child 3 only shows y, etc.)

    Would super appreciate any suggestions thx!

    add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users_by_role' );
     
    function buddydev_exclude_users_by_role( $args ) {
        //do not exclude in admin
        if( is_admin() && ! defined( 'DOING_AJAX' ) ) {
            return $args;
        }
        
        $excluded = isset( $args['exclude'] )? $args['exclude'] : array();
     
        if( !is_array( $excluded ) ) {
            $excluded = explode(',', $excluded );
        }
        
        //$role = 'administrator';//change to the role to be excluded
        $user_ids =  get_users( array( 'role__in' => ['administrator' , 'contributor' , 'author', 'editor'] ,'fields'=>'ID') );
        
        $excluded = array_merge( $excluded, $user_ids );
        
        $args['exclude'] = $excluded;
        
        return $args;
    }
    
    xmginc
    Participant

    Hey guys,

    Wondering if there is a way to hide specific members based on a extended profile setting.

    While I see options for hiding based on WordPress user role (i.e. Admin, Author, etc.) or based on WordPress user’s ID #, I’m hoping we can do this via an option available to admins to change whether a member is visible in the directory.

    Also, we found that the options to hide users appear to work on the parent Buddypress but those settings don’t affect the child site in a multiblog/multisite setting.

    Any suggestions is greatly appreciated thanks!

    slimmyweight
    Participant

    Hi all,

    I’m new to buddypress and have no experience with php. I have how ever managed to follow instructions on previous posts on preventing users from seeing the admin profile and activity but it hasnt worked correctly and has come up with errors.

    I managed to create the bp-custom.php in the wp-content/plugins directory but the admin profile still appears and just comes up with an error message saying fatal error. It still allows the option to add as a friend aswell unless that might be to do with viewing it from an account already adding the admin account with.

    This is where I got the code Im using from:
    https://buddypress.org/support/topic/hide-admin-from-members-and-activity/

    Code in the bpcustom file

    
    <?php
    
    function bpfr_hide_admins_profile() {
    	global $bp; 
    	if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) :
    		wp_redirect( home_url() );
    	exit;
    	endif;
    }
    add_action( 'wp', 'bpfr_hide_admins_profile', 1 );
    
    function bpdev_exclude_users($qs=false,$object=false){
        
        $excluded_user='1'; // Id's to remove, separated by comma
    	
        if($object != 'members' && $object != 'friends')// hide admin to members & friends 
        return $qs;
    	
        $args=wp_parse_args($qs);
    
        if(!empty($args['user_id']))
        return $qs;	
    	
        if(!empty($args['exclude']))
    		$args['exclude'] = $args['exclude'].','.$excluded_user;
        else
    		$args['exclude'] = $excluded_user;
    	
        $qs = build_query($args);
    
        return $qs;
    	
    }
    add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);
    
    // once admin is removed, we must recount the members !
    function bpfr_hide_get_total_filter($count){
        return $count-1;
    }
    add_filter('bp_get_total_member_count','bpfr_hide_get_total_filter');
    
    function bpfr_hide_admin_activity( $a, $activities ) {	
    	
    	// ... but allow admin to see his activities!
    	if ( is_site_admin() )	
    		return $activities;	
    	
    	foreach ( $activities->activities as $key => $activity ) {	
    		// ID's to exclude, separated by commas. ID 1 is always the superadmin
    		if ( $activity->user_id == 1  ) {			
    			
    			unset( $activities->activities[$key] );			
    			
    			$activities->activity_count = $activities->activity_count-1;			
    			$activities->total_activity_count = $activities->total_activity_count-1;			
    					$activities->pag_num = $activities->pag_num -1;				
    		}		
    	}		
    	// Renumber the array keys to account for missing items 	
    	$activities_new = array_values( $activities->activities );		
    	$activities->activities = $activities_new;	
    	
    	return $activities;
    	
    }
    add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 );
    
    ?>
    
Viewing 25 results - 1 through 25 (of 99 total)
Skip to toolbar