Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How do I get rid of "Activity" input box + comment button on member's profile pages?

adrial79adrial79
edited February 2015 in Vanilla 2.0 - 2.8

Hey all!

I keep having members mistakenly using the "Activity" function to post messages that are meant to be private messages. I'd like to just delete that altogether. How do I do this?

Specifically, here's what I want to delete:
http://screencast.com/t/yFyNRm3n

Thank you!

Comments

  • rasteronrasteron forum.rastercode.com ✭✭

    hey @adrial79

    you can just use CSS to hide the activity textbox and subheader by adding this to your custom stylesheet:

    #dashboard_profile_index form.Activity, #dashboard_profile_index div.Profile h2.H {
     display:none;   
    }
    

    hope this helps.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    It may be theme dependent but you can try this but it will remove the activity form from the profile as well. Maybe you can add a message that tells users the activity is a public broadcast not private.

    .ActivityFormWrap{
    display:none;
    }
    
  • AdrianAdrian Wandering Spirit Montreal MVP
    edited February 2015

    You can also add the below to your /conf/config.php file

    $Configuration['Garden']['Profile']['ShowActivities']= FALSE;

    This will remove activities from profile pages completely.

  • @adrial79 said:
    I keep having members mistakenly using the "Activity" function to post messages that are meant to be private messages.

    I've been having the same problem as well.

  • chanhchanh OngETC.com - CMS Researcher ✭✭

    I added that line but the activity page is still there.

  • @chanh said:
    I added that line but the activity page is still there.

    Delete your cache.

  • AdrianAdrian Wandering Spirit Montreal MVP
    edited February 2015

    Another option, could be adding a warning. You can place this in your template theme (as long as it ends with tpl). Add it above {asset name="Content"}

    {if InSection("Profile")}
    <div class="activityalert">
    <b>Please note: all activity posts are public!</b>
    </div>
    {/if}
    

    Then maybe add some nice CSS to your theme:

    div.activityalert {
    background-color: #ff0000 !important;
    color: #fff !important;
    padding:5px;
    margin-bottom: 5px;
    }
    
  • @Adrian said:
    You can also add the below to your /conf/config.php file

    $Configuration['Garden']['Profile']['ShowActivities']= FALSE;

    This will remove activities from profile pages completely.

    This worked perfectly! Thank you!

  • chanhchanh OngETC.com - CMS Researcher ✭✭

    I just did and it is still shows. Thanks

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Try using jquery and disable minify or similar if you use those.

    jQuery(document).ready(function ($) {
    $( "div.ActivityFormWrap" ).hide();
    });
    
  • JasonBarnabeJasonBarnabe Cynical Salamander ✭✭

    In addition to $Configuration['Garden']['Profile']['ShowActivities']= FALSE;, if you remove the "View Activity" permission from accounts, they won't be able to access the general Activity page either.

Sign In or Register to comment.