With regards to the switch like so for HTML markup
Code: Select all
<!-- IF not S_GROUP_2 -->your ad code<!-- ENDIF -->
If your create a new ACP module in php code only using no HTML template file in /adm/style/ directory, can you use the group switch within this ACP module php code to restrict access to code within an Options Legend at all please.
So for example if I wished to hide legend 1 from all admin group members in the acp, except for super admins in group 8, I would do this in HTML markup
'vars' => array
<!-- IF not S_GROUP_8 -->
// Options (global)
'legend1' => 'ACP_TOOL_LEGEND1',
'tool_enable' => array('lang' => 'ACP_TOOL_ENABLE', 'validate' => 'bool', 'type' => 'radio:enabled_disabled', 'explain' => true ),
'tool_refresh_time' => array('lang' => 'ACP_TOOL_REFRESH_TIME', 'validate' => 'int:5', 'type' => 'text:3:4', 'explain' => false),
<!-- ENDIF -->
However my code is in php not HTML so what would work in this example please?
Thank you ~ Robert