Youtube Video in User Profiles
This modification is in the archives.
This has been covered on how to embed it in posts, but here is how you can do it on your user profile pages.
in AdminCP scroll down to "User Profile Fields" and Add New User Profile Field. Choose Single Line Text Box Title: You Tube Video #1 Description: Add the last part of the youtube url after the ?v=ngWb3oyUSow ie just the <b>ngWb3oyUSow</b part default value - leave it blank max length 100 display size 100 Up to you to have the field searchable and required. I say no though. Now edit memberinfo template. Add this code. anywhere you want. Code:
<if condition="$userinfo[field88]"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr class="tcat"> <td class="text" wrap="" style="" align="left" height="10" valign="center" colspan="2"> <span class=""><strong>$userinfo[username]'s Favorite Video Clip </span> </td> </font></strong> </tr> <tr class="alt2"> <td align="left" valign="top"> <div align="center"> <object width="425" height="350"> <param name="movie" value="http://www.youtube.com/v/$userinfo[field88]"> </param> <embed src="http://www.youtube.com/v/$userinfo[field88]" type="application/x-shockwave-flash" width="425" height="350"> </embed> </object> </div></td> </tr> </table> </if> Example URL: http://www.sromagazine.com/members/ryans Download No files for download. |