|
#1
|
|||
|
|||
Youtube Tag - bbcodes
How can I find the bbcodes?
I wanna add a [video] tag. |
#2
|
||||
|
||||
Code:
$s = preg_replace("/\[video=[^\s'\"<>]*youtube.com.*v=([^\s'\"<>]+)\]/ims","<object width=\"500\" height=\"410\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\1\"></param><embed src=\"http://www.youtube.com/v/\\1\" type=\"application/x-shockwave-flash\" width=\"500\" height=\"410\"></embed></object>",$s);
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent Do not ask me to make a mod for any other source Do not Ask me to setup your site. I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum My Current Demo is here http://demo.btmanager.org/ Last edited by joeroberts; 20th September 2009 at 14:24. Reason: fixed code had a dot(.) not coma(,) |
The Following User Says Thank You to joeroberts For This Useful Post: | ||
christyz89 (19th September 2009)
|
#3
|
|||
|
|||
Thank YOU! Now it works!
|
Tags |
bbcodes , tag , youtube |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[FIX] TSSE v5.4.1 - BBcodes Fix | mmisu120000 | Template Shares | 12 | 22nd September 2012 15:38 |
BBCodes in Polls | sammygo | Mods & Themes | 1 | 21st July 2009 21:41 |
bbcodes [img][url] in shoutbox TS SE 4.3 | Verix | Template Shares | 1 | 10th June 2009 05:04 |
youtube | ciobancai | Template Shares | 9 | 2nd May 2009 08:17 |
Enable HTML and bbcodes | epas | Torrent Strike | 2 | 23rd March 2009 14:15 |