The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
If statement for Usergroups
Need somemore help. If this information is already posted somewhere in an article or something then forgive me and please refer me to that thread.
But what I'm trying to do is display an image in the postbit depending on whether or not the posted user (not user viewing the thread) is in a certain usergroup. I did this in vb3 but have no idea how to do it in vb4 since most statements have changed. Also keep in mind I'm a php/vb newbie so I'm having trouble writing the statement myself. Basically jsut need a statement that says "if user is in X group display X image". Thanks to anyone that can help. |
#2
|
|||
|
|||
Bump.
|
#3
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=231525" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=231525</a>
|
#4
|
||||
|
||||
pretty sure it's
Code:
<vb:if condition="is_member_of($post, 6,7)"> <!--your code here--> </vb:if> and that would go in your postbit(_legacy) template Link to vB4 template conditionals https://vborg.vbsupport.ru/showthread.php?t=231525 |
#5
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|