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
  #2  
Old 07-27-2012, 09:36 PM
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Location: Uk
Posts: 1,191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one m8 thank you will be useful in the coming weeks for us
Reply With Quote
  #3  
Old 07-28-2012, 12:19 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

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 08-03-2012, 05:47 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #5  
Old 08-03-2012, 11:41 PM
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

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 08-04-2012, 03:12 AM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 08-04-2012, 03:18 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

I'll look into it.
Reply With Quote
  #8  
Old 08-15-2012, 02:38 AM
Syxguns's Avatar
Syxguns Syxguns is offline
 
Join Date: Jul 2011
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tagged it, the widget looks nice, but being able to pull from certain channels would be perfect.
Reply With Quote
  #9  
Old 09-11-2012, 12:02 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

I haven't forgotten this. I've been busy coding sites. When I get some free time, I'll reattack this.
Reply With Quote
Благодарность от:
Syxguns
  #10  
Old 10-16-2012, 06:18 AM
alhidaya alhidaya is offline
 
Join Date: Feb 2012
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 01:39 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.09296 seconds
  • Memory Usage 2,318KB
  • 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
  • (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
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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