Quote:
Originally Posted by iSins
Not working =/ where exactly do i add the code?
|
In the Member Info Template, replace the current code with this!
Code:
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">
<!---Flash Music Player--->
<vb:if condition="$userinfo['fieldxx']">
<div class="block">
<div class="visitors">
<h5 class="blocksubhead smaller">My Profile Song</h5>
<div class="blockbody">
<div class="blockrow">
<div class="meta">
<li>
<center><tbody><tr>
<td class="alt1" style="font-family: Verdana; font-size: 10pt">
<script src="{vb:raw vboptions.bburl}/embed/swfobject.js" type="text/javascript"></script>
<div id="player"></div>
<script type="text/javascript">
var so = new SWFObject('{vb:raw vboptions.bburl}/embed/player.swf','mpl','170','20','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file={vb:raw userinfo.fieldxx}&volume=100&autostart=true');
so.write('player');
</script>
</td>
</tr>
</tbody></center>
</div>
</div>
</div>
</div>
</div>
<div class="underblock"></div>
</vb:if>
<!---Flash Music Player--->
</vb:if>
Replace 1,2,3 with the usergroups which you want to allow to use this player.!!