這個Hack允許管理員手動設定某特定會員組在簽名與文章中使用html標籤,
修改也相當容易,只需幾分鐘的時間便可修改完成。
// ###### Hack安裝教學 ######
編輯檔案 INCLUDES/FUNCTIONS_BBCODEPARSE.PHP
搜尋:
PHP代碼:
// ###################### Start bbcodeparse2 #######################
function parse_bbcode2($bbcode, $dohtml, $dobbimagecode, $dosmilies, $dobbcode, $iswysiwyg = 0, $donl2br = 1)
{
// parses text for
vB code, smilies and censoring
global $DB_site, $vboptions, $bbuserinfo, $templatecache, $smiliecache;
整段替換為:
PHP代碼:
// ###################### Start bbcodeparse2 #######################
function parse_bbcode2($bbcode, $dohtml, $dobbimagecode, $dosmilies, $dobbcode, $iswysiwyg = 0, $donl2br = 1)
{
// parses text for
vB code, smilies and censoring
global $DB_site, $vboptions, $bbuserinfo, $templatecache, $smiliecache, $userinfo, $post;
搜尋:
PHP代碼:
// ********************* REMOVE HTML CODES ***************************
if(!$dohtml)
整段替換為:
PHP代碼:
$html_allowed=array(6); // add more by seperating each by commas in the ()'s: (6,8,19)
// ********************* REMOVE HTML CODES ***************************
if(!$dohtml && !in_array($userinfo[usergroupid],$html_allowed)&& !in_array($post[usergroupid],$html_allowed))
注意: 編輯程式 "$html_allowed" 陣列來設定允許的用戶組
安裝完成!