The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Make your own bbcode?
I'm attempting to replicated the current [video] tag in vB 3.8.4. Now I thought I could do this with a custom bbcode.
Code:
<script type="text/javascript"> if (/youtube/i.test("http://www.youtube.com/watch?v=7xrU5BxaPWo")){ var a ="http://www.youtube.com/watch?v=7xrU5BxaPWo".split('?')[1].split('&'); var b = []; b[0] = a[0].split('=')[1]; b[1] = a.slice(1).join('&'); document.write('<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/'+ b[0] +'?fs=1&'+ b[1] +'"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/'+ b[0] +'?fs=1&'+ b[1] +'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>'); } </script> |
#2
|
||||
|
||||
You can't use php in a bb code. But have you tried this mod? https://vborg.vbsupport.ru/showthread.php?t=202476
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|