Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Hide Admin'

Viewing 25 results - 351 through 375 (of 627 total)
  • Author
    Search Results
  • #143525
    benzine
    Participant

    I’m in despair for such a solution right now. So, I think it’s better to have all custom fields mandatory while members can decide whether to hide or show them in public such that they can edit any fields later if they want to. Also, re-register from front end all manually created profiles from dashboard. This is the most plausible solution to me at this time.

    Thanks for your time.

    #143498
    trailmix5
    Participant

    Thanks @modemlooper

    I was able to comment out the entire form with /* and */, but the user is still directed to a general settings page (that is now blank except for the title “General Settings”). Granted this is better than having the password and email field, but is there a way for me to bypass that tab and go straight to the notifications?

    Also, I have settings checked in the admin panel because I want the user to be able to change the notification and privacy preferences. Is that correct?

    I’m not sure why I didn’t think of this before, but I could just hide the tab in CSS (like I did previously) and then use a 301 redirect match in my htaccess from settings to settings/notifications. Huh, is that a viable way to achieve this?

    #143465
    modemlooper
    Moderator

    In BP-default folder you can edit the file members/single/settings/general.php

    Just comment out the form for the settings. BTW did you uncheck settings option in admin?

    Thanks for the rating.

    #142995
    staceym
    Participant

    Here is a solution that works in BuddyPress 1.6. This will prevent new activities from being added and will also prevent the user from showing as recently active. The first option is for admins, the second is for a specific username.

    `
    // Don’t record activity by the site admins or show them as recently active
    function my_admin_stealth_mode(){
    if ( is_site_admin() ) {
    global $bp;
    remove_action(‘wp_head’,’bp_core_record_activity’);
    delete_user_meta($bp->loggedin_user->id, ‘last_activity’);
    }
    }
    add_action(‘init’,’my_admin_stealth_mode’);

    // Don’t record activity for a user or show them as recently active
    function my_user_stealth_mode(){
    $current_user = wp_get_current_user();
    if(is_user_logged_in()) {
    if(‘YourUsername’ == $current_user->user_login) {
    remove_action(‘wp_head’,’bp_core_record_activity’);
    delete_user_meta($current_user->ID, ‘last_activity’);
    }
    }
    }
    add_action(‘init’,’my_user_stealth_mode’);
    `

    #142776
    haagsekak
    Participant

    Awesome, thank you for the great support that you provide.

    I am trying to get away from using the top admin bar and having to go to the dashboard to access the posts, comments and media. So I was able to add the link within your file so that when you logged in you would see the link.

    Below is some of the code I added to your bp-profile-menu.php menu structure between line 33 and 59 sub menu items.
    $items .= '<li id="menu-item" class="menu-item"><a href="http://thevillageblog.com/wp-admin/edit.php">My Articles</a></li>';

    **NOTE: trying to include the code in this post but it shows as html instead of text. If you want I can email the code to you or is there another way to include code in a post and show it as text?

    I tried the same concept using the menu panel instead but did not get the same effect. If you have a trick as to how to hide the links until the user has logged in then I would be very grateful. Otherwise the only thing I can think of is to edit your code again which i’d rather not do.

    Thanks again for your help.

    #141915

    In reply to: BP Test Drive

    r-a-y
    Keymaster

    You should be able to disable the admin bar for logged-out users in the WP admin area by navigating to “Settings > BuddyPress“, then click on the “Settings” tab.

    If someone really wanted to find out if you were using BuddyPress, then it would be quite simple. I would take steps to try and hide the fact you were using WordPress first, then move down the ladder to BuddyPress later on.

    About notifications without the admin bar, there are some third-party plugins available like:
    http://buddydev.com/plugins/buddypress-notifications-widget/ (a widget)

    With BP 1.7, we’ll be adding universal theme compatibility, so we’ll be taking some steps to try and make life without the admin bar a little easier.

    #141890
    meg@info
    Participant

    add_filter(‘show_admin_bar’, ‘__return_false’);

    #141847
    9087877
    Inactive

    I am not certain this is what you desire but check out my blog. I have code snippets that may help you. Read the post and you will understand the end result from the snippet. Have a great day and hope it helps!
    http://ezwebdesign.wordpress.com/2012/09/14/removing-admin-bar-removing-dashboard-access/

    LavishDhand
    Participant

    Hi!

    Can you kindly share how did you actually do this? I need the same for my site.

    1. How did you prevent the friends tab to other users?
    2. Have you figured out the way for messages?

    regards

    #140762
    Ben Hansen
    Participant

    @shawn38 thanks for your help i figured things out after reading this post i also figured out that the plugin does work you just can’t turn it on or off using the new toolbar so what i did was using the custom file to temporarily activate the old toolbar in order to activate the ninja plugin. thanks again for all your help here and on the other topic!

    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-can-i-use-old-buddypress-admin-bar-if-i-dont-want-to-use-this-new-one-in-1-6/

    #140721
    9087877
    Inactive

    Did you wrap the code @mercime gave you in opening and closing php tags? Like this:
    `<?php
    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
    }
    ?>`

    #140720
    Ben Hansen
    Participant

    @rogercoathup thanks for responding sorry for the delay in my response wasn’t getting site updates for a while there. either way would be fine but I’m not very adapt at coding (sql or otherwise). id wait for an update to the plugin but we all know that goes sometimes and it seems like @francescolaffi is off on some kind of extended vacation or sabbatical. actually holding off on upgrading to 1.6 on a client site because of the issue :/

    #140564
    @mercime
    Participant

    You would normally add the code in your theme’s functions.php file

    #140546
    Keats18
    Member

    Brajesh I am looking to do the same thing, where do you place that code? I tried members loop but no luck

    #139792
    Roger Coathup
    Participant

    Do you want to prevent admin activities being created in the first place, or just stop them displaying on certain screens?

    If you want to stop them being displayed (and you are comfortable writing SQL) you can add a filter on bp_activity_get_user_join_filter, and modify the where clause to exclude the admin user id

    If you want to stop them being created, you could add a hook on bp_activity_add, and delete the activity if the user_id is the admin id.

    #139785
    Ben Hansen
    Participant

    Anyone know if this is working yet with BP 1.6 i can’t seem to figure it out.

    #139680
    Ben Hansen
    Participant

    check out this plugin hasn’t been updated in over a year but it worked as of 1.5 (may require you to use the old admin bar under 1.6) we haven’t yet upgraded.

    BuddyPress Ninja

    #139169
    Arrogance is Bliss
    Participant

    Interesting ‘plugin’ that GRA4.. it is a connection to their website. A little more than phoning home. Your members get included into their website. Wherever their ‘plugin’ is activated, all the members show up on all the other websites. They have a plugin for oscommerce, phpbb and wordpress and they are working on a plugin for drupal. All members are gathered to their website and you have NO admin privileges. You have NO control over the content on the website and I don’t know for sure, but I think there could be some major security (and privacy) concerns for all of your website members.

    They don’t tell you straight out that you aren’t adding functionality to your WordPress website, they are providing a portal to their website, which shows up on your website making it appear like it’s your website. Quite crafty. – A FACADE-

    They are using ‘elgg’ social software on their server. They authenticate using cookies and they secretly provide your website with a ‘secret key’ and their coding changes the .htaccess rewrites for your website to redirect your members to their website. The page they tell you to add, is the same name as the directory of their plugin and the rewrite for permalinks makes it appear that your members are looking at a page, but they are looking at another website. The shortcode they tell you to put on the page you create for their plugin calls the function that imports the data from their website to display on that page. So, basically.. it’s an interface with their website gra4.com. Their website shows up on an ip address in the United States, but they are Russian (no prejudice, just an observation), to share the information. Part of their coding calls a another website virturossiya.org/c (which shows up as ‘GRA4SetConfigValue(‘GRA4_remote_url’… in one of the files. That website also shows up on an ip in the USA, but the page title is in Russian and the favicon is a red star. (looking at that last domain name I can see ‘virtual russia’).

    In conclusion, from my perspective, it’s a scam. You do NOT get your own social network with their ‘plugin’, you get to include your members into their website, without your members knowing it.. I don’t think that would be consistent with the spirit of WordPress or BuddyPress. I would stick with BuddyPress or one of the other true WordPress plugins that provide social networking within WordPress, unless you want to find yourself answering questions you have no answer for sometime in the future.. Let alone the risk of your own website and hosting information somehow being hacked. The concern I have is, if they are being honest, why hide all of this from WordPress users of their plugin? With their obvious ability to rewrite and redirect, who knows (really) where your website and member information is going?

    If they do get back into the WordPress Repository, I would really be careful of these people. Always check to see if a plugin requires a connection with remote servers before you consider using a plugin.

    #138506
    charlietech
    Participant

    ‘add_filter(‘show_admin_bar’, ‘__return_false’);` in your functions.php file to turn off fully.

    Alternatively, you can use:

    ‘Settings > BuddyPress : Toolbar Show the Toolbar for logged out users’

    You can also select to show or hide the WordPress admin bar on your own profile.

    If none of those work for you then you may need to look see if your theme is forcing something.

    #138471
    Tammie Lister
    Moderator

    Hi Charlietech, the BuddyPress admin bar is now merged with the WordPress one.

    So, you can use this:

    ‘add_filter(‘show_admin_bar’, ‘__return_false’);` in your functions.php file to turn off fully.

    Alternatively, you can use:

    ‘Settings > BuddyPress : Toolbar Show the Toolbar for logged out users’

    You can also select to show or hide the WordPress admin bar on your own profile.

    If none of those work for you then you may need to look see if your theme is forcing something.

    Just a slight point on top though, if possible can you only start one thread per question as it does help to focus responses?

    kraigg
    Participant

    Can anyone help me?

    I’m trying to filter the activity stream so that it only displays ‘published’ forum topics and replies.

    I’m using bbPressModeration, which marks all forum topics and posts as ‘pending’, until the administrator approves and publishes the content. The problem is that pending content still appears in the activity stream.

    I’m using the code below for my custom activity stream.

    `
    <?php

    /* = Generate Custom Activity Stream


    * Place this function anywhere you want to show your custom stream.
    * Should accept any of these parameters:
    * https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
    */

    my_activity_stream(‘per_page=4&page=1&action=new_forum_post,new_blog_comment,new_blog_post,new_forum_topic’);

    /* = Custom Activity Stream


    * Place this function in bp-custom.php (in your plugins directory)
    */
    function my_activity_stream($args ) {

    if ( bp_has_activities($args) ) : ?>

      <li class="” id=”activity-“>

      <a href="”>

    <?php endif;

    wp_reset_query();

    }
    `

    #137038
    maggieymae
    Member

    I want to check these out. Thanks!

    Here are a few of my favorites…

    BuddyPress Profile Privacy – Users can hide different parts of their profiles… very cool.

    The following are not Buddypress but they seem very compatible so far.

    AG Custom Admin This is Dashboard Editor and you can control what your members see.
    I have cleaned up their dashboard – they no longer see the wordpress profile or the press this tool or other random plugin settings. You can do so much with this tool and completely customize the way the back end looks. I was amazed.

    User Role Editor – You can add new roles and give and take away specific powers. I have made a new role based on the Author role and gave the new role category powers. The site I am building is a family recipe site and I wanted to allow them to add their name as a category and also different cooking terms. This plugin is also a nice way to view every detail of the standard roles in WordPress.

    Search Everything – This plugin seems to help with searching… I wasn’t getting any results before installing but now everything comes up.

    #136368
    foobool
    Member

    <?php

    /**
    * Admin Bar
    *
    * This code handles the building and rendering of the press bar.
    */

    /**
    * Instantiate the admin bar object and set it up as a global for access elsewhere.
    *
    * To hide the admin bar, you’re looking in the wrong place. Unhooking this function will not
    * properly remove the admin bar. For that, use show_admin_bar(false) or the show_admin_bar filter.
    *
    * @since 3.1.0
    * @access private
    * @return bool Whether the admin bar was successfully initialized.
    */
    function hide_admin_bar() {
    return false;
    }
    add_filter( ‘show_admin_bar’, ‘hide_admin_bar’ );

    function _wp_admin_bar_init() {
    global $wp_admin_bar;

    if ( ! is_admin_bar_showing() )
    return false;

    /* Load the admin bar class code ready for instantiation */
    require( ABSPATH . WPINC . ‘/class-wp-admin-bar.php’ );

    /* Instantiate the admin bar */
    $admin_bar_class = apply_filters( ‘wp_admin_bar_class’, ‘WP_Admin_Bar’ );
    if ( class_exists( $admin_bar_class ) )
    $wp_admin_bar = new $admin_bar_class;
    else

    #135815
    Paul Wong-Gibbs
    Keymaster

    Can you confirm you’ve checked what the last poster said? In wp-admin, go to the BuddyPress > Settings screen, and check that the “Hide admin bar for logged out users” option is disabled.

    #135782
    b1gft
    Participant

    If its not showing for logged out users but showing for you when you login, go to buddypress > settings> and make sure its clicked to no where it ask’s Hide admin bar for logged out users?

Viewing 25 results - 351 through 375 (of 627 total)
Skip to toolbar