It is currently Mon May 20, 2013 11:41 pm

All times are UTC - 5 hours [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 27 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Videos and more!!
PostPosted: Mon Jun 15, 2009 4:27 pm 
Offline
UMB Nº16
UMB Nº16
Group: Sidekick
User avatar

Joined: Tue Feb 24, 2009 2:54 pm
Posts: 561
Location: Behind you. Surprize! (Ireland)
mscupcakes wrote:
Code:
[youtube]http://www.youtube.com/watch?v={TEXT}[/youtube]

Code:
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="560" height="340"></embed></object>




:-? :-? :-?

_________________
Image
Spoiler
Image
Darkseid is my bro


Top
 Profile  
 
 Post subject: Re: Videos and more!!
PostPosted: Mon Jun 15, 2009 4:40 pm 
Offline
I've just had an apostrophe.
I've just had an apostrophe.
Group: Henchman
User avatar

Joined: Tue May 27, 2008 10:42 am
Posts: 1597
Location: hiffwe
oneshotfinch wrote:
mscupcakes wrote:
Code:
[youtube]http://www.youtube.com/watch?v={TEXT}[/youtube]

Code:
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/{TEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" wmode="transparent" width="560" height="340"></embed></object>




:-? :-? :-?

Don't be afraid... I think they're talking in murloc.


Top
 Profile  
 
 Post subject: Re: Videos and more!!
PostPosted: Mon Jun 15, 2009 5:02 pm 
Offline
B-E-N-D-E-R Beeeender
B-E-N-D-E-R Beeeender
Group: Hero
Group: BETA
User avatar

Joined: Tue May 27, 2008 12:17 am
Posts: 3010
Location: Oregon, USA
Like I said, you would just parse the URL ... you already know the format.

There's (unless these aren't there anymore) an ability to split by token. You'd do this twice. The first time, you'd split by the token ".", and the resultant array should be length (for youtube) 3, you would look at element 1 (second element) to get the hosting site (which will just say "youtube"). After that, you would do another token split on the character "/" on just element 2 of the same array (the part with the video information) ... as a result you'll get a new three element array of [com, v, videoaddress], you then take element 2 of that (third element) and use that as the actual video address.

When making the embed tags, you add on junk like I mentioned earlier at the end of the video string (using sting concatenation). The rest of the output is known.

Before this, you will have done more token splits or searches to get the actual BB tag and its arguments (like, HD, width, and height) you do error checking on all of them (or else you could put something up on the site that wont look very nice).

Come on. It wouldn't be THAT hard.

It would just be tedious, since, you'd have to write a new outputtag and inputurl function (or class if you roll that way) for each video hosting site. Since all their formats are different.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Videos and more!!
PostPosted: Mon Jun 15, 2009 9:17 pm 
Offline
Retro-Metabolism!
Retro-Metabolism!
Group: TGH Staff
Group: Hero
User avatar

Joined: Wed Apr 01, 2009 11:16 pm
Posts: 552
Location: Sweden
This is good news. things will get interesting now mary :yuush: not that they weren't already of course ..... :innocent: :teehee:

_________________
Image
Mscupcakes thanks for the sig


Top
 Profile  
 
 Post subject: Re: Videos and more!!
PostPosted: Mon Jun 22, 2009 9:19 pm 
Offline
Marine, Jet, & Coil
Marine, Jet, & Coil
Group: Sidekick
User avatar

Joined: Tue May 27, 2008 6:48 pm
Posts: 1489


"Holy shit" doesn't begin to cover this.

_________________
Don't worry... just taking time off for health reasons.

Image
Thanks to Darkseid, which I never thought I'd say without fear of Omega-beam death.


Top
 Profile  
 
 Post subject: Re: Videos and more!!
PostPosted: Wed Jun 24, 2009 9:47 pm 
Offline
Remember who you are.
Remember who you are.
User avatar

Joined: Wed Jun 24, 2009 12:10 pm
Posts: 154
Location: Kurashiki, Okayama [JP]
Excellent... :serious:

_________________
Image
Wishing you and yours a classy day
(Thanking OD with each post for the sweet sig)
ImageImage
PS3 Trophies


Top
 Profile  
 
 Post subject: Re: Videos and more!!
PostPosted: Fri Jun 26, 2009 4:38 pm 
Offline
Kira Fangirl
Kira Fangirl
User avatar

Joined: Wed Jun 17, 2009 10:14 pm
Posts: 409
Location: From the outer reaches of your mind.

GRENADE!


Princess Peach is a What?

_________________
Image
Spoiler
Image

"If you're gonna write a comedy scene, you're gonna have some rat feces in it." - David Cross


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 27 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group