Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 12-22-2009, 10:16 PM   #1
HyperActive Warrior
War Room Member
 
rhab's Avatar
 
Join Date: Dec 2006
Location: Maryland, USA
Posts: 262
Thanks: 9
Thanked 131 Times in 41 Posts
Social Networking View Member's FaceBook Profile  View Member's Twitter Profile 
Default Help With Rotating YouTube Video Script?

Hey guys, I've been searching for a script that would allow me to have 3-4 youtube or vimeo videos rotate on each refresh of my site. I haven't really found anything yet that I can make heads or tails out of.

Is anyone familiar with a script that would let me do this on my site or knows of the proper html maybe?

Basically I have a video widget in my sidebar of my wordpress blog and I would like 4 videos to be rotated upon each visit and on each new page as the user navigates through the site.

Thanks much!
rhab is offline   Reply With Quote
Old 12-28-2009, 04:59 AM   #2
Active Warrior
War Room Member
 
Rob Holmes's Avatar
 
Join Date: Jun 2009
Location: United Kingdom
Posts: 42
Thanks: 0
Thanked 2 Times in 2 Posts
Default Re: Help With Rotating YouTube Video Script?

Quote:
Originally Posted by rhab View Post
Hey guys, I've been searching for a script that would allow me to have 3-4 youtube or vimeo videos rotate on each refresh of my site. I haven't really found anything yet that I can make heads or tails out of.

Is anyone familiar with a script that would let me do this on my site or knows of the proper html maybe?

Basically I have a video widget in my sidebar of my wordpress blog and I would like 4 videos to be rotated upon each visit and on each new page as the user navigates through the site.

Thanks much!
I dont think im allowed to promote my own products, so ill just give you the php code.

Code:
<?
$video[] = "HTML Video Code 1";
$video[] = "HTML Video Code 2";
$video[] = "HTML Video Code 3";
$video[] = "HTML Video Code 4";

echo $video[rand(0,count($video)-1)];
?>
Be carefull with quotes when adding the actual video code to each variable, either use single quotes or escape any double quotes.

The Open Source Membership Site Software

Check out these awesome plugins available from the Wordpress Repository
Theme Shortcodes,
Rob Holmes is offline   Reply With Quote
Old 12-28-2009, 05:55 PM   #3
HyperActive Warrior
 
Join Date: Jun 2009
Posts: 104
Thanks: 3
Thanked 4 Times in 4 Posts
Default Re: Help With Rotating YouTube Video Script?

Thanks Rob, you helps me to solve my problem too.

I will build, SEO and promote your blog to over 1000 blog for only $5

PM me or ask me via Yahoo Messenger (my id:saifulbest) for more info about this crazy deal.
projek001 is offline   Reply With Quote
Old 01-05-2010, 05:47 AM   #4
Warrior Member
 
Join Date: Oct 2008
Location: Houston
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Social Networking View Member's YouTube Profile
Contact Info
Send a message via AIM to cashmania Send a message via Yahoo to cashmania Send a message via Skype™ to cashmania
Default Re: Help With Rotating YouTube Video Script?

Will this work on the pages you create as well, with out the widget side bar? Still a little new at this... Where exactly would that code go on the php? Thanks for your help I have been searching high and low for the last week... lol

" The Craigslist Tool That You Can't Live With Out"

Post On Craigslist With Style...
cashmania is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
rotating, script, video, youtube

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 09:01 AM.