Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Hide Admin'

Viewing 25 results - 451 through 475 (of 690 total)
  • Author
    Search Results
  • Hugo Ashmore
    Participant

    You’ll need to do something like wrap the custom xprofile loop section in a check for a specific field name ‘birthdate’ and do something like ‘if not’ ‘birthdate’ go ahead and display field item or display if is_admin if you want to be able to see users data as a site admin.

    To remove a field you could do:
    `

    <tr>

    `
    in the profile loop; equally if you wanted to remove a complete field group you can copy the approach seen in the file for ensuring that the base group is not shown `if ( 1 != bp_get_the_profile_group_id() ) ` adding an OR followed by a check on the group id to hide.

    aces
    Participant

    On Buddypress > Settings select No for Hide admin bar for logged out users?

    See: https://codex.buddypress.org/getting-started/configure-buddypress-components/#bp-settings

    #129048
    aces
    Participant
    #128793
    Brajesh Singh
    Participant

    You may want to try this code

    http://pastebin.com/phUXcaDN

    hope that helps.

    #128782
    oblax
    Participant

    Exactly. How can I do it? I googled it and I could find any.

    #128781
    @mercime
    Participant

    You mean you don’t want the Admin to be included in the list of members in members directory?

    #128706
    Marcella
    Participant

    Hey @davidveldt this should do it if you are using the default theme. Otherwise you should integrate as you see fit.

    theme/registration/register.php

    You can add any groups or fields as you require. The groups and fields here are arbitrary.

    ` ‘player’, 4 => ‘coach’, 5 =>’parent’, 6 => ‘instructor’); ?>

    $role) : ?>
    <div id="” class=”role-fields”>

    <label for="”>

    <textarea rows="5" cols="40" name="” id=””>

    <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="” />

    `

    Create some profile groups to cater for each role. You can find the group id within the BuddyPress admin… In the url bar or investigate your database.

    You should set-up the $roles array above to match your requirements.

    Within the loop you can show any fields you have created within that xprofile group. If you have a select box within that group you would add the following code as outlined in the bp-default register.php

    `

    <label for="”>

    <select name="” id=””>

    `

    Finally add the following jQuery where you house any other code of similar ilk.

    `
    jQuery(“.role-fields”).hide();
    $roles = jQuery(“#roles”);
    jQuery(“#field_2”).change(function()
    {
    $role = jQuery(this).val().toLowerCase();
    jQuery(“.role-fields”).hide();
    jQuery(“#” + $role).toggle();
    });
    `

    Here’s a pastebin for all that above. http://pastebin.com/QFdTdstz

    No need for tabs or accordion this time.

    Hope that helps you on the Road.

    #127484
    aces
    Participant

    I put it in bp-custom-php – actually it also worked in functions.php

    I’m not sure if you want the same functionality. Wrapping in `is_admin` was so that the following lines only worked on the admin pages. `remove_action` shouldn’t be necessary.

    The `define` line tells buddypress to use the wp adminbar. This adds the personal menu under your name like on this page and gets rid of some blank space under the menu bar. It also stops the buddybar being rendered (behind the WP admin bar – see WP bug mentioned above). I can not find a simple way to use the buddybar instead of the wp adminbar on the admin page – but I think that’s the way WordPress wants it to work…

    For the public facing side I have selected Hide admin bar for logged out users? so you only see the buddybar when logged in.

    What are you trying to achieve?

    Hi, Mercime. I am using Salutation by para.llel. us It has been recently revamped for use with Buddypress and I can see that many members seem to be doing fine. I am sure it is something I have done. I have changed only one setting under buddypress and that is ‘hide admin bar for logged out users’. I messed up initially on my pages set-up, so had to go back and re-install bp to get the permalinks working right. Now everything but this section works – it throws me out to google and says it is a broken link:

    Oops! This link appears to be broken.
    Suggestions:
    Go to http://www.­atlantagardening­forum.­com
    Search http://www.atlantagardeningforum.com for members admin settings general

    I will try switching back to bp default and see what happens.

    #126509
    mrshow
    Member

    anyone found a solution to this having same issue of users being considered blog owner in buddypress multisite setup. admin bar says my sites
    mainsite.com
    actuallsite.com -> user registered

    Mainsite does not belong to user how i get rid of link on bar and profile as it does this for all users.

    Sameera
    Member

    Thanks for your reply. I don’t mind editing home.php because I’m doing it in my theme file. I’ve figured out a way to prevent the friends tab to other users. Just trying to figure out the way it’s done for messages, so that I’m not reinventing anything.

    modemlooper
    Moderator

    Just read you don’t want to edit home.php. There isn’t a filter for privacy like there is with messages for showing profile sections. Messages and xprofile fields has logic for output and can be filtered but the actual page needs a code edit.

    modemlooper
    Moderator

    Install BuddyPress Profile Privacy plugin

    #124887
    Nahum
    Participant

    removing the button from the groups index page alone will not stop your members from being able to create groups…

    have you seen this…to limit group creation to admins

    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/limit-group-creation-to-admin/

    If you just want to hide the button…maybe something like

    `<?php if (is_user_logged_in() && current_user_can('administrator')):?>
    your button stuff
    `

    #124774
    @mercime
    Participant

    @igotmore There’s also this other plugin for that plugin https://wordpress.org/extend/plugins/bp-ninja/

    #124737
    igotmore
    Member

    I tried your method, mercime, but I can’t get it to work, I only got the code on the top of my site :D

    #124736

    In reply to: Hide Admin

    igotmore
    Member

    I put the code in my Theme functions (functions.php)
    should i put it in buddypress/bp-activity/bp-activity-functions.php or ?
    I’m noob in codes & coding, but I really need this, so I hope someone will help me get it done :)

    #124735

    In reply to: Hide Admin

    igotmore
    Member

    Hey Magi182 I put that code in my functions.php and still no changes ? any other way?

    Using WP 3.2.1. & BP 1.5.1

    #122648
    Fee
    Participant

    this should work for excluding all super admins:

    `

      <?php while ( bp_members() ) : bp_the_member();
      if( !in_array( bp_get_member_user_login(), get_super_admins() ) ) {
      ?>`
    #121554
    Tahir Taous
    Member

    i tried to remove Viisit Radom Member, Random Group And Random Site from BuddyBar successfully, Here is link for you how to make changes, edit BuudyBar.
    http://www.funjog.com/learnbuddypress/2011/09/30/how-to-hide-visit-random-group-members-sites-menu-from-buddypress-buddybar/
    Hope this will help.

    #120091
    modemlooper
    Moderator

    You need to clarify more, you can just re enable the groups component in the admin. if the hide the create button try going to the URL /groups/create

    #118172
    Whitefox
    Member

    OK so I’ve had the same problem and have built a very clumsy workaround.

    PROBLEM: When the user click the email verification it sends them to verify.php and logs them in to WP but my Buddypress doesn’t know they are logged in and asks them to login. If the user just ignores the login request there is no problem but users don’t do that so they try to login and get the same “error..please provide a valid activation key” message because the account is already active.

    MY RUBBISH ANSWER: The only thing that worked for me was to hide the BP admin bar and handle login links manually then change the text on the verify.php to a simple ‘congratulations, you’re in’ message. The downside of this is that I lost the use of my BP-Sliding-Login-Panel which I love. so I would be very grateful for a real solution to this.

    #117943

    In reply to: remove admin-bar

    valuser
    Participant

    define(‘BP_DISABLE_ADMIN_BAR’, true); + Hide admin bar for logged out users NO works

    #117607

    In reply to: Hide Admin

    Ducky
    Participant

    There is one problem with that solution, it does not hide the user from groups

    #117606

    In reply to: Hide Admin

    Ducky
    Participant

    The reason chaging the users status to 99 will hide them is because it marks the user as a spammer. Which means only an admin can view their profile. However, thus far it has been the only way I have been able to accomplish the task of hiding the administrator.

Viewing 25 results - 451 through 475 (of 690 total)
Skip to toolbar