Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Hide Admin'

Viewing 25 results - 376 through 400 (of 915 total)
  • Author
    Search Results
  • #185851
    pstidsen
    Participant

    Hi danbp

    I have now inserted all of your code in functinos.php, but the only place the admin user disappear is at the “All users”-page. The admin user still shows up at the group members pages and the front page where I have listed all members with the Bowe code plugin.

    I need to hide the admin from the entire site.

    #185723
    pstidsen
    Participant

    Hi

    I have just made this site: http://designerspace.dk/

    I want to hide the superadmin user/owner, webintas, from the member list at front page etc. The user should not appear at the front end at all. How is it possible?

    #185618
    danbp
    Participant

    @ganzuelo

    scrolling down the member page provides a funny elastic effect ! 😉 Really cool, but not what you want of course.
    I disabled js on the browser and the effect disapeared immediatly.
    So i think there is a js conflict, probably with some of your theme’s script.
    check for the elements
    `<div class=”col span_3>
    <a>
    <img alt=”Foxtrot Tango” /> `

    You mention salient to be your theme but the source code indicates castle ? Did you rename it for a child theme usage ?
    Some script don’t support this…

    You use also a plugin to remove the admin bar.

    <!--Plugin Global Hide Admin Tool Bar 1.6.1 Build 2014-04-16 Active --->
    <!-- This website is patched against a big problem not solved from WordPress 3.3+ to date -->

    Huh ?

    Don’t know if the second comment belongs to that plugin, but if yes, WP is currently in 4.0 phase, so a 3.3 “problem” maybe solved.
    Google to find a simplier solution to remove the toolbar. There is also a easy and light solution in on the WP codex.

    add_filter('show_admin_bar', '__return_false'); in theme’s function or bp-custom.php would do the job on front-end !

    Don’t use a hammer to kill a fly ! 😉

    #185464
    jejemo
    Participant

    Thanks for you help !

    Actually I hide the admin bar on my pages. That’s the reason why I’m trying to build the exact same menu on another navigation bar.

    I feel like it is a bug because here, it says that :

    $bp->bp_nav “is the array used to render each component navigation menu item for the logged in user”

    and

    $bp->bp_options_nav “is the array used to render all of the sub navigation items for the $bp->bp_nav array”.

    Actually I feel like I’m having the result of $bp->bp_users_nav.
    Because it “is the array used to render each component navigation menu item for the displayed user (when you view a user that is not you).”

    What do you guys think ?

    @mercime
    Participant

    or have I somehow done something to hide it from non-admins?

    @fakename014 Either via some function in your custom theme or a plugin. To confirm which, change to the Twenty Fourteen theme and check if the adminbar shows up. If it still isn’t showing up, deactivate all plugins to check which one is causing the issue.

    fakename014
    Participant

    Hi,

    I have a custom theme for Buddypress. Currently the WP admin bar shows for admin users, but no others.
    I would like all users to be able to use the admin bar so they can access their activity, notifications, settings etc

    Is this normal for Buddypress to only show the admin bar to admins? or have I somehow done something to hide it from non-admins?

    It’s not a theme problem because I tried it with other themes and had the same problem.

    Can anyone help?

    Info:
    Wordpress 3.9.1
    Buddypress 2.0.1
    bp-custom.php –> 2 redirect functions for login and logout
    lots of plugins
    Local dev running on MAMP

    #184252
    nirgalo
    Participant

    Hi, I wanted to also hide admin from the “last activity” widget. I did an override of bp-core/bp-core-widget.php in my theme but it was not taken into account. However if I directly modify bp-core-widget.php in the BP plugin directory, then in works. Too bad the override doesn’t work, I guess I need to create my own widget…

    #184166
    nirgalo
    Participant

    Thanks mercime. However what I’d like is to hide the admin from the Members page only but not disable its activity, as sometimes it needs to post a few notes.

    #184164
    @mercime
    Participant
    #184144
    nirgalo
    Participant

    Hi, I want to hide the admin activity in BP 2.0.1 *without* modifying BP code (I can modify functions.php of my WP theme). I have seen some threads discussing this but this was for BP 1.6. Also there seem to be some plugins but they are damn old.

    By hiding admin activity, I mean:
    – not display it
    – potentially not log it (but not necessarily, could be optional).

    Thanks for your suggestions.

    Famous
    Participant

    Correct Procedure to hide content and make it only viewable by the admin?

    #183895
    Netz
    Participant

    Hi!
    Ehhh any functions.php ?? Themes, BP or in a specific folder?

    Running WP 3.9.1 and BP 2.0.1

    I also want to remove “HOME” in BP
    So the result should be first MENU Item is “FORUM” then “MEMBERS” “SEND INVITATIONS” and “ADMIN” (for admins only)

    As default the menu is :
    “HOME” then “FORUM” then “MEMBERS” “SEND INVITATIONS” and “ADMIN” (for admins only)

    But users that get’s in at the “HOME” level post messages thinking they are posting in the FORUM…? So that is why I want to hide it or take it off!

    Hope this solution works – But are unsure where to stick it… 🙂

    Best regards

    Nets

    #183799
    dromy
    Participant

    Did you succeeded?

    I would like to hide the admin option panel (profile and view) when the user is not the owner of the profile.

    can you advice?

    #183554
    asianowl
    Participant

    after a shower — it came to me that I should just hide the menu item in CSS with the following:
    #wp-admin-bar-my-account-activity{display:none;}

    But this hides it from everyone… does anyone else have a better idea?

    asianowl
    Participant

    I have a website where members are registered with one of two roles. For one of the roles, I want to hide the ‘activity’ component. I was able to remove the component for the user navigation menu using bp_core_remove_nav_item( 'activity') but the link still shows up in the admin bar.

    Could you someone please help point me in the right direction? I need to hide the ‘activity’ component from user with role A and leave it as is for user with role B.

    I tried $wp_admin_bar -> remove_menu('activity') but it didn’t work.

    Thank you!

    Iurie Malai
    Participant

    @danbp, I know how to check for errors, but this didn’t helped me too much :). I solved with the blank page, but no more. Your solution works for hiding some xProfile tabs from viewing, but not from editing them. Am I wrong? Sorry!

    This is my tested function (as I said, it hiding only from viewing, not from editing):

    
    function flegmatiq_profiles( $retval ) {
    
       if ( is_user_logged_in() && !bp_is_profile_edit() ) {
          $myfield = xprofile_get_field_data( 'User Type' );
          if( $myfield == "Faculty" ) {
             $retval['exclude_groups'] = '2';
    	 //$retval['exclude_fields'] = '6,18,39';
          }
       }
    
       return $retval;
    
    }
    
    add_filter( 'bp_after_has_profile_parse_args', 'flegmatiq_profiles' );
    

    The next code works as I need, but I think it is not so elegant, and it not allow to use the group ID, only his order number, as ordered by admin:

    
    function hide_profile_group_tabs_from_editing( $group_names ){
    
       if ( is_user_logged_in() && bp_is_profile_edit() && xprofile_get_field_data( "User Type") != "Faculty" ) {
          for ($x=0; $x<=sizeof($group_names); $x++) {
             if ( $x != 3 ) echo $group_names[$x]; //3 is the order number (from 0) of the tab that I need to hide in the profile edit page. This is not the group ID.
          }
       } else {
          return $group_names;
       }
    
    }
    
    add_filter('xprofile_filter_profile_group_tabs', 'hide_profile_group_tabs_from_editing');
    
    #183332
    amckinnell
    Participant

    Hi Henry, here is the contents of that window:

    Request URL: http://photoforte.com/wp-admin/admin-ajax.php
    Request Method: POST
    Status Code: HTTP/1.1 200 OK
    Request Headers 12:51:58.000
    X-Requested-With: XMLHttpRequest
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:29.0) Gecko/20100101 Firefox/29.0
    Referer: http://photoforte.com/activity/
    Pragma: no-cache
    Host: photoforte.com
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    Content-Length: 97
    Connection: keep-alive
    Cache-Control: no-cache
    Accept-Language: en-gb,en;q=0.5
    Accept-Encoding: gzip, deflate
    Accept: application/json, text/javascript, */*; q=0.01
    Sent Cookie
    wp-settings-time-10: 1398959694
    wp-settings-10: libraryContent=browse&editor=html&wplink=1&urlbutton=none&imgsize=full&align=center&hidetb=1
    wordpress_test_cookie: WP+Cookie+check
    wordpress_logged_in_0226a87af55d37f15c17099beebb5b87: amckinnell|1402256837|5ccb9ec3cbdec1dc82a94b7ed790dd41
    wordpress_0226a87af55d37f15c17099beebb5b87: amckinnell|1402256837|5b043d1b070ce3f02b6457a112bdfd6a
    s2member_tracking: fnIyOk5PVFdEQUJGSk9CeFBsZ2NMV3BiN2Rna3hMQUw0aTZzOmI3ZmEwNjU4NTQ2MGE0OWNiZDlmYTJhZGE2OTIyNDQzfEKGYUXbL9qRK4qkpq9Olm8qeZTiTkNtW3IJQea7fc4a
    PHPSESSID: d3jd0dp456hmi7p57ib09rrku7
    bp-activity-oldestpage: 1
    __utmz: 82912087.1400555092.174.6.utmcsr=Photo Forté Members|utmccn=7ce74da5f7-2014_May_Lesson_Week_3|utmcmd=email|utmctr=0_76b17b8542-7ce74da5f7-
    __utmc: 82912087
    __utmb: 82912087.7.9.1401047433231
    __utma: 82912087.1423870743.1397575542.1400993272.1401047233.201
    Response Headers Δ1626ms
    X-Robots-Tag: noindex
    x-frame-options: SAMEORIGIN
    x-content-type-options: nosniff
    Transfer-Encoding: chunked
    Server: Apache
    Pragma: no-cache
    Keep-Alive: timeout=5, max=85
    Host-Header: 192fc2e7e50945beb8231a492d6a8024
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Date: Sun, 25 May 2014 19:51:50 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: Keep-Alive
    Cache-Control: no-cache, must-revalidate, max-age=0

    About your other questions, it is a total custom theme, but I haven’t made any changes to it for weeks and this problem just cropped up a couple of days ago. I know for sure it just started because I use that load more all day.

    It’s difficult for me to answer the question about whether it happens in the default theme because I don’t want to change my live site because people are using it, and when I create a staging site, the load more button works in the current theme. I cannot understand why the problem only exists on the live site and not the staging site. I am creating the staging site when I am seeing the issue, it only takes a couple of minutes to create it, it’s on the same server, but the load more button works there.

    Thanks again for your help.

    #183144
    dugfunny
    Participant

    http://www.imagebam.com/image/d782b2327727553

    When i click on a post off of my activity wall, it looks like this. I’m sure it’s a css issue but i cant figure it out. below is my child style.css , can anyone help? Thanks!

    */
    /*
    * Please add your custom styles below
    */
    /*Hide Activity Page Filter Choice Drop Down Bar*/
    #activity-filter-select {
        display: none;
    }
    
    /*Make crop avatar square into a circle*/
    #avatar-crop-pane { 
    	border-radius: 50%; 
    }
    
    /*Raise Send Message and Go To Top Buttons To Make Room For ChatBar*/
    .kleo-quick-contact-link {
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 3px;
        display: block;
        margin-bottom: 4px;
        padding: 12px 14px;
        transition: all 0.2s ease-in-out 0s;
    }
    .kleo-go-top {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
        bottom: 25px;
        opacity: 0;
        padding: 12px 14px;
        position: fixed;
        right: -60px;
        transition: all 0.2s ease-in-out 0s;
        z-index: 100;
    }
    
    /*ChatRoom*/
    #post-35 {
    	border: solid !important;
    } 	
    
    /*Remove Groups Option*/
    #groups-list-options {
    	display: none;
    }
    
    /*Remove Favorites*/
    .button.fav.bp-secondary-action {
        display: none;
    }
    #activity-favorites {
    	display: none;
    }
    
    /*Remove User and Photo Above Update Box*/
    .activity-greeting {
    	margin-left: 1px !important;
    }
    
    /*Capitalize Group Titles*/
    .item-title > a {
        text-transform: uppercase;
    }
    
    /*Remove Whats New Avatar */
    #whats-new-avatar {
    	display: none !important;
    }
    
    /*Remove Forum Author Footer */
    .bbp-footer {
    	display: none;
    }
    
    /* Align Group Widget Titles */
    .item-title {
    	margin-top: 31px;
    }
    
    /* Group Body Adjusting*/
    .template-page.col-sm-6.col-sm-push-3.tpl-3lr {
        padding-top: 0;
    }
    
    /* Remove Top Total Group Count*/
    #pag-top {
        display: none !important;
    }
    
    /* Remove Top Total Group Count Small*/
    #groups-all span {
        display: none !important;
    }
    
    /* Remove Top All Groups Text*/
    #groups-all {
        display: none;
    }
    
    /* Logo Adjusting*/
    .navbar-header:before, .navbar-header:after {
        padding-top: 15px;
    }
    .navbar-header .logo {
    	margin-left: -22px;
    }
    
    /* Search Knowledge Base Logo Alignment */
    .widget form#bbp-search-form .button {
        margin-top: 3px;
    }
    
    /* Sidebar Adjusting*/
    .inner-content {
        margin-top: -52px;
    }
    
    /* Remove Bottom Of Header Border*/
    .container-wrap.main-title.alternate-color.border-bottom {
        display: none;
    }
    
    /* Login Widget White Text*/
    #bp-login-widget-form {
        color: white;
    }
    bp-login-widget-user-login {
        color: white;
    }
    bp-login-widget-submit {
        color: white;
    }
    .input {
        color: white;
    }
    
    /* Answers Search Bar Resizing and Alignment*/
    .dwqa-search-input {
        margin-left: 856px !important;
        width: 35% !important;
    	height: 50px !important;
    }
    
    /* Answers Question Bar Resized*/
    #question-category {
        width: 75%;
    }
    
    /* Answers Gray Bar Made White*/
    .kleo-page {
        background: none repeat scroll 0 0 #FFFFFF;
    }
    
    /* Answers Body Resize and Align*/
    #dwqa-submit-question-form {
        margin-left: 20%;
        margin-top: 3% !important;
        width: 60% !important;
    }
    
    /* Remove P In Answers Footer*/
    #mce_55 {
        display: none;
    }
    
    /* Answers Search Bar Icon Alignment*/
    .dwqa-search-submit.fa.fa-search {
        margin-right: 15px;
    }
    
    /* Answers Search Bar Background Color*/
    .dwqa-search .dwqa-search-form {
        background: none repeat scroll 0 0 #FFFFFF;
    }
    
    /* Resize Question Category Box*/
    #question-category {
        height: 31px;
    }
    #question-tag {
        height: 31px;
    }
    
    /* Line Beneath Answers Search Bar Removal*/
    .filter-bar {
        border-top: 0 none !important;
    }
    
    /* Line Beneath Header Removal*/
    .kleo-main-header {
        border-bottom: 0 none !important;
    }
    
    /* Groups Subtext Alignment*/
    #groups-list-options {
        text-align: center;
    }
    
    /* Remove Bottom Total Group Count*/
    #group-dir-count-bottom {
    	display: none;
    }
    
    /* Remove All Members Count On Profile*/
    #activity-all span {
        display: none !important;
    }
    
    /* Remove Forum Meta Info*/
    .bbp-topic-started-by {
    	display: none;
    }
    .bbp-topic-freshness {
    	display: none;
    }
    .bbp-topic-voice-count {
    	display: none;
    }
    .bbp-topic-reply-count {
    	display: none;
    }
    .bbp-reply-author {
    	display: none;
    }
    .bbp-topic-author {
    	display: none;
    }
    
    #bbp-topic-revision-log-464-item-465 {
    	display: none;
    }
    
    /* Remove All Members Count On Profile*/
    #members-all span {
        display: none !important;
    }
    
    /* Center Widget Titles*/
    .widget-title {
        text-align: center;
    }
    
    /* Remove All Members Count On Members Page Top*/
    #member-dir-count-top {
        display: none;
    }
    
    /* Remove All Members Count On Members Page Bottom*/
    #member-dir-count-bottom {
        display: none;
    }
    
    /* Logo Resize*/
    .navbar-header .logo {
        float: left;
        height: 88px;
        overflow: visible;
        width: 286px;
    }
    
    /* Forum Header Removal */
    .bbp-header {
        display: none;
    }
    
    /* Forum Center Text and Photo */
    .bbp-reply-content {
        margin-left: 18px !important;
    }
    
    /* Time Last Logged In Removal */
    .item-meta {
        display: none;
    }
    
    /* Chatroom timestamp gone */
    .quick-chat-history-timestring {
        display: none;
    }
    
    /* Ask Question Body Dropped */
    #submit-question > form {
        margin-top: 45px;
    }
    
    /* Answers Title Removal */
    .dwqa-page-title {
        display: none;
    }
    
    /* Widget Avatar Size */
    .widget.buddypress div.item-avatar img.avatar {
        border-radius: 100%;
        float: left;
        height: 70px;
        margin: 0 8px 15px 0;
        width: 70px;
    }
    
    /* Testimonial Slider */
    kleo-testimonials {
        height: 30px;
    }
    
    /* WP Logo on admin bar */
    #wp-admin-bar-wp-logo {
          display:none;
    }
    
    /*Remove Smaller Numbers on Animated Counting Numbers on Homepage */
    .wpb_wrapper > p {
        display: none;
    }
    
    /*Dropdown Menu Alignment */
    .dropdown-menu.pull-left {
        margin-top: -3px !important;
        margin-left: 10px !important;
    }
    
    /*Username on profile Alignment */
    #item-header-content {
        margin-top: 5px;
    }
    
    /*Remove FORUM icon on profile */
    #user-forums {
        display: none !important;
    }
    
    /*Remove NOTIFICATIONS icon on profile */
    #user-notifications {
        display: none !important;
    }
    
    /*Remove last login on profile */
    #item-header-content .activity {
    	display:none !important;
    }
    #181494
    godavid33
    Participant

    *sigh*

    Of course, as soon as I post this, I find the problem.

    
    function my_hidden_activities($a, $activities) {
    	//if admin we want to know
    	//if (is_site_admin())
    		//return $activities;
    
    	$nothanks = array('activity_comment');
    
    	foreach ($activities->activities as $key => $activity) {
    		if (in_array($activity->type, $nothanks, true)) {
    			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', 'my_hidden_activities', 1, 2 );
    

    The above code causes this problem. The code is attempting to hide comments from appearing as their own activity stream items. Any suggestions on how I can hide comments from appear anywhere except for in the thread they are nested in?

    yoshimitsu1234
    Participant

    Is there any way i could hide profile fields i have created using “Profile fields” section of admin panel from registration page? I only want email, username and password fields in registration page.

    #181319
    godavid33
    Participant

    Solution: credit to @lincme on the post https://buddypress.org/support/topic/filtering-out-activity-stream-stuff/

    
    // Remove (hide) various activities from streams.
    function my_hidden_activities($a, $activities) {
    	//if admin we want to know
    	//if (is_site_admin())
    		//return $activities;
    
    	$nothanks = array('activity_comment');
    
    	foreach ($activities->activities as $key => $activity) {
    		if (in_array($activity->type, $nothanks, true)) {
    			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', 'my_hidden_activities', 10, 2 );
    
    #180939
    Li_J
    Participant

    Hello

    I have installed a buddypress forum plugin to my wordpress site, I want to set up a private/hiden user group for some members using buddypress group. After install buddypress, I am able to create a private group without any problems, but I couldn’t find a way to add members to this group. I have users listed on my main WordPress site. The registration for new users is desabled, because I want have only the admin to add/create new users, however, as the admin, I can’t find anywhere to add the users to the BP group as members.

    Please help.

    Li

    #180394

    In reply to: Disable admin bar

    Splendorito
    Participant

    I did find a plugin now that correct this easy.
    Global admin bar hide or remove

    Thank you anyway

    Best Regards

    #179910
    virtualgeorge
    Participant

    Would it be something similar to also hide Administrators from the members list?

    #179768
    agundabbo
    Participant

    Hi. I have created 3 custom fields(required) with BP.
    I use this modification
    while ( bp_profile_fields() ) : bp_the_profile_field(); if ( get_current_user_id()=#ADMIN ID OR bp_get_the_profile_field_id() != 'ID # YOU WANT TO SKIP' ) :
    to deny that user can change a specific field.
    But If a user try to change another field, I have an error that

    Please make sure you fill in all required fields in this profile field group before saving.

    If think it pops out because I hide a field, but how can i handle this?
    Regards

Viewing 25 results - 376 through 400 (of 915 total)
Skip to toolbar