Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 May 2015, 20:13
ed762 ed762 is offline
 
Join Date: Sep 2014
VB:IF quesiton concerning usergroupID

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?

Last edited by ed762; 06 May 2015 at 20:25.
Reply With Quote
  #2  
Old 06 May 2015, 20:16
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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.
Reply With Quote
  #3  
Old 06 May 2015, 20:47
ed762 ed762 is offline
 
Join Date: Sep 2014
Thanks!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:39.

Layout Options | Width: Wide Color: