AGAMES 討論區

標題: shoutbox2.2 BETA by xMan for discuz 6.x & Chinese Traditional by 044003 [打印本頁]

作者: dlalden    時間: 2008-11-9 15:26:12     標題: shoutbox2.2 BETA by xMan for discuz 6.x & Chinese Traditional by 044003

Name: Shoutbox 2.2 BETA By Natz UTF-8
Designed for Discuz! 6.X/F UTF-8
Designed by Natz or ROA
Borwser support : IE6+
Demo site : http://www.cazdesign.com/forums/index.php
Install

Credits:
ntf (auto check for url)
Prototype (http://www.prototypejs.org/)
044003 (To be Chinese Traditional)

[Install]
1. 上載 Shoutbox 2.2 BETA 的檔案到你的網站

2. 使用 shoutbox_install.php 執行或升級

3. 打開系統設置 -> 導入插件數據 (discuz_plugin_shoutbox.txt)

4. 打開 discuz 模板
- 找:
  1. <div id="ad_text"></div>
複製代碼
- 加在下方:
  1. <!--{if $discuz_uid}-->{template shoutbox}<!--{/if}-->
複製代碼
5. 打開 index.php
- 找:
  1. $hottagstatus = $tagstatus && $hottags && $_DCACHE['tags'];
複製代碼
- 加在下方:
  1. //shoutbox 2.2 beta by natz
  2. $query = $db->query("SELECT value FROM {$tablepre}settings WHERE variable='shoutbox'");
  3. $shout = unserialize($db->result($query, 0));
  4. $shout['allow'] = sprintf('%03b', $shout['allow']);
  5. for($i = 1; $i <= 3; $i++) {
  6.         $shout['allow'][$i] = $shout['allow'][3 - $i] ? '1' : '0';
  7. }
  8. //shoutbox 2.2 beta by natz
複製代碼





歡迎光臨 AGAMES 討論區 (http://61.244.113.49/) Powered by Discuz! X2