vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=318571

VB:IF quesiton concerning usergroupID
by ed762
06 May 2015 20:13

The users in my board are all in the primary group of registered member, and some are additional users of other groups.

I want to display certain graphic in the postbit for the members in the primary registered user usergroup, who are also additional members of the usergroup 10,11,12.

For example, a user will be a primary user of group 2 ( registered users) and an additional user of group 10 ( or 11 or 12)

So I put the following into the postbit template:

<vb:if condition="in_array ($post[usergroupid], array(10,11,12))">

XXXX

</vb:if>

But that does not work. Does the statement not work on group ID of an additional user?

kh99 06 May 2015 20:16

Yes, use this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

because the additional usergroups aren't stored in the usergroupid.

ed762 06 May 2015 20:47

Thanks!


All times are GMT. The time now is 16:36.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.