Quote:
Originally Posted by ChU v2
Try editing this:
HTML Code:
<if condition="in_array($post['usergroupid'], array(5,6,7,12,14)) AND $post[fieldXX]">
Where it says ['usergroupid'], array(5,6,7,12,14))
Enter in the Usergroup IDs that you want to have access to it.
|
If I understand this correctly then that will allow full access to this function. I too want to use this for supporters. Meaning that I want everyone to see that supporters can have this cool avatar, while non-supporters can see it, but can not add Youtube video as their avatar.
Somehow I cant get this to work. Here is my POSTBIT template:
Code:
<if condition="in_array($post['usergroupid'], array(6,23)) OR in_array($post['membergroupids'], array(6,23)) AND $post[field21]" >
<div class="smallfont"><br>
<object width="150" height="123.5"><param name="movie" value="http://www.youtube.com/v/$post[field21]"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$post[field21]" type="application/x-shockwave-flash" wmode="transparent" width="150" height="123.5"></embed></object>
</div>
<else />
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
</if>
The top line give an error.
Can it be that the myspace profile rewrite is messing with this hack? (Since it parses youtube videos through custom profile fields as well)
Can someone help?