Jump to content

What is the code to hide elements from user groups?

Featured Replies

Posted

can someone tell me what the code is to hide elements from certain user groups?

I wish to hide my ads i have hard coded in global template from group id=4,10, 6, 11,7

Not tested:

{{if !\IPS\Member::loggedIn()->inGroup( array( 4, 6, 7, 10, 11 ) )}}
	Show ads
{{endif}}

 

  • Author

Please send me PayPal link for a small donation

On 2/22/2020 at 8:36 PM, fix3r said:

can someone tell me what the code is to hide elements from certain user groups?

I wish to hide my ads i have hard coded in global template from group id=4,10, 6, 11,7

 

Archived

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

Recently Browsing 0

  • No registered users viewing this page.