Back to vBulletin 4.x Template Modifications

[RELEASE] Youtube on profile vb4
Mod Version: 1.00, by Luis

vB Version: 4.1.x Rating: (0 vote - 0 average) Installs: 5
Released: 14 Aug 2012 Last Update: Never Downloads: 0
Not Supported Template Edits  

hi guys
On vb.org there are some releases like for vb3 and Vb4, but for me, no one seem to work, it was also necessary to create many user fields.

Considering that no product meets my needs, i haven't thought of an alternative using only 2 user fields; there monster as

First step
Make 2 new field:

.first field
title: YouTube ID
Desription: Put your YouTube ID here. (Ex: Put KuyJkrAL9H4 NOT https://www.youtube.com/watch=)
Private Field: yes
Last 2 option: no

.second field
title: YouTube Title
Desription: Put your YouTube Title here. (title show up ur video)
Private Field: yes
Last 2 option: no

Now...

go in acp > style and template > find memberinfo template> You can choose to place your player where you want to, by inserting the code under albums, groups etc.

Code:
		  {vb:raw template_hook.profile_sidebar_first}
		  {vb:raw blocks.stats_mini}
		  {vb:raw template_hook.profile_sidebar_stats}
		  {vb:raw blocks.friends_mini}
		  {vb:raw template_hook.profile_sidebar_friends}
		  {vb:raw blocks.albums}
		  {vb:raw template_hook.profile_sidebar_albums}
		  {vb:raw blocks.groups}
		  {vb:raw template_hook.profile_sidebar_groups}
		  {vb:raw blocks.visitors}
		  {vb:raw template_hook.profile_sidebar_last}
Code:
<vb:if condition="$userinfo['fieldfirst']">
<div class="friends_mini friends block">
  <h5 class="blocksubhead userprof_blocksubhead smaller ">{vb:raw userinfo.fieldsecond}</h5>
    <div class="blockbody userprof_content userprof_content_border">
      <div class="blockrow member_blockrow">
<iframe width="214" height="200" src="http://www.youtube.com/embed/{vb:raw userinfo.fieldfirst}?rel=0&amp;feature&amp;hl=en_US&amp;fs&amp;autoplay=1&amp;rel=0;showinfo=0;controls=0; rel=0&amp;color1=0xFFFFFF&amp;color2=0xFFFFFF&amp;autoplay=1" type="application/x-shockwave-flash"></iframe>  
</div>
    </div>          
 </div>  
</vb:if>

enjoy



Demo
http://pwnedh4x0rz.com/members/1-luis/

thx asterix and cionfs for support c0de!

Download

No files for download.

Similar Mods

Miscellaneous Hacks [vb4] Youtube Player - NEW skin v.3 vBulletin 4.x Template Modifications

vblts.ru supports vBulletin®, 2022-2024