PDA

View Full Version : vBulletin 4.2.2 Conditional terms in templae


MyLibary
05-10-2015, 12:23 PM
Hey guys,
I would like to set a condition so few members id can see the content of the code.

I know this code:

<vb:if condition="$bbuserinfo['userid'] == 667"></vb:if>

How do i set for more users? 667, 779, 499 for example?

MarkFL
05-10-2015, 12:29 PM
You could use:

<vb:if condition="in_array($bbuserinfo['userid'], array(667, 779, 499))">

MyLibary
05-10-2015, 07:07 PM
Perfecto!
Thanks alot!