史萊姆論壇

史萊姆論壇 (http://forum.slime.com.tw/)
-   論壇程式討論區 (http://forum.slime.com.tw/f79.html)
-   -   只允許特定用戶組在文章與簽名中使用Html (http://forum.slime.com.tw/thread151914.html)

貝斯特 2005-06-21 02:39 PM

只允許特定用戶組在文章與簽名中使用Html
 
這個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" 陣列來設定允許的用戶組
安裝完成!


所有時間均為台北時間。現在的時間是 06:40 PM

Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2025, Jelsoft Enterprises Ltd.

『服務條款』

* 有問題不知道該怎麼解決嗎?請聯絡本站的系統管理員 *


SEO by vBSEO 3.6.1