PDA

View Full Version : conditional help needed


Brexen
08-28-2012, 07:10 PM
I currently have a conditinal so that if the thread viewer is apart of usergroup x, he/she will get displayed a certain amount of text.

however I want it to be so that if the poster in the thread is apart of usergroup x, text is displayed in the postbit.

Example below.

Thread Viewer = A
Thread Poster = B

X = <vb:if condition="is_member_of($bbuserinfo, 6)">Text</vb:if>


Currently

If A views post by B. The box will display the text (X) if he/she (A) is apart of usergroup 6.

What i'm after

If A views post by B. The box will display the text (X) if B is apart of usergroup 6.

kh99
08-28-2012, 10:58 PM
I think what you want is:

<vb:if condition="is_member_of($post, 6)">Text</vb:if>

Brexen
08-28-2012, 11:05 PM
Brilliant thanks as always KH99 :)