How do I get rid of "Activity" input box + comment button on member's profile pages?
adrial79
✭
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!
0
Comments
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.
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; }❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
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.
I've been having the same problem as well.
I added that line but the activity page is still there.
Delete your cache.
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; }This worked perfectly! Thank you!
I just did and it is still shows. Thanks
Try using jquery and disable minify or similar if you use those.
jQuery(document).ready(function ($) { $( "div.ActivityFormWrap" ).hide(); });❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
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.