[問題]Shoutbox的問題...

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
orega
星球普通子民
星球普通子民
文章: 9
註冊時間: 2004-05-31 11:27

[問題]Shoutbox的問題...

文章 orega »

問題外掛:Shoutbox (fully integrated shoutbox mod?)
參考連結:http://www.phpbb2-users.de/dload.php?ac ... &file_id=7
使用版本:phpBB 2.0.8a
網站位置:自機練習中...
狀況描述:http://phpbb-tw.net/phpbb/viewtopic.php?t=9871

依照這個討論中的去抓檔案

但是原本的連結掛了

只好進去翻

我是新手不知道要抓那個就兩個都抓

:oops:

依照裡面的說明裝了後確沒有改變...

請問是我那邊打錯...or 還是單純的我裝錯檔了... :oops: ?

麻煩請各位指點一二

謝謝... :oops:

代碼: 選擇全部

######################################################## 
## MOD Title:   fully integrated shoutbox mod
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. R鷣) http://mods.db9.dk
##
## Description:  
## A fully phpBB2 enabled shoutbox.witch support: database abstration layer, timezones, languages
## templates, smilies, BBcode, censored words and user/usergroups
## shouts can be set to auto prune after X days, this will be executed when ever a user post a shout
##
## MOD Version: 1.0.7
## Compatibility:      2.0.0->2.0.6
## 
## 
## Installation Level:  Moderate 
## Installation Time:   10-20 Minutes 
##
## Files To Edit: 12
##      index.php
##      includes/constants.php
##      viewonline.php
##      includes/page_header.php
##      admin/admin_board.php
##	admin/admin_users.php
##	admin/admin_db_utilities.php
##      language/lang_english/lang_main.php
##      language/lang_english/lang_admin.php 
##      templates/subsilver/admin/board_config.tpl
##      templates/subSilver/index_body.tpl
##      templates/subSilver/subSilver.cfg
##
## Included files: 8
##	shoutbox.php
##	shoutbox_max.php
##	shoutbox_view.php
##	templates/subSilver/shoutbox_body.tpl
##	templates/subSilver/shoutbox_max_body.tpl
##	templates/subSilver/shoutbox_max_guest_body.tpl
##	templates/subSilver/shoutbox_view_body.tpl
##	templates/subSilver/images/icon_censor.gif
##
## History:
##	ver 0.9.0. - initial beta  
##	ver 0.9.1. - DB changes now included
##	ver 0.9.2. - now posible to "maximize" shoutbox, and view shouts back in time
##	ver 0.9.3. - now support cenzored words
##	ver 0.9.4. - now maximized version have postes detail
##	ver 0.9.5. - require my "Extra permission mod", witch makes it posible to control who may shout
##	ver 0.9.6. - improved version, now also support censor of shout's
##	ver 0.9.7. - moved shoutbox above who-is-online, and fixed some auth isues
##	ver 0.9.8. - improved permission control
##	ver 0.9.9. - corrected a typo in the how-to, making shout_id auto increment
##	ver 0.9.10. - now handle, username if users are deleted
##	ver 0.9.11. - a previous upgrade was some how gone, from the how-to, now pressent again !
##	ver 0.9.12. - DB change, added extra fields
##	ver 0.9.13. - Now support auto prune of shouts
##	ver 0.9.14. - added path to constants.php file, it was missing
##	ver 1.0.0. - added allowtransparency="true" to iframes
##	ver 1.0.1. - improved the included files
##	ver 1.0.2. - no change in the how-to, the included files updated to handle username more correctly
##	ver 1.0.3. - added changes to admin_db_utils.php
##	ver 1.0.4. - corrected included template files shoutbox_max.tpl and shoutbox_max_guest-tpl
##	ver 1.0.5. - typo reported by RapidDr3am see http://mods.db9.dk/viewtopic.php?t=3328
##	ver 1.0.6. - typo reported by nullOs see http://mods.db9.dk/viewtopic.php?t=3449
##	ver 1.0.7. - typo reported by [D]J see http://mods.db9.dk/viewtopic.php?t=3449
##
##
################################################################# 
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites 
################################################################# 
## 
## Installation Notes: 
## This mod REQUIRE, the installation of my "Extra permission mod" BEFORE, in order to allow more flex permission control
######################################################## 

# 
#-----[ SQL ]------------------------------------------------- 
#
# If you use an alpha release of EasyMOD, this instructions will not be executed!
# Please read author notes to update your database.
#
copy shoutbox_db_update.php to shoutbox_db_update.php
execute shoutbox_db_update.php
delete shoutbox_db_update.php

# 
#-----[ OPEN ]------------------------------------------ 
# 
language/lang_english/lang_main.php

# 
#-----[ FIND ]------------------------------------------ 
#
?>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
//new shoutbox
$lang['Shoutbox'] = 'Shoutbox';
$lang['Shoutbox_date'] = ' d m Y h:i:s';
$lang['Shout_censor'] = 'shout removed !';
$lang['Shout_refresh'] = 'Refresh';
$lang['Shout_text'] = 'Your text';
$lang['Viewing_Shoutbox']= 'Viewing shoutbox';
$lang['Censor'] ='Censor';

# 
#-----[ OPEN ]------------------------------------------ 
# 
#    (make sure to edit this file for every language your admin uses). 
language/lang_english/lang_admin.php

# 
#-----[ FIND ]------------------------------------------ 
# 
?>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
//Added shoutbox mod
$lang['Prune_shouts'] = 'Auto prune shouts'; 
$lang['Prune_shouts_explain'] = 'Number of days, before the shouts are deleted, if a value of 0 is submittd, autoprune will be disabled'; 

# 
#-----[ OPEN ]------------------------------------------ 
# 
index.php

# 
#-----[ FIND ]------------------------------------------ 
#
'FORUM_LOCKED_IMG' => $images['forum_locked'],


# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
'U_SHOUTBOX' => append_sid("shoutbox.$phpEx"),
'L_SHOUTBOX' => $lang['Shoutbox'],
'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.$phpEx"),

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/constants.php

# 
#-----[ FIND ]------------------------------------------ 
#
define('PAGE_GROUPCP', -11);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
define('PAGE_SHOUTBOX_MAX',-1035);
define('PAGE_SHOUTBOX',-1035);

# 
#-----[ FIND ]------------------------------------------ 
#
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
define('SHOUTBOX_TABLE', $table_prefix.'shout');

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/page_header.php

# 
#-----[ FIND ]------------------------------------------ 
#
$view_pages_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
if ($view_pages_ary[''.PAGE_SHOUTBOX]['auth_view']) 
{
	$template->assign_block_vars('switch_shoutbox_on', array());
}

# 
#-----[ OPEN ]------------------------------------------ 
# 
viewonline.php

# 
#-----[ FIND ]------------------------------------------ 
#
$location_url = "faq.$phpEx";
break;

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
case PAGE_SHOUTBOX:
	$location = $lang['Shoutbox'];
	$location_url = "shoutbox_max.$phpEx";
	break;

# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_board.php

# 
#-----[ FIND ]------------------------------------------ 
# 
"L_ENABLE_PRUNE" => $lang['Enable_prune'], 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
'L_PRUNE_SHOUTS' => $lang['Prune_shouts'], 
'L_PRUNE_SHOUTS_EXPLAIN' => $lang['Prune_shouts_explain'], 

# 
#-----[ FIND ]------------------------------------------ 
# 
"PRUNE_NO" => $prune_no, 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
'PRUNE_SHOUTS' => $new['prune_shouts'], 

# 
#-----[ OPEN ]------------------------------------------ 
# 
#  (make sure to edit this file for every theme your admin uses). 
templates/subSilver/admin/board_config_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
<tr>
	<td class="row1">{L_ENABLE_PRUNE}</td>
	<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES}  <input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
</tr>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 
<tr> 
   <td class="row1">{L_PRUNE_SHOUTS}<br /><span class="gensmall">{L_PRUNE_SHOUTS_EXPLAIN}</span></td> 
   <td class="row2"><input type="text" size="6" maxlength="6" name="prune_shouts" value="{PRUNE_SHOUTS}" /></td> 
</tr>

# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_users.php

# 
#-----[ FIND ]------------------------------------------ 
#
message_die(GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql);
}

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
$sql = "UPDATE " . SHOUTBOX_TABLE . "
	SET shout_user_id = " . DELETED . ", shout_username = '$username' 
	WHERE shout_user_id = $user_id";
	if( !$db->sql_query($sql) )
	{
		message_die(GENERAL_ERROR, 'Could not update shouts for this user', '', __LINE__, __FILE__, $sql);
	}

# 
#-----[ OPEN ]------------------------------------------ 
# 
admin/admin_db_utilities.php

# 
#-----[ FIND ]------------------------------------------ 
#
$tables = array(

# 
#-----[ AFTER, ADD ]------------------------------------------ 
\n#
$tables[] = 'shout';


# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/index_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
#
<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
</tr>
</table>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
<!-- BEGIN switch_shoutbox_on -->
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2" class="forumline"> 
  <tr> 
           <tr> 
         <td align="center" nowrap="nowrap" class="catHead"><span class="cattitle"><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></td> 
      </tr> 

         <td> 
          <iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="180" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true"></iframe> 
         </td> 
  </tr> 
</table>
<br/>
<!-- END switch_shoutbox_on -->

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/subSilver.cfg

# 
#-----[ FIND ]------------------------------------------ 
#
?>

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
#
$images['icon_censor'] = "$current_template_images/icon_censor.gif";

# 
#-----[ COPY ]------------------------------------------ 
#
copy root/shoutbox.php to shoutbox.php
copy root/shoutbox_max.php to shoutbox_max.php
copy root/shoutbox_view.php to shoutbox_view.php
copy root/templates/subSilver/shoutbox_body.tpl to templates/subSilver/shoutbox_body.tpl
copy root/templates/subSilver/shoutbox_view_body.tpl to templates/subSilver/shoutbox_view_body.tpl
copy root/templates/subSilver/shoutbox_max_body.tpl to templates/subSilver/shoutbox_max_body.tpl
copy root/templates/subSilver/shoutbox_max_guest_body.tpl to templates/subSilver/shoutbox_max_guest_body.tpl
copy root/templates/subSilver/images/icon_censor.gif to templates/subSilver/images/icon_censor.gif

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 

# EoM 
幻狼神威
竹貓忠實會員
竹貓忠實會員
文章: 389
註冊時間: 2002-10-29 01:54
來自: 薔薇幻境
聯繫:

文章 幻狼神威 »

我不是用那個版本的.......^^"
所以不知道,不過看你貼的安裝檔是蠻像的,不然你再拆掉重裝一次吧!

這是我用的版本,功能強、而且bug少......
來源頁面: http://www.phpbbhacks.com/viewhack.php?id=1595
下載連結: http://www.phpbbhacks.com/download.php?id=1595
[必看] phpBB 架站討論區發文規則與發問格式
學好phpBB的訣竅:
 1. 善用竹貓星球的搜尋功能,可以找到所有相似並解決的主題。
 2. 簡單清楚的把你的問題打在主題上,讓懂的人一看就能了解。
 3. 依照發文格式發文,能幫助大家比較容易的找出問題在那裡。
 4. 一時沒有回應不表示沒人理你,大家都需要一點思考的時間。
 5. 解決問題後請修改第一篇主題,並感謝曾經幫過你的高手們。


切記:PM並不能解決問題,版上發問可以集大家的意見,您的問題可能更快的被解決.....
   ↑蘿莉不在此限.......XD"
yehrussell
竹貓忠實會員
竹貓忠實會員
文章: 557
註冊時間: 2006-01-03 07:48

文章 yehrussell »

幻狼神威 寫:我不是用那個版本的.......^^"
所以不知道,不過看你貼的安裝檔是蠻像的,不然你再拆掉重裝一次吧!

這是我用的版本,功能強、而且bug少......
來源頁面: http://www.phpbbhacks.com/viewhack.php?id=1595
下載連結: http://www.phpbbhacks.com/download.php?id=1595
請教板大,
我使用這一版本,該如何連結表情符號? 加上『更新』鑑
謝謝!
主題已鎖定

回到「外掛問題討論」