Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Forumo paveiksliukai.

Parašė And2s· 2009 Lie. 30 12:07:19
#9

$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#sie","'<span style=\'display: block; overflow: auto;\' class=\'forum-img-wrapper\'><img src=\'\\1'.str_replace(array('?','&amp;','&','='),'','\\3').'\\4\' alt=\'\\3\\4\' style=\'border:0px\' class=\'forum-img\' /></span>'",$text);
?>



Redagavo And2s· 2009 Lie. 30 12:07:34