Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Random YouTube/Vimeo Video Widget Details »
Random YouTube/Vimeo Video Widget
Mod Version: 1.0.1, by imported_dfmafia (Member) imported_dfmafia is offline
Developer Last Online: Nov 2015 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (3 votes - 4.67 average) Installs: 22
Released: 27 Jul 2012 Last Update: 28 Jul 2012 Downloads: 152
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: 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. http://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 Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	random_video.PNG
Views:	1215
Size:	77.9 KB
ID:	140145   Click image for larger version

Name:	random_video2.PNG
Views:	1210
Size:	130.6 KB
ID:	140148  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 27 Jul 2012, 22:36
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Nice one m8 thank you will be useful in the coming weeks for us
Reply With Quote
  #3  
Old 28 Jul 2012, 01:19
imported_dfmafia's Avatar
imported_dfmafia imported_dfmafia is offline
 
Join Date: Jun 2004
Location: Wherever Uncle Sam Needs!
Real name: Brock
UPDATED:

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.
Reply With Quote
  #4  
Old 03 Aug 2012, 18:47
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
I don't get it

How does the mod randomize videos if I only put the number of the video in the string?

Is there a way to set it up so it will randomly take a video from a channel?

Like say, a video from the CNN Youtube channel, then one from the Fox News channel, then one from MSNBC channel?

If this doesn't do that will you please consider making that happen?

Cheers!
__________________
The Ultimate Chiller
¨˜”°º•BREW•º°”˜¨
www.politicalforums.net
www.oldhouseforums.com
Reply With Quote
  #5  
Old 04 Aug 2012, 00:41
imported_dfmafia's Avatar
imported_dfmafia imported_dfmafia is offline
 
Join Date: Jun 2004
Location: Wherever Uncle Sam Needs!
Real name: Brock
I haven't found a clean way to pull random videos from multiple channels. would be nice and something I am looking into.

This pulls a random video out of the list you provide. you can put as many videos links into it as you want. It will pull one of those videos randomly during each page load.

I have 12 on my channel. as I upload more videos, I just add that new video to the script. I'd rather have some control over the content of my site than pulling random videos from multiple channels.
Reply With Quote
  #6  
Old 04 Aug 2012, 04:12
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Since I have a political web site I need to be able to post the newest stuff from the news sites. They update their stuff daily so I can't keep track of which things I'll put into this mod.

Even if you had it for one channel would be ok. Then add a randomizer conditional for the other sites.

Just a thought
__________________
The Ultimate Chiller
¨˜”°º•BREW•º°”˜¨
www.politicalforums.net
www.oldhouseforums.com
Reply With Quote
  #7  
Old 04 Aug 2012, 04:18
imported_dfmafia's Avatar
imported_dfmafia imported_dfmafia is offline
 
Join Date: Jun 2004
Location: Wherever Uncle Sam Needs!
Real name: Brock
I'll look into it.
Reply With Quote
  #8  
Old 15 Aug 2012, 03:38
Syxguns's Avatar
Syxguns Syxguns is offline
 
Join Date: Jul 2011
I tagged it, the widget looks nice, but being able to pull from certain channels would be perfect.
Reply With Quote
  #9  
Old 11 Sep 2012, 01:02
imported_dfmafia's Avatar
imported_dfmafia imported_dfmafia is offline
 
Join Date: Jun 2004
Location: Wherever Uncle Sam Needs!
Real name: Brock
I haven't forgotten this. I've been busy coding sites. When I get some free time, I'll reattack this.
Reply With Quote
  #10  
Old 16 Oct 2012, 07:18
alhidaya alhidaya is offline
 
Join Date: Feb 2012
The installation of video work.. When you refresh the page cms, represent several videos and they do not go on video [0], vidéo [1], vidéo [2], vidéo [3] etc... Mais elles font se représentent par exemple : vidéo [0], vidéo [1], vidéo [1], vidéo[1], vidéo[2], vidéo[3], vidéo[1], vidéo[4],... The videos don't follow every time we refreshes the page.
Reply With Quote
  #11  
Old 16 Oct 2012, 07:30
imported_dfmafia's Avatar
imported_dfmafia imported_dfmafia is offline
 
Join Date: Jun 2004
Location: Wherever Uncle Sam Needs!
Real name: Brock
this is correct. they will not display in order, 1,2,3,4...
its random and will pull a video out randomly from the videos you have listed.

you may see one video pop up more than once in a row. its all random
Reply With Quote
  #12  
Old 29 Jan 2013, 17:18
Barbara1 Barbara1 is offline
 
Join Date: Jun 2010
is there a way to make the videos autoplay on load?
Reply With Quote
  #13  
Old 11 Feb 2013, 20:15
marccap's Avatar
marccap marccap is offline
 
Join Date: Feb 2012
Doesn't appear to work at all on 4.2 Level 3
Reply With Quote
  #14  
Old 20 May 2013, 23:20
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Originally Posted by marccap View Post
Doesn't appear to work at all on 4.2 Level 3
Its working fine for me in 4.2.0 pl 3
__________________
Reply With Quote
  #15  
Old 23 May 2013, 12:57
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
I'll give it a go on 4.2.1
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:28.

Layout Options | Width: Wide Color: