cotonti.com : xtemplate help https://www.cotonti.com Последние сообщения в теме Cotonti en Sun, 12 Oct 2025 08:23:23 -0000 fraze i put in <!-- IF {PHP.usr.maingrp} >= 5 -->

so any user with a maingroup number higher than this can see the block.  essentially on my site it allows only admins (group 5) and custom usergroups (6+) to see the block. 

thanks for the help :)
 

]]>
чт, 16 авг 2012 09:22:19 -0000
Twiebie If you want to allow multiple groups to access whatever is in the block you can use something like this:

<!-- IF {PHP.usr.maingrp} == 6 OR {PHP.usr.maingrp} == 7 -->
Your block here
<!-- ENDIF -->
]]>
чт, 16 авг 2012 01:14:05 -0000
fraze it doesnt appear to work unfortunately.  is there a list of the php.usr.x tags anywhere?

Added 1 minutes later:

scratch that - working now :)

]]>
ср, 15 авг 2012 22:01:31 -0000
Twiebie Try this, Fraze:

<!-- IF {PHP.usr.maingrp} == 6 -->
Your block here
<!-- ENDIF -->

 

]]>
ср, 15 авг 2012 21:56:06 -0000
fraze Hi Guys

 

I'd like to be able to show a logic block to certain groups.  is there any easy way I can do this??  is the following correct?

<!-- IF  {PHP.g} >= 6  -->

 

]]>
ср, 15 авг 2012 20:55:56 -0000