WHMCS ChrisD Posted September 3, 2017 Posted September 3, 2017 Hi everyone, I'm wondering if there is an easy way to remove the "Message" below from some users in the Staff Directory? For certain people on the list I'm not wanting to show the message list. Thanks for any advise Chris
Fosters Posted September 3, 2017 Posted September 3, 2017 You could create a custom staff directory template or edit the layout_block template https://invisioncommunity.com/4guides/themes-and-customizations/advanced-theming/using-the-template-editor-r125/ and remove {{if !member.members_disable_pm AND !$user->member()->members_disable_pm AND \IPS\Member::loggedIn()->member_id AND \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'messaging' ) )}} <br> <a href='{url="app=core&module=messaging&controller=messenger&do=compose&to={$user->member()->member_id}" seoTemplate="messenger_compose"}' data-ipsDialog data-ipsDialog-title='{lang="compose_new"}' data-ipsDialog-forceReload data-ipsDialog-remoteSubmit data-ipsDialog-flashMessage="{lang="message_sent"}"><i class='fa fa-envelope'></i> {lang="message_send"}</a> {{endif}}
WHMCS ChrisD Posted September 3, 2017 Author Posted September 3, 2017 Thanks Fosters! I'll give that a whirl
newbie LAC Posted September 6, 2017 Posted September 6, 2017 Hello, Simple css div[class*="cStaffDirectory"] [href*="/compose/?to=49"], div[class*="cStaffDirectory"] [href*="/compose/?to=62"] { display: none; } Before After Change 49 and 62 on users IDs
Recommended Posts
Archived
This topic is now archived and is closed to further replies.