NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Video Codes?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 01-18-2006, 11:13 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Aug 2005
Location: Belfast
Posts: 1,217
Ericsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to behold
 


Save a Life Child Abuse Cystic Fibrosis Third World Education AIDS/HIV Third World Education Save a Life Save a Life Child Abuse

Video Codes?


Can anyone help me out, im trying to get video codes set up so people can display my videos on their site. My URL is www.junk2view.com and im looking for something like this: http://www.musicvideocodes.com/?song=1278 (under the video)

Can anyone help me out for some NP$?

Thanks
Ericsson is offline  
Old 01-18-2006, 03:39 PM   #2 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



well for one thing, thats all in php; the video, the link, everything. what it does is that the link has an ID number in the link (the ?song=1278 part). now depending on that number, im assuming the script accesses a database which tells the corresponding filename is.

grr this will take too long to explain in words, so ill just make a simply diagram.

1. Hyperlink on Page with ID number (www.abc.com/play.php?song=1234)
2. the link is clicked and play.php is loaded & parsed with $song as a variable (so in this case, $song = 1234)
3. in the page, it has the embed html code with php code in the part of where to get the video from. this code looks something like <? echo('/songs/' . $song . '.wmv'); ?>.
????: NamePros.com http://www.namepros.com/programming/158863-video-codes.html
4. the video plays, and under the video is the sample code of the same thing above except it has all the other code that is needed for them to be able to put the song in their website.

simple as that.

hope it helped, if u have any questions, feel free to ask.

now about those NP$... hehe
nasaboy007 is offline  
Old 01-18-2006, 03:55 PM THREAD STARTER               #3 (permalink)
Senior Member
Join Date: Aug 2005
Location: Belfast
Posts: 1,217
Ericsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to behold
 


Save a Life Child Abuse Cystic Fibrosis Third World Education AIDS/HIV Third World Education Save a Life Save a Life Child Abuse
Have you got the code for that? lol
Ericsson is offline  
Old 01-19-2006, 07:41 PM   #4 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



lol its really easy to make, do you know any html/php?
nasaboy007 is offline  
Old 01-20-2006, 02:27 AM THREAD STARTER               #5 (permalink)
Senior Member
Join Date: Aug 2005
Location: Belfast
Posts: 1,217
Ericsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to behold
 


Save a Life Child Abuse Cystic Fibrosis Third World Education AIDS/HIV Third World Education Save a Life Save a Life Child Abuse
No thats why im asking.
Ericsson is offline  
Old 01-21-2006, 03:15 PM   #6 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



ok then lets see...

for index.html (or wherever u have all the links), put this:

HTML Code:
<a href="play.php?song=happybirthday">Click Here to Listen to Happy Birthday</a>
in the place where u wanna put the links. Change the part of "happybirthday" in the link to whatever the filename of the file is.

EXAMPLE: If the file you want to play is londonbridge.wmv, the link in the href tags would be "play.php?song=londonbridge" notice that the name of the file is the same as song=*FILENAME*

make a page called "play.php" and add all the html you want in it (like the layout, any links, etc).

In the part of the page where you want the video to play, put this code:
????: NamePros.com http://www.namepros.com/showthread.php?t=158863


PHP Code:
<embed src="<?php echo($song); ?>.wmv" quality=high width="500" height="500">
  </embed>
if its in a subfolder (the song) just add the necessary stuff around it:
PHP Code:
<embed src="songs/<?php echo($song); ?>.wmv" quality=high width="500" height="500">
????: NamePros.com http://www.namepros.com/showthread.php?t=158863
  </embed>
Then, underneath this code you can put something like this:
PHP Code:
<p>Add this movie to your site! Copy and paste the code below:</p>
<textarea cols="20" rows="5">
<embed src="http://www.yourdomain.com/songs/<?php echo($song); ?>.wmv" quality=high width="500" height="500">
<br>
<font size="1"><i>Brought to you by <a href="www.yourdomain.com">YourDomain.com</a></i></font>
</textarea>
<p>Please do not remove the credit line.</p>

And that's all there is to it! Remember, the file that plays the music needs to be play.php, not play.html.

I hope you can use this; I just put it together so if there are bugs, please tell me.

How about some NP$ for my efforts?
nasaboy007 is offline  
Old 02-16-2006, 06:37 PM   #7 (permalink)
NamePros Member
 
norbx's Avatar
Join Date: Mar 2004
Posts: 180
norbx will become famous soon enoughnorbx will become famous soon enough
 



i used this method and when i tested it i looked at my page source & it only said it had .wmv & i did call it properly ?song=song.wmv but it said in the source code it was only .wmv and it never shown any kind of effort of it finding the file in the thread.
__________________
AIMForum.com - Ready, AIM, Chat!

GraphicsTalk.info

OnlineGames.net
norbx is offline  
Old 02-16-2006, 07:07 PM   #8 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



ohh yeah i messed up that part of the script, i had just done it on the fly. sorry bout that.

simple fix:

anywhere you see $song in the php code, change it to $_GET['song'] and it shud work.

or, you can simply define that $song = $_GET['song'] somewhere in the php page.
nasaboy007 is offline  
Old 02-17-2006, 12:32 AM THREAD STARTER               #9 (permalink)
Senior Member
Join Date: Aug 2005
Location: Belfast
Posts: 1,217
Ericsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to behold
 


Save a Life Child Abuse Cystic Fibrosis Third World Education AIDS/HIV Third World Education Save a Life Save a Life Child Abuse
I got it working

Example: http://www.junk2view.com/index.php?p...=videos&id=139
Ericsson is offline  
Old 02-20-2006, 05:17 PM   #10 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



great, glad i could help.

nice site you got there!
nasaboy007 is offline  
Old 02-21-2006, 02:12 AM THREAD STARTER               #11 (permalink)
Senior Member
Join Date: Aug 2005
Location: Belfast
Posts: 1,217
Ericsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to beholdEricsson is a splendid one to behold
 


Save a Life Child Abuse Cystic Fibrosis Third World Education AIDS/HIV Third World Education Save a Life Save a Life Child Abuse
Thanks nasaboy
Ericsson is offline  
Closed Thread


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
179 Professional Video Tutorials in 15 Categories - Resale Rights Hostnetric For Sale / Advertising Board 0 01-11-2006 12:10 AM
Instant Video Streamer w/ SOURCE & Resell Rights! dgridley For Sale / Advertising Board 13 11-12-2005 01:37 PM
VideoCodeScript.com - SEO Video Codes Script only $24.99! Flaresolutions Scripts For Sale 4 09-27-2005 09:15 PM
Chapter 16 Audio, Video & Rich Media WebForging Webmaster Tutorials 0 03-10-2005 06:32 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:56 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger