Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 03-26-2009, 01:07 AM   #1
Rio69
Registered User
 
Join Date: Oct 2005
Location: Brazil
Posts: 35
How do I get multiple videos per page???

I´m setting up a website and want to have multiple sample video trailers on each tour page. I´m using JW FLV Media Player. So far, I can only put one...
can someone tell me how to do it, or is it possible with what I´m using.
thanks
Rio69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 03-26-2009, 03:06 AM   #2
daniel_webcams
Confirmed User
 
daniel_webcams's Avatar
 
Industry Role:
Join Date: Nov 2008
Posts: 2,491

First you have to place the external java script on the top of the page, do not include that in the loop when you display the results.
--------------------------------------------
<script type="text/javascript" src="swfobject.js"></script>
--------------------------------------------
Secondary if you want to display multiple players on one page you have to make each div (<div id="container">) to be unique and each java script (s1.addParam , s1.write("container")......etc...) also unique, this way each java script that start the player by parsing the parameters must have his own value (and be unique) and must be correlated with the div where the player is loading.
To implement that is very simple when you get the data from the database you should place the primary key near this parameters (<div id="container_$line['id']">) also in the java script lines (s$line['id'].addParam("flashvars","file=video.flv&image=previe w.jpg");
s$line['id'].write("container_$line['id']");) so this way you will have multiple different div's with multiple different values.

Take a look at the examples below :
--------------------------------------------------------
<div id="container_1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>

<script type="text/javascript">
var s1 = new SWFObject("player-viral.swf","ply","500","400","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allownetworking","all");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=video.flv&image=prev iew.jpg");
s1.write("container_1");
</script>
-----------------------------------------------------------------------------------
<div id="container_2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>

<script type="text/javascript">
var s2 = new SWFObject("player-viral.swf","ply","500","400","9","#FFFFFF");
s2.addParam("allowfullscreen","true");
s2.addParam("allownetworking","all");
s2.addParam("allowscriptaccess","always");
s2.addParam("flashvars","file=video.flv&image=prev iew.jpg");
s2.write("container_2");
</script>
-----------------------------------------------------------------------------------------
and so on.....

Hit me up on ICQ if you need more info...

Hope to be helpful!
__________________
Daniel,

Skype: [email protected]
ICQ: 354-220-339
Email: daniel@adultforce[dot]com


daniel_webcams is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 03-30-2009, 07:57 AM   #3
brassmonkey
Pay It Forward
 
brassmonkey's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Yo Mama House
Posts: 77,169
damn thats helpful
__________________
TRUMP 2025 KEKAW!!! - The Laken Riley Act Is Law!
DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com
brassmonkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-01-2009, 12:11 AM   #4
AdultSoftwareSolutions
Confirmed User
 
AdultSoftwareSolutions's Avatar
 
Join Date: Mar 2009
Posts: 193
well written Daniel
AdultSoftwareSolutions is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-01-2009, 05:12 AM   #5
daniel_webcams
Confirmed User
 
daniel_webcams's Avatar
 
Industry Role:
Join Date: Nov 2008
Posts: 2,491
Thanks guys...
__________________
Daniel,

Skype: [email protected]
ICQ: 354-220-339
Email: daniel@adultforce[dot]com


daniel_webcams is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-13-2009, 11:58 PM   #6
John Marco
Confirmed User
 
Join Date: May 2005
Posts: 912
Webcams.com affiliate reps are here to help
__________________
WEBCAMS.COM
$42+ PPS or revshare
ICQ: 476-111 Google Talk: Webcams.com
John Marco is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-21-2009, 12:01 AM   #7
papagmp
Confirmed User
 
papagmp's Avatar
 
Join Date: Mar 2008
Location: Colorado Springs
Posts: 618
Nice tip daniel_webcams - basically what we did on our latest tour.
papagmp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 05-17-2009, 02:09 AM   #8
Rio69
Registered User
 
Join Date: Oct 2005
Location: Brazil
Posts: 35
great help, thanks a lot
Rio69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.