Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Hide Admin'

Viewing 25 results - 426 through 450 (of 915 total)
  • Author
    Search Results
  • #174709
    pjbursnall
    Participant

    Thanks 🙂

    #174708
    pjbursnall
    Participant

    Thanks again Matt, I’ll have a look tomorrow. My previous point is the BP doesn’t work ‘out the box’ when you move onto mobile/tablet. Something of a failing.

    Thanks,
    Paul.

    #174707
    mattg123
    Participant

    @pjbursnall , I wouldn’t say that it is pretty easy here

    <?php global $current_user;
    		get_currentuserinfo();
    		$display = $current_user->display_name;
    		$login = $current_user->user_login;
    		$userid = $current_user->ID;
                    $home = get_home_url();
    ?>

    add that above your custom drop-down then its pretty simple just echo out the username, url etc <li class="li-fourth"><a href="<?php echo $home . '/members/' . $login . '/activity/mentions'; ?>">Mentions</a></li>

    EDIT –

    Oh the other bit you’d have to google for is the avatar but here
    <?php echo bp_core_fetch_avatar( array('item_id' => $userid, 'type' => 'full', 'width' => 100,'height' => 100));?>
    You’ll want to adjust the width/height accordingly

    #174705
    pjbursnall
    Participant

    Hi Matt,

    I have no issue creating a drop-down menu, the other side is a little trickier when you don’t know php, but I’ll have a good read.

    Seems BP is not as straightforward as it’s made out to be.

    Thanks,
    Paul.

    #174704
    mattg123
    Participant

    @pjbursnall yeah that code replicates the notification element only (the only part that is somewhat confusing to replicate) you place the code in the plugins directory in bp-custom.php you may have to create the file yourself.

    http://stackoverflow.com/questions/9953482/how-to-make-a-pure-css-based-dropdown-menu – shows you how to create a drop down menu, https://codex.wordpress.org/Function_Reference/get_currentuserinfo get the current users info so you can create links to their profile pages, etc.

    Just a note, to add the notifcations to your custom bar your code will look something like <li><?php bp_notification_badge(); ?></li>

    #174703
    pjbursnall
    Participant

    Hi Matt,

    Thanks for the quick reply. Agreed on the admin bar, seems kind of lazy to me in it’s current form. Please excuse my ignorance but where do I place the above? My theme’s functions.php? And will that just handle the notifications element?

    I’d like to find a proper fix for this as on some devices BP is completely unusable.

    Thanks again,
    Paul.

    #174702
    mattg123
    Participant

    @pjbursnall Personally I think buddypress should disable admin access anyway as most users don’t want it but that is neither here nor there. Recreating the admin bar is pretty easy, you need to know some css, html and a few bp functions to get the current users details like username etc, as for the notifications @modemlooper or @mercime posted this a while back (my apologies for not remembering which).

    function bp_notification_badge() {
    	if ( is_user_logged_in() ) {
    	global $current_user;
    	get_currentuserinfo();
    			$notifications = bp_core_get_notifications_for_user( bp_loggedin_user_id() );
    				if ( empty($notifications)) {
    				echo '<li class="li-first" id="li-first-right"><a href="' . get_home_url() . '/members/' . $current_user->user_login . '"><span class="circle-zero">0</span></a><ul class="second-level" id="second-level-right"><li class="li-second"><a href="' . get_home_url() . '/members/' . $current_user->user_login . '">No new notifications!</a></li></ul></li>';
    				} else {
    						echo '<ul class="second-level" id="second-level-right">';
    					$counter = 0;
    						for ( $i = 0; $i < count($notifications); $i++ ) {
    						$badge = count($notifications);
    						echo '<li class="li-third">'.$notifications[$i].'</li>';		
    						}
    				echo '</ul>';
    				echo '<a href="' . get_home_url() . '/members/' . $current_user->user_login . '"><span class="circle-badge">'.$badge.'</span></a>';
    			}
    	}
    }

    As for actually disabling the admin bar + backend that can be done with a plugin, plenty of them just google.

    #174701
    pjbursnall
    Participant

    Hi,

    Very new to Buddypress so this may have already been answered. Can you tell me how BP is workable from mobile portrait orientation? I suspect the answer is that it’s not by default since the WP admin bar will not resize to fit. And neither does the WP Dashboard once you’re in there. That’s not good from a user perspective.

    The ideal solution for me would be to hide both the admin bar and panel from all users (except admin). What I can’t find is a way to make all the functionality of the BP drop down menu available in either a custom menu, or a widget.

    Is there a way I can add all functions of BP to the front-end? Then my theme will handle the responsive issues, and users won’t need to see admin areas they shouldn’t really see at all.

    Thanks,
    Paul.

    #174519
    Martyn_
    Participant

    * Better options for users to self delete

    Expanding. Without backend access, it would be nice for a site allow a user to delete in several ways. Purge all their profile fields and networks (‘destroy all personal data’), Retain their profile fields and networks whilst making it look like they have vanished (‘hide’ if you like), Delete Uterly.

    * Multiple networks. We have friends, and with plugins one sided friendships (aka followers). sometimes its useful to have different types of relationships identified – “close friends” or “have done business with” or “merely online buddies”. It would be nice for an admin to be able to define additional types of friendships either independently, or by associating a scale (an integer valued friendship, 1=I want to see your feed stuff 2=online mates 3=actual real life chums 4=we’re married).

    #174199
    MatejR
    Participant

    Good day to you all.
    I hope this is the correct forum to ask if you have an idea and how this could be done.

    I would love to make a social network for our university, since i’m viewing it from a student perspective and would like to make it bather.

    So here is the idea of the social network.

    Basic Idea

    The webpage should represent the;
    • University: What classes it provides, it’s laboratories, activities, Schedules for the classes, basic information and contacts, add new student jobs at the laboratories or other projects, add new teacher jobs, make donation pledges at the existing partners, add partners.
    • Teachers: Create new classes, projects, groups of interests (connect to the similar projects), presentations, change schedule of classes, give points for projects done, connect to the partner organizations (businesses) that want to sponsor the labs.
    • Students: Create profile, follow a class, create subgroups under the labs or classes for additional help to other students or participants in that group, get feedback from a class for further validation for university, add students groups and projects, connect student projects.
    • University admin: Edit the university profile (aka template), allow or delete projects, add new student or teacher (for further cases if more universities would join).
    • Web page admin: monitor the whole process, able to add new universities.
    • Partner organization: see the development of the laboratory or class and can make donations.

    Common webpage tools

    The webpage should have a home page on which you can log in.
    Based on the login you can first create a profile, if you already have a profile it should automatically “drive” you to your profile, from where you can depending of your status (teacher, student, …), choose what you want to add.
    Support forum based on the login you have access to the groups.
    Add skype or similar tool for each user.
    Add classic chats to groups and profiles.
    Each user should receive its own e-mail address.
    In each group it should be able to add a comment or a document.
    Each group could have a sub group (Medicine = main group, side effects = sub group of the Medicine). The sub group should be able to be password protected not only by university admin, but by the participants of that group itself. Also if possible to be able to hide it from the sub group menu.
    Each profile + group = able to add text, movies, links, photos (possibly by choosing it’s template).

    Profile options:

    University: accept or deny new classes, class schedules, laboratories and add them on the calendar, add new teachers or students, once the students finished the studies it can move them to a club where they can see all the classes and lab projects but can’t add new things in it, except comment or support it.
    Teachers: Create new classes or Laboratories, add students to the classes or laboratories, evaluate students work and give him credits, connect to similar groups and search for them based on the group or laboratory entry words (group name + what kind of class is it aka. Mathematics, Coding ect.). Check plans for the classes they have and change if needed. Have access to the businesses that might be interesting for them via sponsor data base, add students to groups and laboratories.
    Students: Create new student group, search for students with similar needs and experience for working together on projects, give an evaluation of a class after they finished the class.
    University admin: Allow to give passwords on some groups and change them, and all mentioned up.
    Web page admin: See all the information
    Business profile: Add company information and interests (for teachers, students and universities to see, follow a project, donate to a laboratory), add student jobs.

    I won’t ask much more, but the project in my mind, how would you make it? And what would you choose.

    #173730
    nyodulf
    Participant

    I’m experimenting with WP v3.7.1 and BP v1.8 on a local computer (so no site link – sorry).

    I’m trying to create a service request tracking system that would depend on groups, their members and their members’ posts being completely invisible to each other.

    Two issues I have come across so far are:

    1. Members are visible to each other even if their groups are hidden
    2. Posts and custom post types created by members are visible to members of other groups in the admin

    Is it possible to get the kind of isolation I am looking for?

    If so, I would be grateful if someone could point me in the right direction, as I am not very familiar with buddypress.

    #172524
    JLent.
    Participant

    I am using the latest WordPress and Buddypress and I have just switched hosting accounts and now I am getting this message at the top and bottom of my site:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘hide_admin_bar’ not found or invalid function name in /home/content/72/11896772/html/wp-includes/plugin.php on line 173

    After deactivating and reactivating all of my plugins I found Buddypress the culprit. When looking in my FTP client the file is there. How can I fix this? Thanks in advance.

    #172517
    JLent.
    Participant

    Hello,

    I just switched hosting and have been going through a lot of bull to get this over with and now I am seeing this when the BuddyPress plugin is activated :

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘hide_admin_bar’ not found or invalid function name in /home/content/72/11896772/html/wp-includes/plugin.php on line 173

    It appears at the top of my site and only comes up when I re-activate BuddyPress. I have deactivated every plugin and then reactivated them one by one and BP is the culprit.

    Any suggestions? Thanks in advance.

    #172349
    robotnjik
    Participant

    I have similar request. We would like to exclude admins from groups. We set that only admins can create groups and now all groups have admin for a member. It is ok to have admin activity listed but we would like to hide admins from member listings on group pages. Is this code or part of code work on BP 1.8.1.?

    #172035
    martinbeaulne
    Participant

    If i hide the bottom tabs and the admin bar, each user can’t modify their profile.

    #171870
    shanebp
    Moderator

    Re your rebuild of the ajax_querystring…
    It’s even better to remove yourself before that query is constructed.
    Take a look at this hook: bp_pre_user_query_construct

    Re remove group admin from loop…
    That’s a tough one.
    I recall not being able to do that or that the consequences were too ugly or some fail.
    This is kinda of clunky – but sometimes I create a dummy user for use in those situations.
    And make it clear in that profile that you aren’t a member of _____.
    It gives you a ‘mask’ to wear and makes it easier to compartmentalize friend requests, etc.

    #171793
    #171569
    geoffreysf
    Participant

    Putting this in the functions or bp-custom.php files did not work.

    I finally managed to get the admin and any other user excluded from the members directory by modifying the bp_had_members query that was already in my members-loop.php file.

    <?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ).’&exclude=1,3,25′ . ‘&type=alphabetical&per_page=30’ ) ) : ?> <!– &exclude= user_ids of the people you want to exclude –>

    By adding just this, it also removed the users from the total members count.

    Note: I do not use friends or activity feeds on my site, so I have no idea if it hides from them, but I suppose it wouldn’t.

    I have been looking high and low for the answer to this with my limited PHP knowledge… and wanted to share it back so other people could learn from it too.

    And credit where it is due, this post led me to the answer.
    https://buddypress.org/support/topic/member-parameters-not-working-with-bp_ajax_querystring/

    #171568
    geoffreysf
    Participant

    This helped me immensely while trying to hide the admin user from the member’s directory.

    Thank you!

    #171379
    mayabi
    Participant

    Hi everyone,

    i’m using Buddypress as an alumni where the username is the person’s ID number. The problem is that i don’t want ANYONE but the administrator to see someone’s ID (username).

    Is there a way to hide this information from members? The username is showing on the profile pages (i managed to remove it from the display, but it stays at the permalink).

    I thought about adding a field to the users form called “id number” but the problem is that i want to register everyone upfront with their ID’s so they don’t have to register, just login with their ID and password, which means the username would have to be the id number…

    Any suggestions would be much appreciated!

    Thank you,
    Maya.

    #171233
    Ben Hansen
    Participant

    you can’t really hid the entire profile out of the box but you can hide most of the fields and info by setting the default visibility in the profile field setup screens.

    #170759
    therandomguy12345
    Participant

    @philipstancil
    @bphelp

    I want to hide specific users from the “(BuddyPress) Recently Active Members” & “(BuddyPress) Members” widgets (latter one is most important for me), but I don’t want these users from the members directory. So what does the below code exactly do? Does it exclude users from members directory or the widgets? Or both?

    <?php
    // Remove admin from directory
    
    add_action('bp_ajax_querystring','bpdev_exclude_users',20,2);
    function bpdev_exclude_users($qs=false,$object=false){
     //list of users to exclude
     
     $excluded_user='1';//comma separated ids of users whom you want to exclude
     
     if($object!='members')//hide for members only
     return $qs;
     
     $args=wp_parse_args($qs);
     
     //check if we are listing friends?, do not exclude in this case
     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;
     
    }
    
    //Remove admin from member count
    
    add_filter('bp_get_total_member_count','bpdev_members_correct_count');
    function bpdev_members_correct_count($count){
    $excluded_users_count=1; //change it to the number of users you want to exclude
    return $count-$excluded_users_count;
    }
    ?>
    #170721

    In reply to: hide members

    @mercime
    Participant

    @famous You can limit who views the members directory page to the Site/Super Admin only by surrounding the members directory section using is_super_admin https://codex.wordpress.org/Function_Reference/is_super_admin then either echo message that the section is restricted or just redirect non-Admin users to another page if visitors try to use the members slug in your site.

    #170218
    mbraam
    Participant

    Hello,

    For a couple of weeks I work with this great plugin Buddypress, but I want to change some things or looking for some options but I cant find where. I hope someone can help me out.

    1. Registration page
    At our registration page, I wan`t a simple option agree or disagree.
    If I make that option in the profile on (basic) it is visible on the registration page but also when you edit you own profile. So how can I hide it on the profile page?

    2. Profile
    – Is it possible for me as a admin or moderator to edit an other profile, because I can`t find that option. If I look it up in the admin the “custom” field are not visible, I see the basic fields from WordPress profile.
    – Some fields you have to enter in the registration page but later not in your profile. For example every user gets an code by email they have the enter that code after that only we admins and mods can edit that code.

    3. Groups
    On the group page I want to make an custom group page. That worked, but now I want on the right side an widget where you can search for a specific group even for this I searched but now right plugin 🙁

    I know I ask allot but if someone can help me out with these things I much appreciate it.

    Friendly regards,
    Michael

    #170209
    webheadcoder
    Participant

    I have a request to not depend on the ‘bp_xprofile_visibility_levels’ user meta setting in order to hide fields. Or simply add a hidden input explained in the workaround. Here is why:

    I developed a private membership site so naturally I wanted to disallow the ‘public’ visibility setting. I added something like:

    function myfunction($levels) {
        unset($levels['public']);
        return $levels;
    }
    add_filter( 'bp_xprofile_get_visibility_levels', 'myfunction');

    This caused a chain reaction to show all fields with an enforced visibility.

    I have a Mobile Phone field along with several others to be forced to be ‘adminsonly’. So there is no form input (radio buttons) to switch the visibility. BuddyPress checks _POST[‘field_123_visibility’] and if there is no post field, the default visibility is ‘public’. Then BuddyPress checks for the allowed visibilities. Since i took out ‘public’, ‘public’ is not an allowed visibility and does not save the users’ visibility preference (in bp_xprofile_visibility_levels) . Because the user does not have a visibility preference saved for this field it is not checked to be hidden (bp_xprofile_get_fields_by_visibility_levels()). Since it’s not even considered to be hidden, it shows. This is where I’d like a change to the code. I don’t think it’s right to skip a field if it is not in the user meta.

    I’m not expert at BuddyPress so maybe unsetting the ‘public’ visibility setting is a big no-no. It just seems very strange that unsetting the ‘public’ visibility can cause ‘adminsonly’ fields to show publicly.

    My workaround for this is to just add a hidden field so that the usermeta is saved. in members/single/profile/edit.php I added the following:
    <input type="hidden" name="field_<?php bp_the_profile_field_id();?>_visibility" value="adminsonly">

Viewing 25 results - 426 through 450 (of 915 total)
Skip to toolbar