The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I need the conditional for poster usergroup ID in postbit
Hello there!
Here is what I am trying to achieve. In postbit_legacy I want to display a word if the person who made the post is in the usergroup ID 56. How do I write the conditional for that? If I use the is_member_of conditional, it applies to the person viewing the post - not the person who posted it. Any help is very much appreciated. PS: This is for vB4. |
#2
|
|||
|
|||
You can use:
Code:
<vb:if condition="is_member_of($post, 56)"> |
#3
|
|||
|
|||
Thanks very much kh! Worked like a charm
|
#4
|
||||
|
||||
:up: How would a conditional be written in postbit legacy, for the following.
An image is shown in the postbit to everyone but NOT the person who made the post. Hope this is clear. Thankyou EDIT: Done it! Code:
<vb:if condition="$bbuserinfo[userid] != $post[userid]">my code</vb:if> |
#5
|
|||
|
|||
How would you write a conditional just like this for SHOWTHREAD instead of postbit legacy?
Code:
<vb:if condition="is_member_of($post, 56)"> |
#6
|
|||
|
|||
Well, you could try this:
Code:
<vb:if condition="is_member_of($bbuserinfo, 56)"> but that's not exactly the same since it's checking the user who's looking at the page, not the user who wrote a post. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|