PDA

View Full Version : conditional OR


we_scooter
01-19-2006, 11:25 PM
Hi
I have made a modification to a template to make it show something inside the tag <td> blabla</td>

and I made it to work for 1 usergroup, but i want it to work for more than usergroup now it works only for Admins , I need it for Admins, Supermods and mods...

here is my code

<if condition="$bbuserinfo[usergroupid]==6"> <td>
<a title="amwaaaah" href="http://www.vb.org">
<img border="0" src="qf-design/images/f_01.jpg" width="165" height="39" alt="TM"></a></td>



<else />

<td>
<a title="amwaaaah" href="http://www.vb.org">
<img border="0" src="qf-design/images/f_22.jpg" width="165" height="39" alt="just take it"></a></td></if>

this code works only for admins , we need supermods and mods to to be included.. how?

what should i add ???

peterska2
01-19-2006, 11:35 PM
<if condition="$bbuserinfo[usergroupid]=='6' or $bbuserinfo[usergroupid]=='5' or $bbuserinfo[usergroupid]=='7'">instead of<if condition=$bbuserinfo[usergroupid]==6">

we_scooter
01-19-2006, 11:48 PM
it worked just like charm .

thanks master

Gratitudes

nexialys
01-20-2006, 12:00 AM
it worked just like charm .
thanks master
Gratitudes
i would suggest you send her some flowers, she deserve it!

peterska2
01-20-2006, 12:52 AM
i would suggest you send her some flowers, she deserve it!

Sounds good. :) I like flowers. :D Plus my vase is empty coz I don't get them very often. :(

we_scooter
01-20-2006, 09:06 AM
I would do that if i get the address:P

peterska2
01-20-2006, 10:55 AM
When you've got another 1000 posts or so ask me and I might let you have it.

Reeve of shinra
01-20-2006, 10:57 AM
... is that love I smell in the air? ;)

peterska2
01-20-2006, 10:58 AM
Nah, that's only between me and a couple of special someones. I'm not telling who though. ;)