[問題] CashMod 2.2.2安裝問題(尚未解決)

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

版主: 版主管理群

主題已鎖定
frankchang
星球普通子民
星球普通子民
文章: 5
註冊時間: 2004-12-31 21:18

[問題] CashMod 2.2.2安裝問題(尚未解決)

文章 frankchang »

我用phpbb 2.0.11
cash mod 222 的 cm_install_222.txt的posting修改部分中寫到:

代碼: 選擇全部

#-----[ FIND ]------------------------------------------ 
# 
		$sql = "SELECT f.*, t.topic_status, t.topic_title

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
t.topic_title

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
#
, t.topic_poster

# 
可是我在posting.php裡找不到\r

代碼: 選擇全部

		$sql = "SELECT f.*, t.topic_status, t.topic_title
最後由 frankchang 於 2005-01-27 20:26 編輯,總共編輯了 1 次。
問題狂
竹貓忠實會員
竹貓忠實會員
文章: 1947
註冊時間: 2004-06-28 17:13

文章 問題狂 »

大約在192行
frankchang
星球普通子民
星球普通子民
文章: 5
註冊時間: 2004-12-31 21:18

文章 frankchang »

問題狂 寫:大約在192行
我的第192行是:

代碼: 選擇全部

		$sql = "SELECT f.*, t.topic_status  
要自行加上嗎 :?:
最後由 frankchang 於 2005-01-27 20:25 編輯,總共編輯了 1 次。
chsa
星球公民
星球公民
文章: 259
註冊時間: 2004-12-27 20:45

文章 chsa »

代碼: 選擇全部

#-----[ 搜尋 ]------------------------------------------ 
# 
      $sql = "SELECT f.*, t.topic_status, t.topic_title 
# 
#-----[ 在此段搜尋 ]------------------------------------------ 
# 
t.topic_title [color=red]可以直接搜尋此段,我一開始也是跟你一樣有這樣的問題[/color]

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 
, t.topic_poster 

#

你可以試試看! :mrgreen:
最後由 chsa 於 2005-01-27 20:39 編輯,總共編輯了 2 次。
frankchang
星球普通子民
星球普通子民
文章: 5
註冊時間: 2004-12-31 21:18

文章 frankchang »

chsa 寫:你可以直接找

代碼: 選擇全部

t.topic_title
我試過了,找到:

代碼: 選擇全部

		$select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';
只找到這個 :roll:
~倉木麻衣~
竹貓忠實會員
竹貓忠實會員
文章: 1405
註冊時間: 2004-03-21 21:00

文章 ~倉木麻衣~ »

應該不至於找不到才對~
我也是用2.0.11版~但是我找的到那一段~
貼一下它前後幾行程式碼給你看看

代碼: 選擇全部

	case 'vote':
		if ( empty( $topic_id) )
		{
			[color=red]message_die(GENERAL_MESSAGE, $lang['No_topic_id']);[/color]
		}

		[color=blue]$sql = "SELECT f.*, t.topic_status, t.topic_title[/color]  
			FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t
			WHERE t.topic_id = $topic_id
				AND f.forum_id = t.forum_id";
		break;

	case 'quote':
藍色部份是mod中要求尋找的~
t.topic_title 在postint.php裡應該只會出現二次~你可以重新找看看
還不行的話~也可以用紅色部份去尋找~它只會出現一次\r
然後對照一下相關位置~應該不難找到才是
小西
竹貓忠實會員
竹貓忠實會員
文章: 460
註冊時間: 2004-11-19 22:29
來自: 超可愛聲音

文章 小西 »

192行應該是$sql = "SELECT f.*, t.topic_status, t.topic_title
(完全沒有改過的是這樣)
還是你有裝過其他外掛把, t.topic_title去掉了?
ACG自唱:分貝網存放區 (192kbps) ;NICO存放區 (320kbps)
chsa
星球公民
星球公民
文章: 259
註冊時間: 2004-12-27 20:45

文章 chsa »

其實我們都在找同一個地方\r

代碼: 選擇全部

case 'vote':
		if ( empty( $topic_id) )
		{
			message_die(GENERAL_MESSAGE, $lang['No_topic_id']);
		}

	 [color=red]$sql = "SELECT f.*, t.topic_status, t.topic_title  [/color]	  
			FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t
			WHERE t.topic_id = $topic_id
				AND f.forum_id = t.forum_id";
		break;

	case 'quote':
	case 'editpost':
	case 'delete':
	case 'poll_delete':
		if ( empty($post_id) )
		{
			message_die(GENERAL_MESSAGE, $lang['No_post_id']);
		}

		$temp = $submit;
		$submit = !(!$submit || ( isset($board_config['cash_disable']) && !$board_config['cash_disable'] && (($mode == 'editpost') || ($mode == 'delete'))));
		$select_sql = ( !$submit ) ? ", [color=red]t.topic_title[/color], p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : '';
		$from_sql = ( !$submit ) ? ", " . POSTS_TEXT_TABLE . " pt, " . USERS_TABLE . " u" : '';
以上紅色地方都是我們以上說的!MOD要找的是上面那個!
主題已鎖定

回到「外掛問題討論」