Quote:
Originally Posted by Wachtmeister
Isn't it easier to define a custom vbCode?
|
That's exactly what I did. However, via the standard vbCode, you cannnot have it accept the full video URL, only the ID. My little snippet of PHP transforms the full URL into a format that vB can handle.
Quote:
Originally Posted by Wachtmeister
I have one to insert Youtube Videos very easy:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/ejOJkcs-a7s"></param><embed src="http://www.youtube.com/v/ejOJkcs-a7s" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
|
Yeah, that's exactly what mine does, just with a table for style and no <embed> as that's not valid XHTML.
As said though, you can do any styling/HTML you want, it's the PHP that is the real meat of my little plugin.