Quote:
Originally Posted by knigh22
I have 3.6.8 PL2. It won't work heres the code
Code:
<if condition="in_array($post['usergroupid'], array(5,6,7,12,14)) AND $post[field5]">
<td>
<object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[field5]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[field5]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object>
</td>
<else />
<if condition="$show['avatar']">
<td><img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="<phrase 1="$userinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" style="border:1px solid $stylevar[tborder_bgcolor]; border-top:none" /></td>
<else />
<td> </td>
</if>
</if>
</if>
|
You have the Usergroups ID Numbers set to the same ones that come in the example. Do you actually have user groups that use those numbers? Because your supposed to set those to the ID Numbers of the User Groups you want it to work for.
Also, just to make things easier, you might want to use [CODE], [PHP] or [HTML] tags next time. Makes it easier to read.