PDA

View Full Version : vBulletin 4 - If Conditionals in CMS?


silver.fox1969
08-03-2012, 05:23 PM
Hey Community,

i wanted to ask how to integrade Vb4 if Conditionals in my Vb4 CMS article? I want to post a self-host video but only usergroup 2 (member) should see this embed code.

I have tried to post this code:

<vb:if condition="$show['member']">My Video link</vb:if>

and

<vb:if condition="is_member_of($bbuserinfo, 2)">My Video link</vb:if>

but it doesnt work. Is there an option to integrate it to cms articles?

Templates Conditionals works fine ...

regards

BirdOPrey5
08-04-2012, 08:52 AM
Thread moved to an appropriate forum.

Short answer is you cannot use conditionals in content (CMS Articles, Blogs, or Posts) they work only in templates.

The long answer is to search for "Hide hack" or "Hide BBCode" there are some add-ons that allow for a BBCode to show content only to specific usergroups, but I am not sure they work in the CMS or not.