功能:雖然有強制縮圖的方式
但是有時候強制縮圖也有失效的時候
此強化是強化貼圖語法(增加圖片大小調整而已)
打開bbcode.php
搜尋
代碼: 選擇全部
$bbcode_tpl['img'] = str_replace('{URL}', '\\\1', $bbcode_tpl['img']);
代碼: 選擇全部
$bbcode_tpl['img2'] = str_replace('{WIDTH}', '\\\1', $bbcode_tpl['img_perso']);
$bbcode_tpl['img2'] = str_replace('{HEIGHT}', '\\\2', $bbcode_tpl['img2']);
$bbcode_tpl['img2'] = str_replace('{URL}', '\\\\3', $bbcode_tpl['img2']);
代碼: 選擇全部
// This one gets first-passed..
$patterns[] = "#\[img:$uid\](.*?)\[/img:$uid\]#si";
$replacements[] = $bbcode_tpl['img'];
代碼: 選擇全部
// [img width=xxxx height=xxx]swf[/swf] code..
$patterns[] = "#\[img:$uid width=([0-9]+?) height=([0-9]+?)\](.*?)\[/img:$uid\]#si";
$replacements[] = $bbcode_tpl['img2'];
代碼: 選擇全部
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^
\t<\"]*?)\[/img\]#sie", "'[img:$uid]\\\1' . str_replace(' ', '%20', '\\\3') . '[/img:$uid]'", $text);
代碼: 選擇全部
//[img width=XXX heigth=XXX]img[/img]
$text = preg_replace("#\[img width=(.*?) height=(.*?)\](.*?)\[\/img\]#si","[img:$uid width=\\\1 height=\\\2]\\\3[/img:$uid]", $text);
搜尋
代碼: 選擇全部
<!-- BEGIN img --><img border="0" src="{URL}"><!-- END img -->
代碼: 選擇全部
<!-- BEGIN img_perso --><img border="0" src="{URL}" width="{WIDTH}" height="{HEIGHT}"><!-- END img_perso -->
搜尋
代碼: 選擇全部
$lang['bbcode_p_help'] = '插入圖片: [img] http://image_url [/img] (alt+p)';
代碼: 選擇全部
$lang['bbcode_p_help'] = '插入圖片: [img] http://image_url [/img] ro [img width=xxx height=xxx]http://image_url[/img] (alt+p)';