Joined: Tue May 27, 2008 7:48 am Posts: 5095 Location: Dublin, Ireland
Over the past few days I've been tinkering with a new BBCode for the forums, and this is what I've come up with:
That's right! From now on you can all embed youtube videos into topics.
All you have to do is copy and paste the URL of the video in between the tags and it should show up
I'm also working on another code which will allow you to post videos from any video hosting site, but it'll take me another while to sort it out completely, so you'll have to settle for just being able to post youtube videos for now.
As with everything these days, there are rules for using these tags:
When posting multiple videos, place them in a spoiler.
Joined: Tue May 27, 2008 12:53 am Posts: 1869 Location: Wow, look a new call of duty game! You get to shoot people with the same weapons over and over again
Joined: Tue May 27, 2008 12:17 am Posts: 3009 Location: Oregon, USA
BoboTheMonkey wrote:
You know that you can get code that takes in the entire URL? It'd save a lot of time having to cut certain parts out of it
Yeah, unless you just jacked someone else's code to do this, You've already got a sort of "profile" system going, considering parsing text in php is cake, you could pretty easily have a function to A) identify what service it's from and B) use the proper data from the URL and the appropriate embed (HTML) tag for the site.
Adding more BB options like specific modes the site supports (i.e. HD) would be simple tags to add to the BB tag.
Joined: Tue May 27, 2008 7:48 am Posts: 5095 Location: Dublin, Ireland
Crono wrote:
Spoiler
BoboTheMonkey wrote:
You know that you can get code that takes in the entire URL? It'd save a lot of time having to cut certain parts out of it
Yeah, unless you just jacked someone else's code to do this, You've already got a sort of "profile" system going, considering parsing text in php is cake, you could pretty easily have a function to A) identify what service it's from and B) use the proper data from the URL and the appropriate embed (HTML) tag for the site.
Adding more BB options like specific modes the site supports (i.e. HD) would be simple tags to add to the BB tag.
Anyway, it's 22, not 18, for specifying you want HD in the URL.
Yeah I thought about that, but for people would have to paste the url of the actual video which is youtube.com/v/ instead of v=, and i thought some people might find that a bit annoying instead of just cutting out the last part. Atleast I can't find a way around that. I dont see how your placement would work there, when you've put in the tags is this: http://www.youtube.com/watch?v=xF3fED8EXl4 but the html has to be http://www.youtube.com/v/xF3fED8EXl4 Maybe I'm just not that good with custom BBCode tags yet @_@ this is what my code looks like this:
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