Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

  • Suraj
    Participant

    @surajverma

    you guys are just awesome.
    I have a feature request. I searched for the same using Google and almost across all the buddypress related support forum and tried all the codes but the thing is not working for me, I want to hide the admin activities to appear on my site, but it is not working, if possible, can you add a feature to hide all the activity of any particular user if he wants to including his/her online status.


    Suraj
    Participant

    @surajverma

    @ubernaut: No problem, thank you very much. At least you tried to help. 🙂


    Suraj
    Participant

    @surajverma

    @ubernaut: yes, I did the same with the said parameters all correct, as I am using frisco theme then I can do the same thing by putting the code in function-custom.php. First I tried the bp-custom.php (placed in plugin folder) option , that didn’t worked out for me, so I tried the later, but that didn’t worked either. 🙁


    Suraj
    Participant

    @surajverma

    @ubernaut: Thank you again for your prompt response, I tried this earlier but it this one is also not working, if I am not wrong then it must be the code provided on Brajesh Singh’s blog, buddydev. I am using Frisco Child theme for Buddypress, I tried placing both the codes in function-custom.php and as mentioned in plugins folder as well,but didn’t succeeded. :-(. Please help, what to do. I need to make the website live.


    Suraj
    Participant

    @surajverma

    @ubernaut: Thank you very much for your response, What information do I need to provide you to check what is the issue ?

    I made a new file with the name bp-custom.php with this code

    <?php
    // Code for: 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’);
    //Code for: 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(’admin’ == $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’);
    ?>

    and placed it in plugin folder of the wp installation. It is not giving any error but admin activity is showing in the activity. One more thing I need to know, whether it will remove previous activity as well or not ? and do I need to change the account name to admin ?
    Thanks a ton in advance.


    Suraj
    Participant

    @surajverma

    @umagokhale: hello, was wondering for last few days about the same, till now no luck. The code you provided is not working on my page. The page is not live yet so can not provide the link.

Viewing 6 replies - 1 through 6 (of 6 total)
Skip to toolbar