PDA

View Full Version : Need help with postbit conditional


bzcomputers
09-07-2012, 11:42 AM
I need a conditional statement for the postbit to show something as long as the user is a member, not a "staff" member, and the currently logged in user is not also the poster.

I've got the first two parts worked out but the "currently logged in user is not also the poster" I need some help with.

Thanks.

So far....
<vb:if condition="$show['member'] AND !is_member_of($post, 5, 6, 7)"

kh99
09-07-2012, 12:22 PM
Try this:

<vb:if condition="$show['member'] AND !is_member_of($post, 5, 6, 7) AND $post['userid'] != $bbuserinfo['userid']">

bzcomputers
09-07-2012, 12:48 PM
Works perfect, thanks.