[問題] 關於cashmod2.22及super quick reply mod[自己解決]

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

版主: 版主管理群

主題已鎖定
tweetymug
星球普通子民
星球普通子民
文章: 5
註冊時間: 2005-04-09 20:19

[問題] 關於cashmod2.22及super quick reply mod[自己解決]

文章 tweetymug »

請幫忙

我安裝了cash mod2.22版本(在phpbb2.013)

想問一下如何加插頁頂連結,直接連到兌換處呢?

好像不可能的....

============================

另,我下載了super quick reply mod1.3.0版

但不懂安裝的說\r

代碼: 選擇全部

##############################################################
## MOD Title: Super Quick Reply
## MOD Author: hayk < n/a > (Hayk Chamyan) http://www.a13n.org
## MOD Description: This Mod adds "quick" reply form to View Topic page.
##                  It can be configured both for a specific user and for the entire board.
##
## MOD Version: 1.3.0
##
## Installation Level: Intermediate
## Installation Time: 20-25 Minutes
## Files To Edit: admin/admin_board.php,
##                admin/admin_users.php,
##                includes/functions_selects.php,
##                includes/usercp_avatar.php,
##                includes/usercp_register.php,
##                language/lang_english/lang_admin.php,
##                language/lang_english/lang_main.php,
##                templates/subSilver/admin/board_config_body.tpl,
##                templates/subSilver/admin/user_edit_body.tpl,
##                templates/subSilver/profile_add_body.tpl,
##                templates/subSilver/viewtopic_body.tpl,
##                templates/subSilver/subSilver.cfg,
##                viewtopic.php
##
## Included Files: viewtopic_quickreply.php,
##                 viewtopic_quickreply.tpl,
##                 quickreply.gif
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## Personally, I did not like any of the modes I've come across so far, so I decided to make my own.
##
## Features:
##      - SQR panel in board config:
##        - enable/disable SQR
##        - allow SQR for quests
##      - SQR panel in user profile:
##        - SQR form view mode: basic/advanced
##        - SQR form display type: show/hide/on last page
##
## This MOD phpBB 2.0.13 compatible.
##
## This MOD will install using EasyMOD.
##
## This not MOD compliant with MODs (for more info see contrib folder):
##  - Username Color ( http://www.phpbb.com/phpBB/viewtopic.php?t=187354 )
##  - Link Poster's Name To Profile ( http://www.phpbb.com/phpBB/viewtopic.php?t=210954 )
##  - Mini Profile ( http://www.phpbb.com/phpBB/viewtopic.php?t=110870 )
##  - Author Hyperlink ( http://www.phpbb.com/phpBB/viewtopic.php?t=135776 )
##  - Online/Offline/Hidden ( http://www.phpbb.com/phpBB/viewtopic.php?t=228106 )
##
## For mode addons see contrib folder
##
## This MOD is released under the GPL License.
##############################################################
## MOD History:
##
##   2005-03-14 - Version 1.3.0
##      - added Show/Hide SQR button
##      - fixed Author's Notes
##      - added notes about Online/Offline/Hidden
##      - added SQR 1.2.2 to SQR 1.3.0 Code Changes
##
##   2005-03-11 - Version 1.2.2
##      - added code for joint installation with File Attachment Mod
##      - fixed bug with SQR form view mode
##      - re-wrote Author's Notes
##
##   2005-03-10 - Version 1.2.1
##      - make the necessary changes to correct the denied MOD
##
##   2005-03-09 - Version 1.2.0
##      - Anonymous settings are added in forum config in administration panel
##      - fixed bug: moderators did not see SQR form in locked topics and forums
##      - fixed bug at registration process
##      - added code for joint installation with Lock/Unlock in Posting Body MOD
##      - added code for joint installation with Save posts as drafts MOD
##      - added code for joint installation with Topic Search MOD
##      - added code for joint installation with User Profile Link MOD
##      - make more EMC (I hope)
##      - added Rissian language translation
##      - added SQR 1.1.1 to SQR 1.2.0 Code Changes
##
##   2004-12-03 - Version 1.1.1
##      - make the necessary changes to correct the denied MOD
##
##   2004-12-01 - Version 1.1.0
##      - added SQR mode: basic/advanced
##      - added SQR display type: show/hide/last page
##
##   2004-10-08 - Version 1.0.2
##      - make the necessary changes to correct the denied MOD
##
##   2004-09-07 - Version 1.0.1
##      - make the necessary changes to correct the denied MOD
##
##   2004-04-13 - Version 1.0.0
##      - initial public version
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------
#
copy viewtopic_quickreply.php to includes/viewtopic_quickreply.php
copy viewtopic_quickreply.tpl to templates/subSilver/viewtopic_quickreply.tpl
copy quickreply.gif to templates/subSilver/images/lang_english/quickreply.gif

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

#
#-----[ FIND ]------------------------------------------
#
$avatars_local_yes = ( $new['allow_avatar_local'] ) ? "checked=\"checked\"" : "";

#
#-----[ BEFORE, ADD ]--------------------------------------
#
$quickreply_yes = ( $new['allow_quickreply'] ) ? "checked=\"checked\"" : "";
$quickreply_no = ( !$new['allow_quickreply'] ) ? "checked=\"checked\"" : "";

$anonymous_sqr_mode_basic = ( $new['anonymous_sqr_mode']==0 ) ? 'checked="checked"' : '';
$anonymous_sqr_mode_advanced = ( $new['anonymous_sqr_mode']!=0 ) ? 'checked="checked"' : '';

$anonymous_sqr_select = quick_reply_select($new['anonymous_show_sqr'], 'anonymous_show_sqr');


#
#-----[ FIND ]------------------------------------------
#
"L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],

#
#-----[ AFTER, ADD ]--------------------------------------
#

	"L_SQR_SETTINGS" => $lang['SQR_settings'],
	"L_ALLOW_QUICK_REPLY" => $lang['Allow_quick_reply'],
	"L_ANONYMOUS_SHOW_SQR" => $lang['Anonymous_show_SQR'],
	"L_ANONYMOUS_SQR_MODE" => $lang['Anonymous_SQR_mode'],
	"L_ANONYMOUS_SQR_MODE_BASIC" => $lang['Quick_reply_mode_basic'],
	"L_ANONYMOUS_SQR_MODE_ADVANCED" => $lang['Quick_reply_mode_advanced'],

#
#-----[ FIND ]------------------------------------------
#
"NAMECHANGE_NO" => $namechange_no,

#
#-----[ AFTER, ADD ]--------------------------------------
#
	"ANONYMOUS_SQR_SELECT" => $anonymous_sqr_select,
	"QUICKREPLY_YES" => $quickreply_yes,
	"QUICKREPLY_NO" => $quickreply_no,
	"ANONYMOUS_SQR_MODE_BASIC" => $anonymous_sqr_mode_basic,
	"ANONYMOUS_SQR_MODE_ADVANCED" => $anonymous_sqr_mode_advanced,

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

#
#-----[ FIND ]------------------------------------------
#
$user_dateformat = ( $HTTP_POST_VARS['dateformat'] ) ? trim( $HTTP_POST_VARS['dateformat'] ) : $board_config['default_dateformat'];

#
#-----[ AFTER, ADD ]--------------------------------------
#
		$user_show_quickreply = ( isset( $HTTP_POST_VARS['show_quickreply'] ) ) ? intval( $HTTP_POST_VARS['show_quickreply'] ) : 1;
		$user_quickreply_mode = ( isset( $HTTP_POST_VARS['quickreply_mode'] ) ) ? ( ( $HTTP_POST_VARS['quickreply_mode'] ) ? TRUE : 0 ) : TRUE;

#
#-----[ FIND ]------------------------------------------
#
# NOTE: the origial text is:
#   SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . "
SET " . $username_sql . $passwd_sql

#
#-----[ IN-LINE FIND ]------------------------------------------
#
 user_active = $user_status,

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
 user_show_quickreply = $user_show_quickreply, user_quickreply_mode = $user_quickreply_mode,

#
#-----[ FIND ]------------------------------------------
#
$user_dateformat = htmlspecialchars($this_userdata['user_dateformat']);

#
#-----[ AFTER, ADD ]--------------------------------------
#
		$user_show_quickreply = $userdata['user_show_quickreply'];
		$user_quickreply_mode = $userdata['user_quickreply_mode'];

#
#-----[ FIND ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="dateformat" value="' . str_replace("\"", """, $user_dateformat) . '" />';

#
#-----[ AFTER, ADD ]--------------------------------------
#
			$s_hidden_fields .= '<input type="hidden" name="show_quickreply" value="' . $user_show_quickreply . '" />';
			$s_hidden_fields .= '<input type="hidden" name="quickreply_mode" value="' . $user_quickreply_mode . '" />';

#
#-----[ FIND ]------------------------------------------
#
'DATE_FORMAT' => $user_dateformat,

#
#-----[ AFTER, ADD ]--------------------------------------
#
			'QUICK_REPLY_SELECT' => quick_reply_select($user_show_quickreply, 'show_quickreply'),
			'QUICK_REPLY_MODE_BASIC' => ( $user_quickreply_mode==0 ) ? 'checked="checked"' : '',
			'QUICK_REPLY_MODE_ADVANCED' => ( $user_quickreply_mode!=0 ) ? 'checked="checked"' : '',

#
#-----[ FIND ]------------------------------------------
#
'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'],

#
#-----[ AFTER, ADD ]--------------------------------------
#
			'L_QUICK_REPLY_PANEL' => $lang['Quick_reply_panel'],
			'L_SHOW_QUICK_REPLY' => $lang['Show_quick_reply'],
			'L_QUICK_REPLY_MODE' => $lang['Quick_reply_mode'],
			'L_QUICK_REPLY_MODE_BASIC' => $lang['Quick_reply_mode_basic'],
			'L_QUICK_REPLY_MODE_ADVANCED' => $lang['Quick_reply_mode_advanced'],

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

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

#
#-----[ BEFORE, ADD ]--------------------------------------
#
function quick_reply_select($default, $select_name = "show_quickreply")
{
	global $lang;

	$sqr_select = '<select name="' . $select_name . '">';

	while( list($value, $mode) = @each($lang['sqr']) )
	{
		$selected = ( $value == $default ) ? ' selected="selected"' : '';
		$sqr_select .= '<option value="' . $value . '"' . $selected . '>' . $mode . '</option>';
	}

	$sqr_select .= '</select>';

	return $sqr_select;

}


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

#
#-----[ FIND ]------------------------------------------
#
# NOTE: the origial text is:
# function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id)
function display_avatar_gallery
\r
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, &$session_id

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, &$show_quickreply, &$quickreply_mode

#
#-----[ FIND ]------------------------------------------
#
# NOTE: the origial text is:
# $params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'cur_password', 'new_password', 'password_confirm', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popup_pm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat');
$params = array

#
#-----[ IN-LINE FIND ]------------------------------------------
#
);

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, &$show_quickreply, &$quickreply_mode

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

#
#-----[ FIND ]------------------------------------------
#
$user_dateformat = ( !empty($HTTP_POST_VARS['dateformat']) ) ? trim(htmlspecialchars($HTTP_POST_VARS['dateformat'])) : $board_config['default_dateformat'];

#
#-----[ AFTER, ADD ]--------------------------------------
#
	$user_show_quickreply = ( isset( $HTTP_POST_VARS['show_quickreply'] ) ) ? intval( $HTTP_POST_VARS['show_quickreply'] ) : 1;
	$user_quickreply_mode = ( isset( $HTTP_POST_VARS['quickreply_mode'] ) ) ? ( ( $HTTP_POST_VARS['quickreply_mode'] ) ? TRUE : 0 ) : TRUE;

#
#-----[ FIND ]------------------------------------------
#
# NOTE: the origial text is:
# SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popup_pm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "
SET " . $username_sql . $passwd_sql . "user_email =

#
#-----[ IN-LINE FIND ]------------------------------------------
#
 user_lang = '" . str_replace("\'", "''", $user_lang)

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
 user_show_quickreply = $user_show_quickreply, user_quickreply_mode = $user_quickreply_mode,

#
#-----[ FIND ]------------------------------------------
#
# NOTE: the origial text is:
# $sql = "INSERT INTO " . USERS_TABLE . "	(user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
$sql = "INSERT INTO " . USERS_TABLE .

#
#-----[ IN-LINE FIND ]------------------------------------------
#
 user_lang,

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
 user_show_quickreply, user_quickreply_mode,

#
#-----[ FIND ]------------------------------------------
#
# NOTE: the origial text is:
# VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
VALUES ($user_id, '" . str_replace("\'", "''", $username)

#
#-----[ IN-LINE FIND ]------------------------------------------
#
 '" . str_replace("\'", "''", $user_lang)

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
 $user_show_quickreply, $user_quickreply_mode,

#
#-----[ FIND ]------------------------------------------
#
$user_dateformat = $userdata['user_dateformat'];

#
#-----[ AFTER, ADD ]--------------------------------------
#
	$user_show_quickreply = $userdata['user_show_quickreply'];
	$user_quickreply_mode = $userdata['user_quickreply_mode'];

#
#-----[ FIND ]------------------------------------------
#
# NOTE: the origial text is:
# display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popup_pm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $userdata['session_id']);\r
display_avatar_gallery($mode,

#
#-----[ IN-LINE FIND ]------------------------------------------
#
, $userdata['session_id']

#
#-----[ IN-LINE BEFORE, ADD ]------------------------------------------
#
, $user_show_quickreply, $user_quickreply_mode

#
#-----[ FIND ]------------------------------------------
#
'DATE_FORMAT' => $user_dateformat,

#
#-----[ AFTER, ADD ]--------------------------------------
#
		'QUICK_REPLY_SELECT' => quick_reply_select($user_show_quickreply, 'show_quickreply'),
		'QUICK_REPLY_MODE_BASIC' => ( $user_quickreply_mode==0 ) ? 'checked="checked"' : '',
		'QUICK_REPLY_MODE_ADVANCED' => ( $user_quickreply_mode!=0 ) ? 'checked="checked"' : '',

#
#-----[ FIND ]------------------------------------------
#
'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'],

#
#-----[ AFTER, ADD ]--------------------------------------
#
		'L_QUICK_REPLY_PANEL' => $lang['Quick_reply_panel'],
		'L_SHOW_QUICK_REPLY' => $lang['Show_quick_reply'],
		'L_QUICK_REPLY_MODE' => $lang['Quick_reply_mode'],
		'L_QUICK_REPLY_MODE_BASIC' => $lang['Quick_reply_mode_basic'],
		'L_QUICK_REPLY_MODE_ADVANCED' => $lang['Quick_reply_mode_advanced'],

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

#
#-----[ FIND ]------------------------------------------
#
$lang['Version_information']

#
#-----[ AFTER, ADD ]--------------------------------------
#

//
// SQR
//
$lang['SQR_settings'] = 'SQR Settings';
$lang['Allow_quick_reply'] = 'Allow Quick Reply';
$lang['Anonymous_show_SQR'] = 'Show Quick Reply Form for Anonymous Users';
$lang['Anonymous_SQR_mode'] = 'Anonymous Quick Reply Mode';


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

#
#-----[ FIND ]------------------------------------------
#
$lang['A_critical_error']

#
#-----[ AFTER, ADD ]--------------------------------------
#

//
// SQR
//
$lang['Quick_reply_panel'] = 'Super Quick Reply Mod';
$lang['Quick_Reply'] = 'Quick Reply';
$lang['Show_quick_reply'] = 'Show Quick Reply Form';
$lang['sqr']['0'] = 'No';
$lang['sqr']['1'] = 'Yes';
$lang['sqr']['2'] = 'On last page only';
$lang['Quick_reply_mode'] = 'Quick Reply Mode';
$lang['Quick_reply_mode_basic'] = 'Basic';
$lang['Quick_reply_mode_advanced'] = 'Advanced';
$lang['Show_hide_quick_reply_form'] = 'Show/hide quick reply form';

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<tr>
<th class="thHead" colspan="2">{L_AVATAR_SETTINGS}</th>

#
#-----[ BEFORE, ADD ]--------------------------------------
#
	<tr>
	  <th class="thHead" colspan="2">{L_SQR_SETTINGS}</th>
	</tr>
	<tr>
		<td class="row1">{L_ALLOW_QUICK_REPLY}</td>
		<td class="row2"><input type="radio" name="allow_quickreply" value="1" {QUICKREPLY_YES} /> {L_YES}&nbsp;&nbsp;<input type="radio" name="allow_quickreply" value="0" {QUICKREPLY_NO} /> {L_NO}</td>
	</tr>
	<tr>
	  <td class="row1">{L_ANONYMOUS_SHOW_SQR}</td>
	  <td class="row2">{ANONYMOUS_SQR_SELECT}</td>
	</tr>
	<tr>
	  <td class="row1">{L_ANONYMOUS_SQR_MODE}</td>
	  <td class="row2"><input type="radio" name="anonymous_sqr_mode" value="0" {ANONYMOUS_SQR_MODE_BASIC} />{L_ANONYMOUS_SQR_MODE_BASIC}&nbsp;&nbsp;<input type="radio" name="anonymous_sqr_mode" value="1" {ANONYMOUS_SQR_MODE_ADVANCED} />{L_ANONYMOUS_SQR_MODE_ADVANCED}</td>
	</tr>

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<tr>
<th class="thSides" colspan="2" height="12" valign="middle">{L_AVATAR_PANEL}</th>

#
#-----[ BEFORE, ADD ]--------------------------------------
#
	<tr>
	  <th class="thSides" colspan="2" height="12" valign="middle">{L_QUICK_REPLY_PANEL}</th>
	</tr>
	<tr>
	  <td class="row1"><span class="gen">{L_SHOW_QUICK_REPLY}:</span></td>
	  <td class="row2">{QUICK_REPLY_SELECT}</td>
	</tr>
	<tr>
	  <td class="row1"><span class="gen">{L_QUICK_REPLY_MODE}:</span></td>
	  <td class="row2">
		<input type="radio" name="quickreply_mode" value="0" {QUICK_REPLY_MODE_BASIC} />
		<span class="gen">{L_QUICK_REPLY_MODE_BASIC}</span>&nbsp;&nbsp;
		<input type="radio" name="quickreply_mode" value="1" {QUICK_REPLY_MODE_ADVANCED} />
		<span class="gen">{L_QUICK_REPLY_MODE_ADVANCED}</span></td>
	</tr>
	<tr>
	  <td class="catSides" colspan="2"><span class="cattitle">&nbsp;</span></td>
	</tr>

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

#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN switch_avatar_block -->

#
#-----[ BEFORE, ADD ]--------------------------------------
#
	<tr>
	  <td class="catSides" colspan="2"><span class="cattitle">&nbsp;</span></td>
	</tr>
	<tr>
	  <th class="thSides" colspan="2" height="12" valign="middle">{L_QUICK_REPLY_PANEL}</th>
	</tr>
	<tr>
	  <td class="row1"><span class="gen">{L_SHOW_QUICK_REPLY}:</span></td>
	  <td class="row2">{QUICK_REPLY_SELECT}</td>
	</tr>
	<tr>
	  <td class="row1"><span class="gen">{L_QUICK_REPLY_MODE}:</span></td>
	  <td class="row2">
		<input type="radio" name="quickreply_mode" value="0" {QUICK_REPLY_MODE_BASIC} />
		<span class="gen">{L_QUICK_REPLY_MODE_BASIC}</span>&nbsp;&nbsp;
		<input type="radio" name="quickreply_mode" value="1" {QUICK_REPLY_MODE_ADVANCED} />
		<span class="gen">{L_QUICK_REPLY_MODE_ADVANCED}</span></td>
	</tr>

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

#
#-----[ FIND ]------------------------------------------
# NOTE: the origial text is:
# <td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
<td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}">

#
#-----[ IN-LINE FIND ]------------------------------------------
#
</a></span></td>

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
</a>

#
#-----[ AFTER, ADD ]--------------------------------------
#
<!-- BEGIN switch_quick_reply -->
&nbsp;&nbsp;&nbsp;<a href="{U_POST_SQR_TOPIC}"><img src="{SQR_IMG}" border="0" alt="{L_POST_SQR_TOPIC}" align="middle" /></a>
<!-- END switch_quick_reply -->
</span></td>

#
#-----[ FIND ]------------------------------------------
#
<table width="100%" cellspacing="2" border="0" align="center">

#
#-----[ BEFORE, ADD ]--------------------------------------
#
<!-- BEGIN switch_quick_reply -->
	{QRBODY}
<!-- END switch_quick_reply -->


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

#
#-----[ FIND ]------------------------------------------
# NOTE: the origial text is:
# $images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif";
$images['reply_locked'] =

#
#-----[ AFTER, ADD ]--------------------------------------
#
$images['quickreply'] = "$current_template_images/{LANG}/quickreply.gif";

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);

#
#-----[ AFTER, ADD ]--------------------------------------
#
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);

#
#-----[ FIND ]------------------------------------------
#
'body' => 'viewtopic_body.tpl')

#
#-----[ BEFORE, ADD ]------------------------------------------
#
	'qrbody' => 'viewtopic_quickreply.tpl',

#
#-----[ FIND ]------------------------------------------
#
# NOTE: the origial text is:
# //
# // Okay, let's do the loop, yeah come on baby let's do the loop
# // and it goes like this ...
# //
# for($i = 0; $i < $total_posts; $i++)
//
//
//
//
for($i = 0; $i < $total_posts; $i++)

#
#-----[ BEFORE, ADD ]--------------------------------------
#
//
// SQR
//
$sqr_last_page = ((floor( $start / intval($board_config['posts_per_page']) ) + 1 ) == ceil( $total_replies / intval($board_config['posts_per_page'])));
if ( $userdata['user_id'] != ANONYMOUS )
{
	$sqr_user_display = (bool)( ($userdata['user_show_quickreply']==2) ? $sqr_last_page : $userdata['user_show_quickreply'] );
}
else
{
	$sqr_user_display = (bool)( ($board_config['anonymous_show_sqr']==2) ? $sqr_last_page : $board_config['anonymous_show_sqr'] );
}
if ( ($board_config['allow_quickreply'] != 0) && $is_auth['auth_reply'] && (($forum_topic_data['forum_status'] != FORUM_LOCKED) || $is_auth['auth_mod'] ) && ( ($forum_topic_data['topic_status'] != TOPIC_LOCKED) || $is_auth['auth_mod'] ) && $sqr_user_display )
{
	$show_qr_form =	true;
}
else
{
	$show_qr_form =	false;
}


#
#-----[ FIND ]------------------------------------------
#
# NOTE: the origial text is:
# $template->assign_block_vars('postrow', array(
$template->assign_block_vars('postrow'

#
#-----[ BEFORE, ADD ]--------------------------------------
#
	//
	// SQR
	// If you have installed "User Profile MOD" - do not add this lines or remove "User Profile MOD"
	//
	if ( $show_qr_form )
	{
		$poster = '<a href="javascript:pn(\''.$poster.'\');">'.$poster.'</a>';
	}


#
#-----[ FIND ]------------------------------------------
#
$template->pparse('body');

#
#-----[ BEFORE, ADD ]--------------------------------------
#
if ( $show_qr_form )
{
	$template->assign_block_vars('switch_quick_reply', array());
	include($phpbb_root_path . 'includes/viewtopic_quickreply.'.$phpEx);
}


#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_users ADD user_show_quickreply TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_quickreply_mode TINYINT(1) DEFAULT '1' NOT NULL;
UPDATE phpbb_users SET user_show_quickreply=0 WHERE user_id=-1;
UPDATE phpbb_users SET user_quickreply_mode=0 WHERE user_id=-1;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_quickreply', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('anonymous_show_sqr', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('anonymous_sqr_mode', '0');

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
主要是想問,修改 language/lang_english/lang_admin.php,
language/lang_english/lang_main.php,

的方法是否跟修改繁中版的一樣呢???原來不用改的
最後由 tweetymug 於 2005-04-15 16:45 編輯,總共編輯了 1 次。
tweetymug
星球普通子民
星球普通子民
文章: 5
註冊時間: 2005-04-09 20:19

文章 tweetymug »

請問
是否我做錯了虾米,所以米人理我呢?
寒冰軒
竹貓忠實會員
竹貓忠實會員
文章: 417
註冊時間: 2003-11-06 23:24
來自: 阿婆A灶腳
聯繫:

文章 寒冰軒 »

你都安裝好了貨幣
怎會不知如何安裝super quick reply mod1.3.0
language/lang_english/lang_admin.php
language/lang_english/lang_main.php
修改方法是一樣的呀
~§ 架站系統:WindowsXP §~
~§ 架站程式:Appserv2.4.4a §~
~§ 使用網路:giga ADSL §~
~§ 安裝程式:Apache + php + MySql §~
~§ 論壇版本: 2.0.18 §~
申明檔
1.新手發問並不是可恥的事.可恥的是沒有按照發文規則及格式還裝做沒解決你的問題是我們的錯。
2.很樂意大家pm給我.或把我加入即時通.msn,但加入並不是代表小弟已成為您的私人看護
3.還是想不通嗎? 那可以到地下十八樓找你的答案。
[http://microduo.home99.tw/?fromuid=6331]微剋多資訊[/url]
tweetymug
星球普通子民
星球普通子民
文章: 5
註冊時間: 2005-04-09 20:19

文章 tweetymug »

....大大抬舉我了
我第一次裝的mod是cash mod.....
是教學做的好好我才成功的

但....其實我很多都看不懂,搞不清
======
一樣哦,那繁中的lang_admin.php不是有中文字的嗎...
我太笨了
======
接觸phpbb才幾天而已,請原諒
tweetymug
星球普通子民
星球普通子民
文章: 5
註冊時間: 2005-04-09 20:19

文章 tweetymug »

代碼: 選擇全部

#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_users ADD user_show_quickreply TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_quickreply_mode TINYINT(1) DEFAULT '1' NOT NULL;
UPDATE phpbb_users SET user_show_quickreply=0 WHERE user_id=-1;
UPDATE phpbb_users SET user_quickreply_mode=0 WHERE user_id=-1;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_quickreply', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('anonymous_show_sqr', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('anonymous_sqr_mode', '0');
以上的東東是甚麼.......在那兒搞的?
tweetymug
星球普通子民
星球普通子民
文章: 5
註冊時間: 2005-04-09 20:19

文章 tweetymug »

米人理我,....自己花了九牛二虎之力終於完成

....運氣好的我......

原來中文那個不用改的......哭
主題已鎖定

回到「外掛問題討論」