PDA

View Full Version : If display group template conditional


Reizar
10-06-2012, 11:44 AM
Hi,

I've been using this conditional in my templates:

<vb:if condition="is_member_of($post, 56)">

To make some customizations in my postbit. However I notice that utilizes someone's primary usergroup. (I'm using it to show a specific image depending on the usergroup )

Is there a similar conditional that uses whatever their display group is rather then primary usergroup?

Thanks

kh99
10-06-2012, 12:31 PM
You should be able to do this:
<vb:if condition="$post['displaygroupid'] == 56">


but all users will have a displaygroupid of 0 unless they have the display group set to something other than "Default".