Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Hide Admin'

Viewing 25 results - 751 through 775 (of 909 total)
  • Author
    Search Results
  • #84991
    @mercime
    Keymaster

    @damian2001, change to bp-default theme, you will see the bp-admin bar across all sites like the one at http://testbp.org/
    Double check dashboard – BuddyPress > General Settings > Hide admin bar for logged out users?:> should be NO

    rossagrant
    Participant

    Hi guys,
    I’m sure I’m not the only one who would like to do this.
    I would like to hide the edit/ delete links in forum posts from my members so that once they post something it cannot be changed. I run a site where people can cause a nuisance by posting then editing their post before an admin sees what had been originally posted and I want to stop this.

    Hiding them may work but then if someone simply input the url they could still mess with the posts. Is there a fool proof way so that ONLY ADMIN can ever see and use these?

    Thanks so much!
    Ross :)

    #13166
    lincme.co.uk
    Member

    This is a simple rehash of some old code by @nuprn1 (thanks Rich), and filters out various activity messages to keep the stream from clogging up. Put the following in your theme’s functions.php file, and modify as desired;

    // 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(“new_blog_post”, “created_group”, “joined_group”, “new_member”, “friendship_created”, “activity_liked”);

    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 );

    #83068
    Hugo Ashmore
    Keymaster

    No you’re not the only one I raised a ticket on the matter.

    Problem is that for the moment you shouldn’t use that hide adminbar unless you make some changes. The issue is that there is a function that checks to see if disable adminbar is true and if so it generates a style tag with a ruleset to hide the adminbar with display:none, this function then adds an action with places this style tag erroneously in the wp_footer hook resulting in a style tag sitting in the document body, a major validation issue as it’s obviously illegal to place this tag at this point in a document.

    As in reality this style tag is not actually required due to the adminbar being removed anyway the function ought to have been removed, but for some unknown reason it was deemed to be ok to leave until bp 1.3 branch is released.

    To fix in the meanwhile as there may be a wait for 1.3 you will have to add a remove_action or edit the core file holding the function (not first choice)

    In a child functions.php file you can try adding this line:

    remove_action(‘wp_footer’, ‘bp_core_override_adminbar_css’);

    That should prevent the action from running, tested and works for me on WP 3.0 BP 1.2..4.1, but there may possibly be better approaches?

    Archie Webmaker
    Participant

    Have you notice (or I am the only one):

    If I hide admin bar for logged out users
    I receive this error message:
    document type does not allow element “style” here

    If I don’t hide admin bar for logged out users

    I passed the w3 validator

    Kevin
    Participant

    I foolishly attempted to do this http://www.phidevinc.com/tech-tips/changing-conceailing-and-securing-wp-admin/comment-page-1#comment-1073 It didn’t work so I deleted what I did and now I’m no longer super admin of my website. I’m only admin. How can I get my super admin status back?

    r-a-y
    Keymaster

    I don’t think that’s the case.

    You only have a blog if you’re the administrator of a blog.

    justbishop
    Member

    How is Buddypress hidden on the plugins screen (where you activate/deactivate plugins in the admin panel) for user sites? I’m using a ton of Buddypress add-on plugins, as well as Cubepoints and a few others that my users really have no use for, and all of those being shown for them to activate/deactivate is really overwhelming for them.

    Just wondering if anyone knows what file the code that hides the core BP plugin from child sites actually is, or if anyone has successfully hidden other plugins from child sites? I thought maybe if I could see the code that does it, maybe I could apply it to the other plugins I’m using that I’d like hidden from users.

    Andreas Karsten
    Participant

    I have been looking here and elsewhere to figure out how a specific blog could be hidden from the blogs directory, such as the admin blog. Is this possible at all?

    #81444
    justbishop
    Member

    Not sure what to tel you about the theme issues you’re having (I just modified the BP default one), but I get what you mean about the BP groups/forums confusion.

    The audience I’m after is used to vbulletin forums, so I actually found some code posted here on BP.org that made groups open onto the group forum by default, and then I put a conditional around the activity stream posting thing on the group activity pages that only allows admins to see/use that. This way, all group activity id funneled into the forums, unless the group admin just feels the need to post something to the activity stream. I also just did away with the ability to post activity stream updates from the sitewide stream page, but you could just modify the ‘post update to’ dropdown menu there to hide and make it post to the user’s profile only.

    All in all, I’ve found that Buddypress can be a bit of work if you want to change the way it does certain things, but for most people the features are worth the trade-off of some extra work. I hope you get it all figured out and working the way you’d like :)

    escape311
    Member

    I’m trying to find a way to remove the BuddyPress admin bar for anyone who is not a moderator or admin. Regular, logged in members don’t really need to see it. I have notifications in a widget in the sidebar which is all my users were using it for anyways. Any ideas how I can do this?

    Thanks!

    EDIT: I solved this actually. Although I didn’t remove the admin bar, I modified it. I mainly just wanted to hide the Visit link, and create a link to the Dashboard and a sub link to create a New Post only visible to Moderators/Admins. I did this by modifying the Buddypress Admin Bar Mods plugin.

    #80952
    @mercime
    Keymaster

    @themeanwhile – you can enable or disable the various components so if you want Activities only, enable that and disable other components. After you activate BuddyPress, go to the new BuddyPress menu item on the left column of dashboard, and go to

    a) General Settings – these are your choices
    Base profile group name:
    Full Name field name:
    Disable BuddyPress to WordPress profile syncing?: Yes No
    Hide admin bar for logged out users?: Yes No
    Disable avatar uploads? (Gravatars will still work): Yes No
    Disable user account deletion?: Yes No
    Disable global forum directory?: Yes No
    Disable activity stream commenting on blog and forum posts?: Yes No
    Default User Avatar – For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address

    b) Component Setup
    Activity Streams – Allow users to post activity updates and track all activity across the entire site.
    Enabled Disabled
    Blog Tracking – Tracks blogs, blog posts and blogs comments for a user across a WPMU installation.
    Enabled Disabled
    bbPress Forums – Activates bbPress forum support within BuddyPress groups or any other custom component.
    Enabled Disabled
    Friends – Allows the creation of friend connections between users.
    Enabled Disabled
    Groups – Let users create, join and participate in groups.
    Enabled Disabled
    Private Messaging – Let users send private messages to one another. Site admins can also send site-wide notices.
    Enabled Disabled
    Extended Profiles – Activates customizable profiles and avatars for site users.
    Enabled Disabled

    I would suggest you set up a test install so you can check the features for yourself.

    “Of course, activity filters, profile page, friends page, settings page, etc, would also need to be migrated to display in the backend.”
    Why? If you want to make the BP Activity section private, you can add conditional tags for is_user_logged_in …

    drifter0658
    Member

    If you rename it now ( usually rename it/ wp-content/plugins1) that will hide access to the plugins from the admin portion of your site. You would then be able to get to your site’s admin panel. Once you log in and reach your admin panel, rename the plugins directory back to /wp-content/plugins.

    The problem is most likely with the last plugin you activated.

    #80665

    In reply to: Hide Admin

    Mark
    Participant

    Socialpreneur has a nice snippet here that makes it easy to hide the admin from the members list assuming you know the admin’s login name.

    Place this in your bp-custom.php:


    function my_bp_member_user_login() {
    echo my_bp_get_member_user_login();
    }
    function my_bp_get_member_user_login() {
    global $members_template;
    return apply_filters( 'my_bp_get_member_user_login', $members_template->member->user_login );
    }

    Then in your members-loop.php file, place this just below the while statement (wrapped in php tags!):
    if ( my_bp_get_member_user_login() == 'admin' ) continue ;

    (Supposing your admin’s login is ‘admin’.)

    lee_vhoi_ol
    Member

    Thanks for the reply, I just went into my wp-admin panel and on to Buddypress>General Settings but I do not find any Membership box. Here are the choices available:

    Disable BuddyPress to WordPress profile syncing?: Yes No
    Hide admin bar for logged out users?: Yes No
    Disable avatar uploads? (Gravatars will still work): Yes No
    Disable user account deletion?: Yes No
    Disable global forum directory?: Yes No
    Disable activity stream commenting on blog and forum posts?: Yes No
    Default User Avatar

    I also tried the other sections under Buddypress, and they don’t seem to be there. Am I missing anything?

    Thanks

    #79920
    justbishop
    Member

    Thanks :)

    I was actually coming to post that I didn’t really need it any more, but it’d still be useful info I suppose.

    In my case, the actual “blog” part of the main blog wasn’t being used for anything, so I’m just using that as the classifieds post system. I have custom fields set up (custom field template plugin) for users to call their remotely hosted photos, and am using a combo of the Members and Adminimize plugins to hide admin panel stuff that they don’t need to see. I also had to do some editing of the core wp-admin/edit-users.php to get rid of unnecessary profile fields in the backend, but nothing too bad that it can’t be redone after an update.

    #79263
    mrjarbenne
    Participant

    I use a Profile Privacy plugin created by http://www.jfarthing.com/. Sadly, the link to the plugin in my dashboard comes up 404 in the wp repositorty, and I can’t seem to find reference to it on his site. That said, the plugin allows for you to manage who can see certain fields in the profile (everyone, friends, user). When profile fields are set to “user” only the user and the site admin can view the info. Perhaps an attempt to contact jfarthing will met results. Good luck.

    #79120
    r-a-y
    Keymaster

    You still want to keep blogs, but want to hide it from the navigation correct?

    Use CSS!
    li#blogs-personal-li, a#bp-admin-blogs {display:none;}

    #79056

    Terrific plugin! Using BuddyPress Links 0.4.1 (with BuddyPress 1.2.3, WPMU 2.9.2). Some feedback:

    Frontend:

    – When viewing a link in the Links tab, the A tag of the external link icon needs a target=”_blank”.

    – Would be nice to have “Report Broken Link” and “Flag as Inappropriate” buttons for each link (or may be simply “Report” to save space, and it popups to “Report Broken Link” and “Flag as Inappropriate”). Then have that status show up in the Manage Links page as two additional columns. And also have a way of filtering and showing just broken or inappropriate links in the Manage Links report. And also have a way to clear status. Perhaps record user who reported the status (in case that user is falsely reporting and should be banned).

    Backend:

    – Instead of 3 entries in the BuddyPress dashboard menu (i.e.: BuddyPress Links / Manage Links / Edit Categories), have only one entry “Links”. Then divide the admin page into tabs: Settings, Links, Categories, Support, About.

    – The “Search Links” box and the “Search Categories” box (on the Manage Links and Edit Categories pages, respectively) are not in the same vertical location. “Search Links” box is above the heading, “Search Categories” is below the heading.

    – Disable the “Delete” buttons if no Links/Categories selected to delete.

    – When doing a search (Search Links / Search Categories), add a “Show all Links” / “Show all Categories” button/link to clear the search criteria.

    Manage Links page:

    – Make all the A tags (Details / Owner / Edit) have target=”_blank”.

    – Link the link avatar to the destination URL (with a target=”_blank”).

    – If hover over a link avatar, show full size image in floating popup (like a tooltip).

    Settings:

    – Have a setting to enable/disable rel=”nofollow”.

    – Have 3 checkbox settings to hide a link if it: (1) goes below a specified negative rating (e.g.: -10); (2) is flagged inappropriate a specified number of times; (3) reported broken a specified number of times. The link’s owner would still see the link but with a warning.

    – Have a setting to specify what avatar to show if none specified. First radio box would be “default avatar”, following by radio boxes to select screen snapshot thumbnail from the various snapshot website services.

    r-a-y
    Keymaster

    You probably already tried this tutorial:
    http://www.michiknows.com/2007/02/12/who-else-wants-to-hide-their-wordpress-admin-folder/

    The other technique is hacking WP core files:
    http://www.socialblogr.com/2009/09/how-to-change-folder-name-on-wordpress.html

    You could also try applying a filter to “admin_url”, but when I tried this awhile back, it didn’t work:
    http://stackoverflow.com/questions/2584706/wordpress-where-the-admin-url-is-set

    I should note that I’ve never done this and strongly advise you not to as well.

    WP should have a defined WP_ADMIN_URL variable similar to WP_PLUGIN_URL and WP_CONTENT_URL, but it doesn’t.

    #78909

    In reply to: Disable All RSS Feeds

    r-a-y
    Keymaster

    Easiest way to remove favorites is to use CSS:
    li#activity-favorites, li#activity-favs-personal-li, a#bp-admin-activity-favs, .activity-meta a.fav {display:none;}

    This will hide all favorite buttons and tabs (I think).

    becca37
    Participant

    I’d love to see (and would/will create it if I can figure out how) the ability to, via a plugin which adds these features to the admin and user interfaces not via manual code changes, a way to have for EACH stream (i.e. Site-Wide, Groups, Blogs, Forums, etc)

    (1) ADMIN settable INCLUDE for the Activity shown in activity streams (i.e. if the admin wants an option to include more than one action in a stream such as “New Forum Posts” + “New Forum Replies” + “New Blog Posts” + “New Blog Comments” as “Recent Blog and Forum Activity”, be able to create that in the admin interface, name it, and have it show up in the drop-down under that name)

    (2) ADMIN settable DEFAULT for the Activity shown in activity streams (i.e. if the admin wants “Recent Blog and Forum Activity” instead of “no filter” to be the site-wide default for activity, be able to set that in the admin interface)

    (3) ADMIN settable EXCLUDE for the Activity shown in activity streams (i.e. if the admin want to remove “New Group Memberships” from the drop down and to hide it from the “No Filter” stream, be able to set that in the admin interface)

    (4) USER settable preferences for DEFAULT for the Activity shown in activity streams (i.e. if the user wants “New Blog Posts” instead of the admin selected default, and if “New Blog Posts” has not been Admin Excluded, for the user to be able to set that in their Profile interface)

    So, am I crazy or what? ;)

    OR {hopeful look} maybe someone has already created such a plugin and I’m just missing it?

    #78370
    Boone Gorges
    Keymaster

    Your second, third and fourth requests can be taken care of by making sure the groups are set as Private. That means that they don’t show up in public listings, and their contents are only visible to members of the group.

    In order to make sure that people can only be part of a single group, you’ll want to hide the Send Invite screen for all users, or at least for non-admins. You could either do this through CSS, or by modifying/reproducing the functionality defined at bp-groups.php groups_setup_nav().

    As for the first question, there are WP plugins that allow you to restrict membership to invited members. A ten-second Google search turned up this: https://wordpress.org/extend/plugins/wp-invites/, for example. I imagine that this would work fine for BP as well. The most straightforward way to populate groups would then be for the admin to use a plugin like BP Group Management http://teleogistic.net/code/buddypress/bp-group-management/, which allows admins to place people manually in groups, bypassing the invitation process.

    #11441
    nickmy
    Participant

    Hello

    how can I hide some profile fields on the profile page?
    They are only information for the admins

Viewing 25 results - 751 through 775 (of 909 total)
Skip to toolbar