Currently in my 3.6 build I have extra blocks created in my users profiles. One in particular is a music player for their music. It only shows up if the field is entered (by me) on their profile.
My current code is:
Code:
<!-- Music Player Begin -->
<if condition="$post[field30]">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="450" height="247" id="mp3player" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="mp3player.swf?xml=music/$userinfo[field30]/config.xml" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="mp3player.swf?xml=music/$userinfo[field30]/config.xml" quality="high" bgcolor="#ffffff" width="335" height="247" name="mp3player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</td>
</tr>
</table>
<p></if>
<!-- Music Player End -->
Is there any easy to follow directions for taking this code and making a conditional block on the right hand side of the users profile. Such as the albums, mini stats, etc blocks? I've seen a post about creating new tabs but I only need this data from the field to show up in a side block, not a tab, but I still want my tabs to work as they do.