代碼: 選擇全部
//iframe join by 法蘭庫克 frank
$bbcode_tpl['iframe'] = str_replace('{WIDTH}', '\\\1', $bbcode_tpl['iframe']);
$bbcode_tpl['iframe'] = str_replace('{HEIGHT}', '\\\2', $bbcode_tpl['iframe']);
$bbcode_tpl['iframe'] = str_replace('{URL}', '\\\3', $bbcode_tpl['iframe']);
-------------------------------------------------------------------------------------
// [iframe width= height= ] and [/iframe] code..
$patterns[] = "#\[iframe width=([0-9]?[0-9]?[0-9]) height=([0-9]?[0-9]?[0-9])\](.*?)\[/iframe:$uid\]#si";
$replacements[] = $bbcode_tpl[iframe];
-------------------------------------------------------------------------------------
//[iframe width= heigth=] and [/iframe]
$text = preg_replace("#\[iframe width=([0-9]?[0-9]?[0-9]) height=([0-9]?[0-9]?[0-9])\](([a-z]+?)://([^,
]+))\[\/iframe\]#si","[iframe width=\\\1 height=\\\2\]\\\3[/iframe:$uid]", $text);
代碼: 選擇全部
<!-- BEGIN iframe -->
<iframe marginwidth=0 src="{URL}" width="{WIDTH}" height="{HEIGHT}" allowtransparency="true" scrolling="auto" frameborder="0"></iframe>
<!-- END iframe -->
試這功能試了一天QQ
順便問一下 竹貓首頁 版面的左上角有個+號跟-號可以收折跟展開 這是什麼功能?要收循哪個關鍵字??

