| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Aug 2005 Location: Belfast
Posts: 1,217
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #4 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | lol its really easy to make, do you know any html/php?
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #6 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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> 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: PHP Code: PHP Code: 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?
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #7 (permalink) |
| NamePros Member Join Date: Mar 2004
Posts: 180
![]() ![]() | 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. |
| |
| | #8 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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.
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #10 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | great, glad i could help. nice site you got there!
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
![]() |
| 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 |