Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: [IMG]

Parašė samsung123· 2010 Vas. 17 17:02:37
#1

Sveiki, reikia man biški pasiredaguoti [IMG] tag'ą, taigi. kaip man pasidaryt ta [img] taga kad jy rodytų mano pasirinkta height ir wight, ir neitu spaust ant jo, ir kad kai paspaudi nemestu į nauja pop-up su img, manau čia reikėtų viską keisti.

<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2007 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: img_bbcode_include.php
| Author: Wooya
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

$text = preg_replace("#\[img\]((http|ftp|https|ftps)://)(.*?)(\.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))\[/img\]#sie","'<span style=\'display: block; width: 500px; max-height: 1000px; 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 samsung123· 2010 Vas. 17 17:02:39