Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Youtube BB code?

Author
Message
tha_rami
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location: Netherlands
Posted: 26th Nov 2007 08:29 Edited at: 26th Nov 2007 08:29
On several forums on the interweb, I've been seeing BB codes or custom codes that embed Youtube movies in a safe and simple way. The syntax is:

[youtube]http://www.youtube.com/watch?v=6tJV6Zj69HY[/youtube]

I believe the script first verifies if the first part of the link is "http://www.youtube.com/watch?v=" and then takes the code (video ID) behind it. It is then processed into an embedded object according to the youtube embedding code (in this case, the HTML output of the script would be:



This way, the forum still has full control over what is embedded (ie. only Youtube videos and no harmful stuff) and people can embed Tubey's from here.

Actually, I think that would add a lot of functionality to a visually orientated forum as a Game Creators one.


A mod has been erased by your signature because it was larger than 600x120
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 26th Nov 2007 08:46
I did the same thing for Overdrive1000.com - Added in a parser into the band info (using Regular Expressions), which picked up the video, and embedded it straight into the page.

Don't get too excited about getting that functionality for these forums, though, I don't know how much work Rich has to do now that he's only freelancing for TGC, and I think there's other things higher up on the priority list...

Nintendo DS & Dominos :: DS Dominos
http://jt0.org
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 26th Nov 2007 10:14
Yea like that nasy PM system.

Sorry.

Anywho, that's kind of cool. Don't know why I never tought of that.
Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 26th Nov 2007 15:09
I used the same thing on my website what i unfortunally lost in format

I worked really hard on it.. And it came out really nice!

Hate when computer needs to be formatted..


Click For Details!

Login to post a reply

Server time is: 2024-11-19 13:43:45
Your offset time is: 2024-11-19 13:43:45