PDA

View Full Version : I need the conditional for poster usergroup ID in postbit


Been Told
09-06-2012, 08:51 AM
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.

kh99
09-06-2012, 09:09 AM
You can use:

<vb:if condition="is_member_of($post, 56)">

Been Told
09-06-2012, 09:32 AM
Thanks very much kh! Worked like a charm :)

Davey-UK
11-24-2012, 10:11 AM
: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!
<vb:if condition="$bbuserinfo[userid] != $post[userid]">my code</vb:if>

BusterHymens
01-03-2013, 03:29 AM
How would you write a conditional just like this for SHOWTHREAD instead of postbit legacy?

<vb:if condition="is_member_of($post, 56)">

Thanks

kh99
01-03-2013, 11:03 AM
Well, you could try this:
<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.