Can you please add functionality to allow only certain usergroups to put this on their profile?
This works like a charm. It only strikes me as odd, to put the video title between the block title and the video, instead of replacing the block title with the video title. I have changed this by moving some code around in memberinfo_block_youtube:
PHP Code:
<!-- youtube -->
<if condition="$userinfo[field9]">
<div id="youtube" class="tborder content_block">
<h4 class="thead block_title">
<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('youtube')"><img id="collapseimg_youtube" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
<a name="albums"></a>
<span class="block_name"><if condition="$userinfo[field22]">$userinfo[field22]</if></span>
</h4>
<div class="block_content" id="collapseobj_youtube" style="">
<div class="alt2 block_row block_footer"><object width="240" height="200"><param name="movie" value="http://www.youtube.com/v/$userinfo[field9]"></param><param name="wmode" value="transparent"></param>
<embed src="http://www.youtube.com/v/$userinfo[field9]" type="application/x-shockwave-flash" wmode="transparent" width="240" height="200"></embed></object>
</div>
</div>
</div>
</if>
<!-- / youtube -->
Note that my profile field ID's are 9 and 22. If you use the above, then you need to change this.
Would it be possible to change this hack, so that more flash video sites can be used and not just youtube?