PDA

View Full Version : Usergroup conditional


Shanj
11-17-2010, 09:04 PM
I'm new to trying template conditionals so this will undoubtedly look very basic to those who know.

I want a chunk of html in the page body to appear to one usergroup or several but not to anyone else.
I found

<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if>

Do I treat it like an html bracket and simply place my html chunk in it in the body area of a template?
Like

<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)">
html html html
</if>

I'm creating some static pages with the VB header and footer so how would I add code so all others except the usergroup or usergroups specified see a message I place there?
saying sorry no access please use Back?

Lynne
11-17-2010, 10:01 PM
Yes you would put html inbetween those <if> and </if> code tags.

Shanj
11-17-2010, 11:19 PM
Lynne thank you so much.