Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Hide Admin'

Viewing 25 results - 501 through 525 (of 692 total)
  • Author
    Search Results
  • Ouch..It’s a rude way. The code just killing the admin bar, and lefting some space.

    #108125
    pcwriter
    Participant

    Thanks, but I think your last post was in answer to the last poster’s question in this thread:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/show-bp-admin-bar-while-in-wp-admin-only-and-hide-it-in-the-rest-of-the-site/

    `remove_action( ‘admin_footer’, ‘bp_core_admin_bar’ );` effectively removes the adminbar from the backend, but that’s not what I’m trying to achieve.
    I’m trying to replace the bp-adminbar with the WordPress adminbar in a Buddypress theme.

    Virtuali
    Participant

    Try in wp-config.php:

    `define ( ‘BP_DISABLE_ADMIN_BAR’, true );`

    imjscn
    Participant

    @pcwriter , can I use your code to remove adminbar from dashboard? I tried the following 3 modifications, neither of them works:
    `if( is_admin())
    remove_action( ‘wp_footer’, ‘bp_core_admin_bar’, 8 );`
    or
    `if( is_admin())
    remove_action( ‘admin_footer’, ‘bp_core_admin_bar’, 8 );`
    or
    `add_action(‘bp_loaded’, ‘remove_adminbar_from_dashboard );`

    nermion
    Member

    Hi how could I do the same for wp-admin area. Also I’d like to keep it on the rest of the site but remove it from the admin.

    pcwriter
    Participant

    @ri-kun

    Add the following snippet to your theme’s functions.php file:

    `function remove_adminbar_from_mainsite() {
    if(‘BP_ROOT_BLOG’)
    remove_action( ‘wp_footer’, ‘bp_core_admin_bar’, 8 );
    }
    add_action(‘wp’, ‘remove_adminbar_from_mainsite’);`

    ri-kun
    Participant

    please help

    ri-kun
    Participant

    please help

    mrwweb
    Member

    I’m not a rewrite expert or anything, but here’s the HTTP headers associated with the problem. I’ve replaced my domain with blah.com.

    A couple strange things that I see but can’t really explain. When requesting /forums, it looks like a 302 redirect is returned to the homepage (so maybe this is a rewrite issue). Going to “members,” which does work, returns the expected 200 code.

    Also, notice the really weird request to /contact/ after all of this is done. Is that normal? It’s just a random page on my site. It had previously been a different page which I tried deleting, so it was replaced by /contact.

    Hope this is useful to someone.

    `http://blah.com/forums

    GET /forums HTTP/1.1
    Host: blah.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive
    Cookie: __utma=67904087.2104826472.1298240908.1299086709.1299438067.4; __utmz=67904087.1299039613.2.2.utmcsr=blah.com|utmccn=(referral)|utmcmd=referral|utmcct=/wp-admin/; _jsuid=1445640004349204205; km_ai=xZrz-rlq1-TnxIBS08C09MbmgAM; km_uq=; km_lv=x; wp-settings-time-6=1299517360; wp-settings-6=m6%3Do%26m11%3Dc%26m10%3Do%26m7%3Dc%26m1%3Do%26m5%3Do%26m2%3Dc%26hidetb%3D1%26editor%3Dtinymce%26m8%3Dc%26m9%3Dc; bp-activity-oldestpage=1; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_541ce9876c2efbba8d8e77491d2f2b82=mrwweb%7C1299690125%7C336801dfabc56c0d1140b4bafdd989aa
    If-Modified-Since: Mon, 07 Mar 2011 17:07:50 GMT

    HTTP/1.1 302 Found
    Server: nginx/0.7.65
    Date: Mon, 07 Mar 2011 17:08:59 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Keep-Alive: timeout=10
    X-Pingback: http://blah.com/xmlrpc.php
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Last-Modified: Mon, 07 Mar 2011 17:08:59 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Pragma: no-cache
    X-Powered-By: W3 Total Cache/0.9.1.3
    Set-Cookie: bp-message=deleted; expires=Sun, 07-Mar-2010 17:08:58 GMT; path=/
    Set-Cookie: bp-message-type=deleted; expires=Sun, 07-Mar-2010 17:08:58 GMT; path=/
    Location: http://blah.com
    Vary: User-Agent,Accept-Encoding
    Content-Encoding: gzip
    Content-Length: 20
    X-Type: default


    http://blah.com/

    GET / HTTP/1.1
    Host: blah.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive
    Cookie: __utma=67904087.2104826472.1298240908.1299086709.1299438067.4; __utmz=67904087.1299039613.2.2.utmcsr=blah.com|utmccn=(referral)|utmcmd=referral|utmcct=/wp-admin/; _jsuid=1445640004349204205; km_ai=xZrz-rlq1-TnxIBS08C09MbmgAM; km_uq=; km_lv=x; wp-settings-time-6=1299517360; wp-settings-6=m6%3Do%26m11%3Dc%26m10%3Do%26m7%3Dc%26m1%3Do%26m5%3Do%26m2%3Dc%26hidetb%3D1%26editor%3Dtinymce%26m8%3Dc%26m9%3Dc; bp-activity-oldestpage=1; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_541ce9876c2efbba8d8e77491d2f2b82=mrwweb%7C1299690125%7C336801dfabc56c0d1140b4bafdd989aa
    If-Modified-Since: Mon, 07 Mar 2011 17:08:42 GMT

    HTTP/1.1 200 OK
    Server: nginx/0.7.65
    Date: Mon, 07 Mar 2011 17:08:59 GMT
    Content-Type: text/html; charset=UTF-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Keep-Alive: timeout=10
    X-Pingback: http://blah.com/xmlrpc.php
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Last-Modified: Mon, 07 Mar 2011 17:08:59 GMT
    Pragma: no-cache
    X-Powered-By: W3 Total Cache/0.9.1.3
    Set-Cookie: bp-message=deleted; expires=Sun, 07-Mar-2010 17:08:58 GMT; path=/
    Set-Cookie: bp-message-type=deleted; expires=Sun, 07-Mar-2010 17:08:58 GMT; path=/
    Vary: User-Agent,Accept-Encoding
    X-Cacheable: NO:Passed
    Cache-Control: max-age=0, must-revalidate
    X-Varnish: 1456974085
    Age: 0
    Via: 1.1 varnish
    X-Cache: PASS
    X-Type: varnish-short
    Content-Encoding: gzip


    http://blah.com/contact/

    GET /contact/ HTTP/1.1
    Host: blah.com
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive
    Referer: http://blah.com/
    X-Moz: prefetch
    Cookie: __utma=67904087.2104826472.1298240908.1299086709.1299438067.4; __utmz=67904087.1299039613.2.2.utmcsr=blah.com|utmccn=(referral)|utmcmd=referral|utmcct=/wp-admin/; _jsuid=1445640004349204205; km_ai=xZrz-rlq1-TnxIBS08C09MbmgAM; km_uq=; km_lv=x; wp-settings-time-6=1299517360; wp-settings-6=m6%3Do%26m11%3Dc%26m10%3Do%26m7%3Dc%26m1%3Do%26m5%3Do%26m2%3Dc%26hidetb%3D1%26editor%3Dtinymce%26m8%3Dc%26m9%3Dc; bp-activity-oldestpage=1; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_541ce9876c2efbba8d8e77491d2f2b82=mrwweb%7C1299690125%7C336801dfabc56c0d1140b4bafdd989aa

    HTTP/1.1 200 OK
    Server: nginx/0.7.65
    Date: Mon, 07 Mar 2011 17:09:00 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    Keep-Alive: timeout=10
    X-Pingback: http://blah.com/xmlrpc.php
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Last-Modified: Mon, 07 Mar 2011 17:09:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Pragma: no-cache
    X-Powered-By: W3 Total Cache/0.9.1.3
    Set-Cookie: bp-message=deleted; expires=Sun, 07-Mar-2010 17:08:59 GMT; path=/
    Set-Cookie: bp-message-type=deleted; expires=Sun, 07-Mar-2010 17:08:59 GMT; path=/
    Vary: User-Agent,Accept-Encoding
    Content-Encoding: gzip
    Content-Length: 3081
    X-Type: default`

    #106030

    In reply to: Hide Admin

    CleboMa
    Member

    @Symm2112, thank you as well for the ’99’ trick.

    #105438
    jordynn
    Member

    Thanks @pcwriter! (and @mariochampion!)

    That piece of code solved my issue! It has removed the “notifications” subnav from the “My Account” adminbar menu too.

    :D

    Edit: It seems to only remove the “Notifications” subnav in the “My Account” adminbar menu when I’m looking at the …/members/admin/settings/ page

    #105427
    pcwriter
    Participant

    OK, I’m hoping someone else can chime in here with a way to remove the “Notifications” subnav item from the “My Account” adminbar menu, ‘cuz that’s one I haven’t been able to figure out :-(

    #105423
    jordynn
    Member

    @pcwriter

    Thanks for your quick reply!

    This worked perfectly to remove the ‘Notifications’ link in the admin bar. However, I’d like to be able to remove the ‘Notifications’ tab where the member edits their profile and settings.

    This is a better screen shot: http://jordynnmackenzie.com/koperscastle/wp-content/uploads/2011/02/screenshot_bpissue2_feb142011.jpg
    I want to hide the tab that is marked in red.

    #105419
    pcwriter
    Participant

    @jordynn

    Add the following remove_action to your functions.php or bp-custom.php file:

    remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_notifications_menu’, 8 );

    #104908

    In reply to: buddypress.org theme

    pcwriter
    Participant

    @bpUser

    It’s a custom theme designed specifically for bp.org. You can find several good themes here: https://buddypress.org/extend/themes/
    Or Google ‘buddypress themes’ for more.

    You might also like my BuddyLite theme. It comes with the following basic customization options:

    Maximum & Minimum Theme Width
    Header Height
    Theme Background Color, Image, Image Repeat & Image Behavior
    Show Home Page Title and Content
    Community Dropdown Menu Label
    Integrate BP-Adminbar with Main Menu
    Select ‘Global Search’ or Standard Buddypress Search
    Search Bar in Header or in Sidebar
    Sidebar Left, Right or Left and Right
    Main & Secondary Sidebar Width
    Hide Sidebar Login Form
    Custom CSS

    There’s also a premium version – BuddyBuilder – that comes with a whole heck of a lot more options so you can actually design your own theme by simply clicking your mouse. See them both at http://BuddyLite.com

    #104856
    aljuk
    Member

    Hmm, that’s strange. It’s working for me exactly as advertised.
    What’s the history of your theme? Is it default, child, custom etc?

    Maybe cookies…
    In the Admin, set “let user decide” for some fields.
    Log out.
    Clear your cookies, make sure to delete all cookies from the domain, and from any test domains, and any local domains (eg. mamp wamp etc. if you’re using that) that you’re developing the site on.
    Log in as a subscriber level user.
    What result now?

    #104844
    Philipp
    Participant

    @aljuk Thanks a lot for you answer. But I also tried that and I logged out as admin and signed in as a normal user. Still the same.
    Another idear?

    Thanks a lot for the link. I’ll take a look to it! :)

    All the best!

    #104829
    aljuk
    Member

    “If I activate it and set a field (e.g. birthdate) to “users only” – nothing happens. There are also no settings for the users in the frontend of buddypress.”

    If you set it to “users only” in Admin, you’re not giving your user the choice, and that’s why there is no selector in the front end. The user will only get the selector if you choose “let user decide”.

    #104828
    aljuk
    Member

    @philippmuenchen – it works fine. I’m guessing you’re trying to test it while you’re logged in as Admin? The privacy controls don’t apply to Admin. Admin can see everything. Log in as a regular user and then test.

    Age calculation: http://code.hyperspatial.com/all-code/buddypress-code/buddypress-age/

    @noizeburger – it works for all fieldgroups, not just Base.

    #104776

    In reply to: Hide Admin

    @Symm2112, thanks a lot for your ’99’ status trick – it most definitely hides the user from everything in BP, just what is was looking for.

    rossagrant
    Participant

    @zoran100

    Hi mate,
    I worked this out in the end.

    If you go into your buddypress file on your ftp, then go into the Bp forums file, you will see something called bp-forums-templatetags.php.

    You are looking for references like these:

    ‘ function bp_get_the_topic_admin_links( $args = ” ) {
    global $bp, $forum_template;

    $defaults = array(
    ‘seperator’ => ‘|’
    );

    $r = wp_parse_args( $args, $defaults );
    extract( $r, EXTR_SKIP );

    $links[] = ‘‘ . __( ‘Edit Topic’, ‘buddypress’ ) . ‘‘;

    if ( $bp->is_item_admin || $bp->is_item_mod || is_super_admin() ) {‘

    Look at the last line of that code.

    To only allow a admin to see the edit / delete links delete the other permissions as appropriate.

    Hope that helps!

    :)

    #103752
    modemlooper
    Moderator

    There are exclude page plugins for this but the next version of BP includes custom drop down menus that you can adjust via admin.

    #103347

    Okay, just figured out how to get the chat box to display and hide the admin bar.

    I had my admin bar hidden using the display: none tag. I undid that and went into adminbar.css and gave the adminbar a z-index of 1 or 2. Anything more than that and the admin bar would show.

    #103346
    calvinhsu
    Participant

    @acaps2007

    I think I’ve find an easy way to provide the effect you mentioned. It’s rather a css trick than a php-code way. Below is what I’ve find during this process:

    First, I find the function bp_adminbar_notifications_menu() in bp-core-adminbar.php, but it only works when adminbar is enable, and it simply lists out all notifications rather than the “mouse-over” effect we want. It seems admin-bar.js is also required, which is totally beyond me.

    So I realized that since it already requires adminbar to be enable in the first place, why are we bothering to duplicate this item, especially in so complex a way?

    We just need to hide all other items in adminbar, and re-position the notification menu.

    So finally I come up with this:

    /** Play with admin-bar to grab notification menu */
    
    #wp-admin-bar {
    position: absolute;
    }
    
    #wp-admin-bar .padder {
    background: none;
    }
    
    #wp-admin-bar .padder #admin-bar-logo, #wp-admin-bar .padder ul #bp-adminbar-account-menu, #wp-admin-bar .padder ul #bp-adminbar-blogs-menu, #wp-admin-bar .padder ul #bp-adminbar-thisblog-menu, #wp-admin-bar .padder ul #bp-adminbar-authors-menu, #wp-admin-bar .padder ul #bp-adminbar-visitrandom-menu {
    display: none;
    }

    Now we have notification menu there, and it’s no longer a “always-in-the-front” item. What remains to be done is further defining the style of this little baby, its position, background color, font color, etc.

    Hope this would do some help.

    dslax27
    Member
Viewing 25 results - 501 through 525 (of 692 total)
Skip to toolbar