Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Hide Admin'

Viewing 25 results - 651 through 675 (of 915 total)
  • Author
    Search Results
  • #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.

    #20835
    JamieWade
    Member

    All of a sudden the admin bar disappeared on the website, however it is still there when I log into the admin of the site? “Hide admin bar for logged out users?” Is checked as no, how do I get the admin bar back up on the website? Thanks.

    #20784
    GodTekuan
    Member

    How can i hide the Buddy press admin/navigation bar and add all of the menus under “my account” to my own theme navigation bar?

    thank you in advance for any help you may be able to provide.

    #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’);`

    Mahdi
    Member

    hello my website group admins reported me some problems about they cannot delete their members post
    they have this delete link
    once they click on delete post will be hide but when they refresh the page again they see the post is still there
    i can delete users post in groups as administrator but group creators cannot
    anyone any idea?
    what is going wrong?

    ri-kun
    Participant

    please help

    wingers
    Member

    Hi all,

    It’s a well covered topic here, but my problem seems to be common, although a definite answer doesn’t appear easy to find.

    Registration issues, once submitted, I’m not going any further, the validation doesn’t activate, and the new user doesn’t capture. This is with my theme installed (Unite 2.0 by Parallelus (Andy Wilkerson)), however it does work on BuddyPress’s default theme. And if I install a basic theme like twenty10, I can get it to work no problems once I copy the required files across.

    So my thoughts are, that there is something function wise that is missing or broken in Unite 2.0 theme (which I have to use as the client requires this, and has spent money customizing), and is conflicting, or not being called identically. I have followed just about all steps I can think of, and can’t fix the final missing piece,

    Has anyone come across something like this? The functions.php file for unite is quite small, so I have pasted it below, as a starting point, and if you need any more info or files I can pass them on:

    My setup is as follows:

    Latest WordPress
    Latest BuddyPress
    BuddyPress Templates modified to work as expected on my theme or not modified and clean installed, not working
    functions.php

    #==================================================================
    #
    #	Admin control panel setup
    #
    #==================================================================
    
    # Default theme variables and information
    
    $themeInfo = get_theme_data(TEMPLATEPATH . '/style.css');
    $themeVersion = trim($themeInfo);
    $themeTitle= trim($themeInfo);
    $shortname = strtolower(str_replace(" ","",$themeTitle)) . "_";
    
    $postIndex = false; // special case variable for index paging bug
    
    // set as constants
    //................................................................
    
    define('THEMENAME', $themeTitle);
    define('THEMEVERSION', $themeVersion);
    
    // shortcuts variables
    //................................................................
    
    $cssPath = get_bloginfo('stylesheet_directory') . "/";
    $themePath = get_bloginfo('template_url') . "/";
    $themeUrlArray = parse_url(get_bloginfo('template_url'));
    $themeLocalUrl = $themeUrlArray . "/";
    
    // setup info (category list, page list, etc)
    //................................................................
    
    $allCategories = get_categories('hide_empty=0');
    $allPages = get_pages('hide_empty=0');
    $pageList = array();
    $categoryList = array();
    
    // create category and page list arrays
    //................................................................
    
    foreach ($allPages as $thisPage) {
    $pageList[$thisPage->ID] = $thisPage->post_title;
    $pages_ids[] = $thisPage->ID;
    }
    foreach ($allCategories as $thisCategory) {
    $categoryList[$thisCategory->cat_ID] = $thisCategory->cat_name;
    $cats_ids[] = $thisCategory->cat_ID;
    }
    
    // Translation ready code
    //................................................................
    
    // Make theme available for translation, Translations can be filed
    // in the "languages" directory. To change language just change
    // the value of $locale with laguage .mo file name..
    // for example: global $locale; $locale = 'pa_IN';
    
    load_theme_textdomain( THEMENAME, TEMPLATEPATH . '/languages' );
    
    // This theme uses wp_nav_menu() in one location.
    //................................................................
    
    if (version_compare( get_bloginfo('version'), '3.0', '>=' )) {
    register_nav_menus( array(
    'primary' => __( 'Primary Navigation', $themeTitle ),
    ) );
    }
    
    # Admin Menu Options
    
    // include options functions
    //................................................................
    
    include_once('theme_admin/includes/option_functions.php');
    
    // Menu structure
    //................................................................
    
    function this_theme_menu() {
    add_menu_page('Theme Options', THEMENAME, 10, 'theme-setup', 'loadOptionsPage', get_template_directory_uri().'/theme_admin/images/themePanelIcon.png');
    add_submenu_page('theme-setup', 'General Settings', 'General Options', 10, 'theme-setup', 'loadOptionsPage');
    add_submenu_page('theme-setup', 'Home Page', 'Home Page', 10,  'homepage-options', 'loadOptionsPage');
    if ( version_compare( get_bloginfo('version'), '3.0', '<' ) ) {
    // Theme menu manager only used for WP versions earlier than 3.0
    add_submenu_page('theme-setup', 'Main Menu', 'Main Menu', 10, 'mainmenu-options', 'loadOptionsPage');
    }
    add_submenu_page('theme-setup', 'Slideshow', 'Slideshow', 10, 'slideshow-options', 'loadOptionsPage');
    add_submenu_page('theme-setup', 'Sidebar', 'Sidebar', 10, 'sidebar-options', 'loadOptionsPage');
    add_submenu_page('theme-setup', 'Blog', 'Blog Pages', 10, 'blog-options', 'loadOptionsPage'); // 18-Aug ubhi -ps (added the blog link)
    add_submenu_page('theme-setup', 'Portfolio', 'Portfolio Pages', 10, 'portfolio-options', 'loadOptionsPage');
    add_submenu_page('theme-setup', 'Contact Page', 'Contact Page', 10, 'contact-options', 'loadOptionsPage');
    }
    
    // Create menu
    //................................................................
    
    add_action('admin_menu','this_theme_menu');
    
    // call and display the requested options page
    //................................................................
    
    function loadOptionsPage() {
    global $themeTitle,$shortname,$pageList,$categoryList,$wp_deprecated_widgets_callbacks;
    
    include_once('theme_admin/includes/options_pages/'. $_GET .'.php');
    
    // Get the list in array array form of excludes
    $customOptionsPages = array('slideshow-options', 'mainmenu-options', 'blog-options', 'portfolio-options', 'sidebar-options');
    
    if ( !in_array($_GET, $customOptionsPages) ) {
    include_once("theme_admin/options.php");
    }
    }
    
    # Addon Functions and Content
    include_once("theme_admin/includes/addon-functions.php");
    
    # Include Widgets
    
    include_once('theme_admin/includes/widgets.php');
    
    ri-kun
    Participant

    please help

    ri-kun
    Participant

    I had no problems with the BP admin bar while I was still using this code for the footer:

    It didnt appeared in the mainpage, while opening and while reading posts and in any parts of the site excluding while I was in wp-admin area. I wanted the BP admin bar to appear only in wp-admin and not in the rest of the site.

    The buddypress admin bar started appearing to the areas I dont want it to appear after I change this:”” to this:”” since I have to change so that the twitter button will work and other plugins.

    So again, how can I have the BP admin bar to appear only in the wp-admin and NOT in the rest of the site?

    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”.

Viewing 25 results - 651 through 675 (of 915 total)
Skip to toolbar