2008/8/28 0:20
Daethian
Quite a regular
Posts: 305
Since: 2005/3/4 1
2010/3/11 0:29
[img] [IMG] or <img src
2010/4/23 14:37
2010/4/23 15:01
ghia
Community Support Member
Posts: 4953
Since: 2008/7/3 1
2010/4/23 15:04
2010/4/23 15:19
2010/4/23 17:57
vamptrix
Theme Designer
Posts: 424
Since: 2008/5/3 1
2010/4/24 0:03
class MytsImage extends MyTextSanitizerExtension { function load(&$ts) { static $jsLoaded; $config = $this->loadConfig(dirname(__FILE__)); $ts->patterns[] = "/[img align=(['"]?)(left|center|right)\1 width=(['"]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU"; $ts->patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()?&'<>]*)[/img]/sU"; $ts->patterns[] = "/[img width=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU"; $ts->patterns[] = "/[img]([^"()?&'<>]*)[/img]/sU"; $ts->patterns[] = "/[IMG]([^"()?&<>]*)[/IMG]/sU"; // Added for script driven images $ts->patterns[] = "/[img align=(left|right|center) width=([0-9]*)](.*)[/img]/sU"; $ts->patterns[] = "/[img width=([0-9]*) align=(left|right|center)](.*)[/img]/sU"; $ts->patterns[] = "/[img align=(left|right|center)](.*)[/img]/sU"; $ts->patterns[] = "/[img width=([0-9]*)](.*)[/img]/sU"; $ts->patterns[] = "/[img](.*)[/img]/sU"; $ts->patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU"; $ts->patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU";
2010/4/24 0:11
$ts->patterns[] = "/Open in new window/isU";
2010/4/24 18:30
$ts->patterns[] = "/[img](.*)[/img]/sU";
$ts->patterns[] = "/[img](.*)[/img]/isU";
Advanced Search
488 user(s) are online (418 user(s) are browsing Support Forums)
Members: 0
Guests: 488