Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 22, 20205 yr 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
February 22, 20205 yr Not tested: {{if !\IPS\Member::loggedIn()->inGroup( array( 4, 6, 7, 10, 11 ) )}} Show ads {{endif}}
February 24, 20205 yr 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.