Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Hide Admin'

Viewing 25 results - 876 through 900 (of 908 total)
  • Author
    Search Results
  • 21cdb
    Participant

    Hey,

    some time ago i was looking for the best solution to alter the admin-bar.css in BP.

    I figured out the following solution which removes the original admin-bar.css and replaces it on a per blog basis with a my-admin-bar.css.

    The my-admin-bar.css is only loaded when the user is logged in (i set the option to hide the buddybar from user who are not logged in).

    function check_admin_bar() {
    global $bp, $wpdb, $current_blog, $doing_admin_bar;
    $doing_admin_bar = true;

    //remove core admin bar CSS at all times!
    remove_action('wp_head', 'bp_core_admin_bar_css', 1);
    remove_action('admin_head', 'bp_core_admin_bar_css', 1);

    if ( (int) get_site_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() )
    return false;

    //add custom CSS only if admin bar is true
    if($doing_admin_bar)
    add_action('wp_head', 'my_admin_bar_css', 1);
    add_action('admin_head', 'my_admin_bar_css', 1);
    }
    add_action('plugins_loaded','check_admin_bar',99);

    However i’m not able to remove the original admin_bar.css in the backend! It still loads the original admin_bar.css along with my_admin_bar.css.

    Any ideas if i missed some hook or some other suggestions?

    #48837
    r-a-y
    Keymaster

    Hey Peter,

    It’s safe, but when upgrading to the newest BP version, you’ll have to remember to make this change again.

    Either that, or until some option in the admin area is made.

    I’m using BeLogical’s fix plus a CSS hack to hide the “Create a Blog” field right now.

    There is no voting system, Peter. Although you can leave a message on the trac:

    https://trac.buddypress.org/ticket/835

    You can login with your existing BP username and password there.

    #48556
    r-a-y
    Keymaster

    Hi Tedmann,

    There’s two ways to go about this:

    (1) CSS route:

    In your /wp-content/themes/carrington-mobile-1.0.2/style.css file, add this:

    body {padding-top:0 !important;}
    #wp-admin-bar {display:none !important;}

    (2) Theme functions.php route:

    In your /wp-content/themes/carrington-mobile-1.0.2/functions.php file, add this:

    remove_action( 'wp_footer', 'bp_core_admin_bar' );
    remove_action( 'admin_footer', 'bp_core_admin_bar' );

    Option #1 will simply hide the admin bar from view, however it will still be loaded if you view the HTML source.

    Option #2 will completely remove the admin bar from the HTML source.

    Not completely 100% that code will work, but give it a shot and report back.

    21cdb
    Participant

    Hey,

    Is there any way to hide the adminbar for users who are not logged in, but only on the user blogs and not on the bp homepage / hometheme?

    #48393

    Just read over your post again and you say you want to eliminate the entire backend? Off the top of my head, I don’t know if that’s possible.

    Best way to do this would be to integrate the P2 theme into your user blogs.

    Otherwise, I know there is a WPMU plugin out there to help limit the admin side bar’s available links. If you manually navigate to the page you can still get to them, but it hides the options from view.

    #5533
    3198429
    Inactive

    Catchable fatal error: Object of class WP_Error could not be converted to string in /home6/monstet5/public_html/page_id1030/wp-includes/wpmu-functions.php on line 112

    So i installed dark theme on my site today

    http://www.monstershideout.com/page_id1030/

    and it works and so i messing around with site admin > options >

    and i wanted to change the blogs feed so i put in the page id, now when you click on the blog or blogs tab

    http://www.monstershideout.com/page_id1030/HOME_BLOG_SLUG/

    it will just show edit entry

    i belive entering my page id ruined it?

    I downloaded a fresh copy of wp mu file > wp-functions, and put it in my wp-includes foldeR? But this didn’t work???

    #5514
    dinhluong
    Participant

    On my install of BuddyPress, one of my blogs hides the admin bar when a certain theme is used (Diet Apple from http://www.sem-pros.com/search-engine-marketing/services/freewordpressthemes.htm). The admin bar comes back when I switch to another theme, and it works fine on all the other blogs (which have different themes).

    How is the admin bar called? I’d like to keep this theme if possible.

    #47786
    3206013
    Inactive

    Hello,

    I’ve tried to check that option “Hide admin bar for logged out users to (No) ” , where shoud I include wp_footer() in the themes ,

    #47783
    Burt Adsit
    Participant

    If it’s not showing on all your blogs then check the setting of: wpmu back end > BuddyPress > General Settings > Hide admin bar for logged out users?

    If some themes are still not showing the admin bar then that means they are not written to calll wp_footer() in the theme itself.

    #47609
    21cdb
    Participant

    As mentioned above the solution is working for me. I also figured out a way to remove the original admin-bar.css out of the header. I’m not at work at the moment, so i can’t look it up and write it down here, but i will do so tomorrow!

    One problem remains for me. In the admin-bar.css and also in my-admin-bar.css there is a padding-top width the height of the buddybar applied to the body of the page.

    If i don’t use my-admin-bar.css and check the “hide adminbar for users that aren’t logged in” in the settings of the dashboard the padding-top isn’t applied to the body. However if i use my-admin-bar.css it gets loaded all the time and not only if a user is logged in. This implies that i always have an extra gap, because the padding si applied all the time!?

    Any hints for this problem?

    21cdb
    Participant

    Hi there,

    i’m hiding the adminbar if a user is not logged in. However i want to show it on the bp-home and bp-member theme even if a user is not logged it, but still hide it on the users themes.

    What would be the best solution to achieve this?

    ougian
    Participant

    I am using buddypress 1.0.1 + WPMU 2.7.1 + bbpress 1.0-rc-1

    I suppose even if the groups forums are set to private, users can still see the threads posted from bbpress and can post in those threads.

    I would like to hide the whole bbpress from the users and still allow users to access the forums through buddypress groups. But at the same time I would also like to use bbpress administration as the forums cannot be managed through buddypress.

    #5078
    eelambuddy
    Participant

    How can I hide the “group create” option from a user? I only want the admin to create a group.

    #45815
    eelambuddy
    Participant

    Is there anyway I can hide the “group creation” option from the users? Basically, only admin can create the “groups”.

    #44834
    Marcin Biegun
    Participant

    Updated bp_adminbar_authors_menu to hide authors on additional main sites

    //HOOKS FOR TOP MENU - AUTHORS
    remove_action( 'bp_adminbar_menus', 'bp_adminbar_authors_menu', 12 );
    add_action( 'bp_adminbar_menus', 'my_bp_adminbar_authors_menu', 12 );
    // **** "Blog Authors" Menu (visible when not logged in) ********
    function my_bp_adminbar_authors_menu() {
    global $current_blog,$wpdb;

    $site_id = $wpdb->get_var( "SELECT COUNT(*) FROM wp_site WHERE id=".$current_blog->blog_id);

    //$numrows = $wpdb->num_rows($site_id);
    if ( $site_id!='1' ) {
    $authors = get_users_of_blog();

    if ( is_array( $authors ) ) {
    /* This is a blog, render a menu with links to all authors */
    echo '<li id="bp-adminbar-authors-menu" class="'.$site_id.'"><a href="/">';
    _e('Blog Authors', 'buddypress');
    echo '</a>';

    echo '<ul class="author-list">';
    foreach( $authors as $author ) {
    $author = new BP_Core_User( $author->user_id );
    echo '<li>';

    echo '<a href="' . $author->user_url . '">';
    echo $author->avatar_mini;
    echo ' ' . $author->fullname;
    echo '<span class="activity">' . $author->last_active . '</span>';
    echo '</a>';
    echo '<div class="admin-bar-clear"></div>';
    echo '</li>';
    }
    echo '</ul>';
    echo '</li>';
    }
    }
    }

    #44708
    enlightenmental1
    Participant

    1.) yes, the group admin can add other admin/moderator and ban users

    2.) they need to join your group, then under group memebrs you can add them as an admin/moderator

    3.) this is possible yes, I accomplished this by adding <?PHP if is admin ?> into the bp-core to hide the create group button from non-admins (your community will want the ability to add groups though)

    4.) you can create “private groups” that are visible to everyone, but you can only join if you’re accepted…

    why don’t you create a couple different types of groups, then you’ll see all the features/abilities they have

    #44161

    In reply to: Antispam plugin

    Paul Wong-Gibbs
    Keymaster

    Possible user error.


    @Arturo
    – check this from the readme. You might have missed it to.

    To install in WordPress MU (Forced Activation/Site-Wide):

    1. Upload the wp-recaptcha folder to the /wp-content/mu-plugins directory

    1. **Move** the wp-recaptcha.php file out of the wp-recaptcha folder so that it is in /wp-content/mu-plugins

    1. Now you should have /wp-content/mu-plugins/wp-recaptcha.php and /wp-content/mu-plugins/wp-recaptcha/

    1. Go to the administrator menu and then go to **Site Admin > reCAPTCHA**

    1. Get the reCAPTCHA keys [here](http://recaptcha.net/api/getkey?domain=www.blaenkdenum.com&app=wordpress \”reCAPTCHA API keys\”) and/or the MailHide keys [here](http://mailhide.recaptcha.net/apikey \”MailHide keys\”)

    #43935

    In reply to: Hide Admin

    There’s something like this in the works, but it won’t be available for a few months yet. :)

    #43920

    In reply to: Hide Admin

    Cyndy Otty
    Participant

    Bumping this because I’m curious about the same thing DJPaul mentioned. The need to create a random account for bbPress is fine, but it’s pointless having it listed with the BuddyPress members when it’s not really one.

    Any suggestions?

    #43846
    enlightenmental1
    Participant

    depends if you want to hack the bp-core/bp-core-adminbar.php

    you can hide the logo from there, and just hand code a \\\”home\\\” link

    you would also want to give it the same class=\\\”\\\” as the other non-dropdown links

    like this:

    <li class="no-arrow">< a href="/groups">Search Groups</ a>

    #43015
    jodyw1
    Participant

    I was wondering if this is what you guys were looking for:

    http://wpmudev.org/project/Menus

    The plugin gives you control of what menus are turned on site-wide for each member. Well, it’s kind of a “global” thing right now, but it seems to take care of disabling back-end menus.

    Here’s the description of the plugin:

    “….If, like me, you need to hide the Themes or Import Menu, or don’t want anyone messing with their Permalinks menu, or are frightened by the Delete Blog menu, this plugin will help.

    Toggles the following in WPMU 2.7

    ‘Site Administrator Gets Limited Menus?’,

    ‘Posts’,

    ‘Posts Add New’,

    ‘Posts Edit’,

    ‘Posts Tags’,

    ‘Posts Categories’,

    ‘Links’,

    ‘Links Add New’,

    ‘Links Edit’,

    ‘Links Link Categories’,

    ‘Pages’,

    ‘Pages Add New’,

    ‘Pages Edit’,

    ‘Media’,

    ‘Media Add New’,

    ‘Media Library’,

    ‘Comments’,

    ‘Appearance’,

    ‘Appearance Themes’,

    ‘Users’,

    ‘Users Authors and Users’,

    ‘Users Add New’,

    ‘Users Your Profile’,

    ‘Tools’,

    ‘Tools Import’,

    ‘Tools Export’,

    ‘Tools Turbo’,

    ‘Settings’,

    ‘Settings General’,

    ‘Settings Writing’,

    ‘Settings Reading’,

    ‘Settings Discussion’,

    ‘Settings Privacy’,

    ‘Settings Permalinks’,

    ‘Settings Media’,

    ‘Settings Miscellaneous’,

    ‘Settings Delete Blog’,

    ‘WPMU Media Buttons’,

    ‘WP Media Buttons’,

    ‘Dashboard’

    If you use other plugins to add/disable/hide admin menus, there will be collisions/errors. Happy testing!

    Plugins adding menu pages to WPMU 2.7 Adminbar may not be hidden in all browsers.

    Favorites menu items toggle as well….”

    #42656

    By backend menus for WP, do you mean you want to totally remove access to the wp-admin area?

    This has been a common request by others as well, especially if you have blogs turned off and are trying to hide it completely for subscribers.

    If you’re saying that each member still has a blog, but you want them to be able to create new blog posts and manage their blogs through the buddypress interface, that still is not a possibility, and would require an additional plugin (in my opinion) that does not yet (and may never) exist with BP…

    It is possible to setup default widgets for blogs, it’s a little tricky though. Also, in order to setup a default member blog, I’ve found the best way to do that is to only give them one option and only have one theme turned on the Site-Admin->Themes area. There may be a way to force a default theme, but I’ve never attempted it yet.

    #42644
    enlightenmental1
    Participant

    thank you for your efforts Burt,

    (im gonna keep messin with it… and post it back here once/if i get i working)

    @Andy

    I wish it was that simple…. the first and last name are required for other features on the site…. (portal site with social-network skin)

    we’ve hidden the last name altogether, but it looks empty only having first name under “general information”

    buzzwe.com

    field_1 First Name -visible

    field_2 Last Name -hidden

    field_3 Referred by -hidden / change disabled

    hidden in phpmyadmin by changing the is_public 1 to 0

    disable changes by adding filter to bp_xprofile_classes.php

    (if field_3 and on edit profile screen, hide)

    any other ideas?

    thank you

    #42084
    Lance Willett
    Participant

    Hi Tutsie,

    This type of change would typically be done with a plugin. Keep in mind that this isn’t a BuddyPress customization as much as it is a WordPress MU one.

    I did a quick Google search for “change wordpress admin profile link” and found a few places you could start.

    In this WordPress forum topic is some code that would change the behavior of the profile link (albeit for a different reason); this method of changing the admin behavior isn’t recommended, however, since it requires hacking a core file. A plugin would be much better since it doesn’t require changing the core file (and having to stress about updating your WordPress MU code later).

    Depending on how much you want to work on this, you could download these two plugins: WP Hide Dashboard and Admin Menu Management, open them up in a text editor, and look at how they change the menus in the WordPress admin area.

    Plugins do two things: (1) they provide a new functionality and (2) they hijack the normal WordPress behavior and perform the functionality described in the plugin instead.

    Hope that helps…

    enlightenmental1
    Participant

    Needed:

    filter for the bp-xprofile to hide and disabled profile fields if the profile field name is given? (hide so only level 10/admin can see, disable so it cannot be changed)

    i.e.

    if xprofile field = referred by, last name

    remove filter… add filter…

    then I can hide the profile fields on the member page after a user has registered…

    (dont want to show the world last names or referred by #)

    this probably easy enough for one of you gurus… let me know what you think

Viewing 25 results - 876 through 900 (of 908 total)
Skip to toolbar