PDA

View Full Version : Hide specific user ID in post bit


Super Jinni
06-15-2008, 02:18 AM
OK

I have users IDs displayed in postbit after I added:

<if condition="$post['userid']"><div>$vbphrase[userid]: $post[userid]</div></if>
to the postbit template

but I want to hide specific IDs form members in postbit

any ideas how to do that? ^^

:)

Boofo
06-15-2008, 03:33 AM
<if condition="!in_array($post['userid'], array(1,3,5))">
<div>$vbphrase[userid]: $post[userid]</div>
</if>

with the 1,3,5 the IDs you don't want to show it to.

Super Jinni
06-15-2008, 09:11 AM
it works like charm

many thanks

:)