Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Random YouTube/Vimeo Video Widget Details »»
Random YouTube/Vimeo Video Widget
Version: 1.0.1, by imported_dfmafia imported_dfmafia is offline
Developer Last Online: Aug 2022 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.x.x Rating:
Released: 07-26-2012 Last Update: 07-27-2012 Installs: 24
Re-useable Code Translations  
No support by the author.

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

File Type: zip Random_Video_Widget_v1.0.1.zip (209.0 KB, 204 views)

Screenshots

File Type: png random_video.PNG (77.9 KB, 0 views)
File Type: png random_video2.PNG (130.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-16-2012, 06:30 AM
imported_dfmafia's Avatar
imported_dfmafia imported_dfmafia is offline
 
Join Date: Jun 2004
Location: Wherever Uncle Sam Needs!
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Благодарность от:
alhidaya
  #13  
Old 01-29-2013, 05:18 PM
Barbara1 Barbara1 is offline
 
Join Date: Jun 2010
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to make the videos autoplay on load?
Reply With Quote
  #14  
Old 02-11-2013, 08:15 PM
marccap's Avatar
marccap marccap is offline
 
Join Date: Feb 2012
Location: uk
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't appear to work at all on 4.2 Level 3
Reply With Quote
  #15  
Old 05-20-2013, 10:20 PM
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Posts: 283
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
  #16  
Old 05-23-2013, 11:57 AM
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll give it a go on 4.2.1
Reply With Quote
  #17  
Old 08-14-2013, 09:47 AM
Barakat's Avatar
Barakat Barakat is offline
 
Join Date: Nov 2004
Location: Jerusalem
Posts: 571
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

love it ,,, works on 4.2.1 .. thanks
Reply With Quote
  #18  
Old 01-26-2014, 05:46 PM
rossonero rossonero is offline
 
Join Date: Aug 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I try to insert a youtube video like: https://www.youtube.com/watch?v=noPVhgEVStE

It doesn?t Work? a error message just appear that the site can not be displayed. If I insert the youtube links you have as example it Works fine
Reply With Quote
  #19  
Old 01-26-2014, 06:11 PM
rossonero rossonero is offline
 
Join Date: Aug 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange - now and then it load the youtube video in the window if you wait a bit. But mostly just default Explorer setting that "site can not be displayed"
Reply With Quote
  #20  
Old 01-27-2014, 03:57 PM
Ba'al's Avatar
Ba'al Ba'al is offline
 
Join Date: Oct 2010
Posts: 283
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rossonero View Post
Strange - now and then it load the youtube video in the window if you wait a bit. But mostly just default Explorer setting that "site can not be displayed"
Are entering the youtube video url or the video share url?
Reply With Quote
  #21  
Old 04-03-2015, 01:57 PM
Linkeb3's Avatar
Linkeb3 Linkeb3 is offline
 
Join Date: Oct 2013
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this setup to play random videos within a channel?
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 08:46 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05483 seconds
  • Memory Usage 2,329KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete