Log in

View Full Version : How do I show something only to members of one usergroup?


Hilary
07-15-2008, 06:56 PM
Hi,

I'd like to show some things (links, IM icons) only to members of a certain usergroup. I thought I knew how to do this...

<if condition="is_member_of($vbulletin->userinfo, 14)">restricted content here</if>

But it isn't working, at all. The contents of the 'if' vanishes for everyone, including members of usergroup 14.
~~~~~~~~~~~~~~~
Update!

Um. Apparently the results depend on what's inside the 'if'. :confused:

This, from the postbit template
<if condition="is_member_of($vbulletin->userinfo, 14)">

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>

</if>

- is not visible to anyone.

But this, from the header template
<if condition="is_member_of($vbulletin->userinfo, 14)"><li style="font-size:100%"><a href="http://www.onlineclarity.co.uk/friends/blog.php">Blogs</a><strong>&bull;</strong></li></if>
behaves as it should.

~~~~~~~~~~~~~~~
I need help!

Thanks...