Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Hide Admin'

Viewing 25 results - 401 through 425 (of 607 total)
  • Author
    Search Results
  • #112384

    In reply to: missing nav-bar

    Hugo Ashmore
    Participant

    Not necessarily an easy fix with so little info to go on. Default is to show the adminbar all the time so setting ‘yes’ to hide it for logged out users isn’t going to change things for logged in users.

    Usual questions must be asked now: Are you running a custom theme? If so then can you revert to bp-default and see how that performs.

    #112340

    In reply to: missing nav-bar

    Doug
    Participant

    yes, that is the bar, and “no” is checked for hide admin bar for logged out users. Would yes change that?

    #112144
    @mercime
    Participant

    == All I want to do is to hide the “Dashboard” button ==

    Know that the “Dashboard” link in adminbar appears for logged-in users who have a role greater than Subscriber on your blog. If you still want to do this then if you don’t have one yet, create a bp-custom.php file, add the code below and upload to wp-content/plugins folder:
    `<?php
    remove_action( ‘bp_adminbar_menus’, ‘bp_adminbar_thisblog_menu’, 6 );
    ?>`

    == have Notifications and buttons like “Edit Profile” etc [in adminbar] ==

    Notifications link and “Edit Profile” buttons are already in adminbar for logged-in-users.

    if you simply want to hide Admin bar login and sign up, just add

    remove_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 );

    to your functions.php and login and sign up will go away

    #111964
    chrisreg1
    Member

    Hmm unfortunately, that still did not work. Thanks for all your help thus far guys. Here is how my problem originated:

    I recently transferred my site from the default ”/wordpress/” sub directory to my root directory. Everything works fine in BuddyPress except for the LOGOUT and LOGIN menu options from the BuddyPress menu bar (up at the top).

    Upon looking at the URL that the logout and login tries to redirect to (in the tag), it still thinks it is in the ”/wordpress” subdirectory and the thus results in a Error 404 – Page Not Found problem.

    I’ve search various ways to do this but people have either not have found a solution or seem to not have posted it. I originally thought I could just use the ‘Add All Nav Links to Admin Bar’ plugin (https://buddypress.org/community/groups/add-all-nav-links-to-bp-adminbar/) and hide the Login and Sign Up options but unfortunately the “Log Out” still remains since it is under the ‘My Account’.

    Any help would be much appreciated, thanks.

    Webweaver21
    Member

    Thanks for your help. I did indeed have the setting “Hide admin bar for logged out users?:” set to YES. I switched it to NO and now the menu bar appears whether logged in or logged out.

    The only problem is that new users still only see the “Register” and “Log In” menu items, even when they are logged in. This is puzzling because I can access the pages directly as a new user if I type in the URL.

    The test user I’m working with is visible under the Users listing of my BP root blog so it doesn’t seem like that would be the problem. I even gave the test user Admin priviledges to make sure there were no access level issues. The only difference is that the test user was signed up after I activated multiuser mode.

    The way that WP eMember handles membership is directly linked to the WP user database. The only thing that WP eMember does is allow a new user to be created and grants them appropriate priviledges dependent on their membership level. It does seem like there could be something happening with the sign-up

    When I activated WP multiuser it transferred all my plugins to the network admin panel instead of the individual site. WP eMember is now a network-wide plugin, along with BP. Since WP eMember creates a WP user account, I’m guessing it’s now creating user accounts outside of the main site and thus the main site doesn’t recognize the user? Perhaps I should move a bunch of plugins back to the main site instead of the whole network? I don’t really need any plugins for the user blogs so they could all be on the main site and things might work better. I’m not quite sure how I’d manage moving the plugins though.

    Boone Gorges
    Keymaster

    Thanks for the clarification. That makes a lot more sense.

    Go to Dashboard > BuddyPress > General Settings, and look at the setting for “Hide admin bar for logged out users?:” Does it say Yes? Try switching it to No.

    I’m guessing that users are not being added automatically to the BP root blog (a situation which would have been irrelevant in non-MS mode). It’s possible that either the setting I mention above, or something about the way that WP eMember handles membership in an MS network, is interfering with the way that the admin bar is conditionally displayed.

    #110456

    In reply to: Admin Profile page

    Hugo Ashmore
    Participant

    You could always edit the template files for /members/single/ (in a child theme) and wrap default actions in something like :

    `if( ‘1’ == bp_displayed_user_id() )`

    As a check for the displayed user being ‘1’ or primary network super_admin then you’ll do stuff based on that such as unique markup for that user alone or use in a ‘if not’ manner to hide certain profile display elements.

    That’s a basic approach you could extend that to be more flexible by checking a users role bp_displayed_user() checked against WP roles and capabilities for that user.

    #110157

    In reply to: Hide Admin

    explanetome
    Member

    @dmanthony : cool. not sure that I ‘ve understood where I should enter 99 to hide admin … ? :/ merci

    #109528
    @mercime
    Participant

    also, from @sbrajesh, an alternative to the the Stealth Mode for Super Admins – Put this code in bp-custom.php and None of the site admin activity will be recorded nor will you appear in the Who is Online/ recently active members widget. –

    `add_action(“plugins_loaded”,”bpdev_init_sm_mode”);
    function bpdev_init_sm_mode(){
    if(is_site_admin())
    remove_action(“wp_head”,”bp_core_record_activity”); //id SM is on, remove the record activity hook
    }`

    #109525
    Virtuali
    Participant

    when admin post on wordpress, post also appeared on BuddyPress activity, as admin’s activity.

    how to prevent it? how to hide admin activity?

    Try this plugin https://buddypress.org/community/groups/buddypress-block-activity-stream-types/

    wilsontray
    Member

    I added it but I still dont see an easy way to set it as a default theme for new blogs… did they just hide it with the new 3.1 multsite or somthing? Or did I install it incorrectly as now I dont have my superadmin menu just a way to toggle between network and site admin on the top menu bar

    #109474
    @mikey3d
    Participant

    If you are doing a research about (display:none), no one said it’s not the best way to use it. There is a purpose for using (display:none) to hide and it does not remove it.

    #109389

    In reply to: Hide Admin

    dmanthony
    Member

    I’m not sure why ’99’ works, but it does and I am most grateful for it. Thanks

    goldbrick
    Member

    would there be any code somewhere to hide pages unless an admin user?

    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.

Viewing 25 results - 401 through 425 (of 607 total)
Skip to toolbar