While developing or HTML-coding a Cotonti-powered website you ofter come across a situation when you have to output separate HTML code for different groups. Let's say, you need a block for admins only. The standard solution looks like:
<!-- IF {PHP.usr.maingrp} == 5 -->
This text is for admins only
<!-- ENDIF -->
This, however, only works for a main usergroup. What if you assign a secondary group "Donator" for a member of the "Members" group?
Usergroups is a tiny plugin designed to give Cotonti developer capability to output any HTML code for a specific user group using conditions like:
<!-- IF {PHP.usr.groups.8} -->
This text is for members of group #8
<!-- ENDIF -->
Thanked: 7 mal
Strange how you never think of it, until you can start using it :)
this is such a case.. thx kort
Thanked: 76 mal
Thank Kort! Lets give for everyone all plugins developed by me!
Thanked: 217 mal
Only when I get back all the money for the work -- both unfinished and not even done by you (which I am sure I won't, for you do not have the money) -- only then you will be entitled to call these plugins "developed by you". Cheers!
Thanked: 87 mal
За деньгами от Паши есть очередь оказывается)
Thanked: 217 mal
Да, этот успел понабрать авансов и слинял горчишники ставить