Jump to content

Removing "Message" from Staff Directory


WHMCS ChrisD

Recommended Posts

Posted

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

Posted

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}}

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...