Youtube BBcode

Information, problems and conversation on anything and everything to do with Aura and these here boards.
Post Reply
User avatar
Matt
Noble Warrior
Posts: 4543
Joined: Mon Jun 14, 2004 1:39 pm
Location: England
Contact:

Post by Matt » Sat Sep 02, 2006 12:01 am

Ok, I spoke to James and he thought this was a rather good idea, but only after I told him it wouldn't end up spamming the place with videos on every page. This is also a port from vB so I have no idea how well it's going to translate, however...

The obvious tags are [youtube] or something similar.

The replacement should be

(Click here to show video)[/url]{param}" type="application/x-shockwave-flash" width="425" height="350">Click play to begin.

The bit in red might want changing to whatever IPB requires in there. Might be {variable} or something. But as you can see that is where the piece inside of the tag will end up. Like this [ youtube ]http://http://[/ youtube ]

You could change the yellow bit as well, James.

And that is it!

To make a post with this you'd need to grab this bit from youtube

http://www.youtube.com/v/5MooE3RQgY4" type="application/x-shockwave-flash" width="425" height="350">

You'd need to grab the bit in pink and stick that inbetween the tags. The entire thing will produce the text that is in yellow as a link, which you click, then it reveals the video on the same page. I'll admit to nicking the code for the hiding bit from a spoiler tag.

I do hope this works :D It looks like it has jscript in there.
Last edited by Matt on Sat Sep 02, 2006 1:24 am, edited 1 time in total.
Descending Fate
Whelp
Posts: 162
Joined: Mon Jun 14, 2004 6:41 pm
Location: The ashes of an ascended pheonix

Post by Descending Fate » Sat Sep 02, 2006 7:10 am

gratz matt.. for doing something yourself kinda lol...
User avatar
Shane
Not-A-Deserter
Posts: 811
Joined: Mon Jun 14, 2004 5:09 am
Location: Stuck in a coffee cup at the bottom of the sea.

Post by Shane » Sat Sep 02, 2006 1:53 pm

i had something like that on my old board. Good idea ^^
User avatar
Matt
Noble Warrior
Posts: 4543
Joined: Mon Jun 14, 2004 1:39 pm
Location: England
Contact:

Post by Matt » Sat Sep 02, 2006 1:54 pm

It works for audio and videos too! Even google video :D

You need to set them up with their own tag, though.
Post Reply