The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Show the Posters Primary and Secondary usergroups in Post Bit Legacy
I'm looking for how you can show the posters (NOT post reader's) primary and secondary usergroups in Post Bit Legacy
I see that I can show the primary usergroup like Code:
<vb:if condition="$post['usergroupid'] == 7">Show something based on posters primary user group</vb:if> What would I use in place of usergroupid if I wanted the condition to be based on checking both the primary and secondary user groups of the poster |
#2
|
||||
|
||||
does that conditional not work?
|
#3
|
|||
|
|||
In my testing it seems to only work for the posters Primary only.
I'm trying to get a display based off of the posters Primary and Secondary usergroups. |
#4
|
||||
|
||||
Code:
<vb:if condition="is_member_of($post, 2, 5, 7 )">Do this if in group 2, 5 or 7</vb:if> |
Благодарность от: | ||
cardealercheck |
#5
|
|||
|
|||
Works perfectly, thank you so much!
Since I wanted to show something different on each line by usergroup I set mine up like this using your code where 7 was the primary user group and 26 was the secondary. Code:
<vb:if condition="is_member_of($post, 7 )"> Special text for usergroup7 </vb:if> <vb:if condition="is_member_of($post, 26 )"> Special text for usergroup26 </vb:if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|