Back to vBulletin 4.x Add-ons

Random YouTube/Vimeo Video Widget
Mod Version: 1.0.1, by imported_dfmafia

vB Version: 4.x.x Rating: (3 votes - 4.67 average) Installs: 24
Released: 28 Jul 2012 Last Update: 28 Jul 2012 Downloads: 178
Not Supported Re-usable Code Translations External Content  

Random YouTube Video Widget

Description: Allows you to display 1 random video from any number of videos you choose.

Tested on vB 4.2.0 Patch Level 2

Live Demo: http://mrdeids.com





Installation:
1. Download Random_Video_Widget_v1.0.1.zip
2. Unzip contents and view README
3. Go To -> Admincp -> vBulletin CMS -> Widgets
4. Create new widget
Widget Type: Static HTML. Name it whatever you desire. ie. "Random Video"and save it.
5. Configure The Widget in VBulletin CMS -> widgets (insert all the code in the Random_Video_Widget_v1.0.1.txt making edits highlighted in red to suit your site)
6. Add the widget in page through layout manager.

Uninstallation:
Delete "Random Video" (or whatever you named it) Widget in vBulletin CMS -> Widgets

The RED items below will need to be edited to suit your requirements.

video[0] = "http://www.youtube.com/embed/s7-pbVdiDas";

s7-pbVdiDas is the Video link you can get from your youtube channel.
ie. https://www.youtube.com/watch?v=s7-pbVdiDas

this is the total number of videos you want to pull from your youtube channel list
var numberOfVideos = 12;

adjust for height and width of your layout.
width="340" height="280"

I do not have a Vimeo account but it should work the same way.
for vimeo use:
video[0] = "http://player.vimeo.com/video/XXXXXXXX?title=0&byline=0&portrait=0";

XXXXXXXX is the Video link you can get from your vimeo video id.

Please Click Mark As Installed If You Have Installed.

Mod History:
v1.0.0 :: 27 July 2012 :: First Release
v1.0.1 :: 28 July 2012 :: Added Vimeo Support

Download

File Type: %1$s Random_Video_Widget_v1.0.1.zip (209.0 KB, 219 downloads)

Screenshots

Click image for larger version
Name:	random_video.PNG
Views:	1290
Size:	77.9 KB
ID:	140145   Click image for larger version
Name:	random_video2.PNG
Views:	1285
Size:	130.6 KB
ID:	140148  


vblts.ru supports vBulletin®, 2022-2024