Back to vBulletin 3.5 Template Modifications

Youtube Video in User Profiles
Mod Version: 1.00, by ryans

This modification is in the archives.
vB Version: 3.5.7 Rating: (0 vote - 0 average) Installs: 3
Released: 18 Jan 2007 Last Update: Never Downloads: 0
Not Supported  

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>
Be sure to change the field88 to the number that corresponds with your value on your forums.

Example URL: http://www.sromagazine.com/members/ryans

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024