Code:
$blocklist = array_merge($blocklist, array(
'playlist' => array(
'class' => 'Playlist',
'title' => 'Playlist',
'hook_location' => 'profile_left_last'
)
));
class vB_ProfileBlock_playlist extends vB_ProfileBlock
{
var $template_name = 'memberinfo_block_playlist';
function confirm_empty_wrap()
{
return false;
}
function confirm_display()
{
return ($this->block_data['playlist'] != '');
}
function prepare_output($id = '', $options = array())
{
$this->block_data['playlist'] = '<div style="text-align: center; margin-left: auto; visibility:visible; margin-right: auto; width:450px;"><embed style="width:435px; visibility:visible; height:270px;" allowScriptAccess="never" src="http://www.greatprofilemusic.com/mc/mp3player-othersite.swf?config=http://www.greatprofilemusic.com/mc/config/config_black_shuffle.xml&mywidth=435&myheight=270&playlist_url=http://www.greatprofilemusic.com/loadplaylist.php?playlist='$this->profile->userinfo[field7]'" menu="false" quality="high" width="435" height="270" name="mp3player" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" border="0"/> </div>';
}
}
I've tried everything, anyone got any suggestions?