Post: vBulletin: YouTube/Video on Profile
02-23-2014, 11:33 PM #1
Script
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); I was working on some development for vBulletin the other day and saw there's some exploits in the plugin(s) for this so i decided to write a basic code for it instead of using a plugin.
I've written up some vBulletin code to just put in the 'MEMBERINFO' template.
It can be altered/edited alot to be better as needed.
Field 5 is the title of the video.
Field 6 is the link of the video.

You need to add 2 new user profile fields for this to work.

    
<!-- YOUTUBE ON PROFILE -->

<vb:if condition="$userinfo['field5'] AND $userinfo['field6']">
<h5 class="blocksubhead userprof_blocksubhead smaller">{vb:raw userinfo.field5}</h5>
<vb:if condition="$userinfo['field6']">
<iframe width="240" height="240" src="//www.youtube.com/embed/{vb:raw userinfo.field6}?autoplay=1" frameborder="0" allowfullscreen></iframe>
</vb:if>
</vb:if>

<!-- END YOUTUBE -->


Written for vBulletin 4.2.x, but should work for 4.x.x

You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Script for this useful post:

-SuperMan, ResistTheSun,
02-24-2014, 12:41 AM #2
ResistTheSun
In Flames Much?
Nice work Smile
Simple but it works.

The following user thanked ResistTheSun for this useful post:

Script
03-17-2014, 08:06 AM #3
-SuperMan
Krazy Weed
Originally posted by Script View Post
I was working on some development for vBulletin the other day and saw there's some exploits in the plugin(s) for this so i decided to write a basic code for it instead of using a plugin.
I've written up some vBulletin code to just put in the 'MEMBERINFO' template.
It can be altered/edited alot to be better as needed.
Field 5 is the title of the video.
Field 6 is the link of the video.

You need to add 2 new user profile fields for this to work.

    
<!-- YOUTUBE ON PROFILE -->

<vb:if condition="$userinfo['field5'] AND $userinfo['field6']">
<h5 class="blocksubhead userprof_blocksubhead smaller">{vb:raw userinfo.field5}</h5>
<vb:if condition="$userinfo['field6']">
<iframe width="240" height="240" src="//www.youtube.com/embed/{vb:raw userinfo.field6}?autoplay=1" frameborder="0" allowfullscreen></iframe>
</vb:if>
</vb:if>

<!-- END YOUTUBE -->


Written for vBulletin 4.2.x, but should work for 4.x.x

You must login or register to view this content.


Very Nice <3


Originally posted by ResistTheSun View Post
Nice work Smile
Simple but it works.


Will This Be Implemented in the Future?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo