[問題]回覆才能觀看內容+隱藏檔案

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

版主: 版主管理群

主題已鎖定
bbss
星球普通子民
星球普通子民
文章: 20
註冊時間: 2003-09-29 22:08
聯繫:

[問題]回覆才能觀看內容+隱藏檔案

文章 bbss »

問題外掛:回覆才能觀看內容+隱藏檔案
使用連結:http://www.bbss.idv.tw
使用版本:(例:phpBB 2.0.6)
網站位置:(例:http://www.bbss.idv.tw)
狀況描述:
請問各位高手,如何隱藏內容及檔案呢(attach_mod),感謝高手們的答覆。

裝過hide mod 及attach_mod,要如何結合呢?
圖檔
吉川拓也
竹貓忠實會員
竹貓忠實會員
文章: 1215
註冊時間: 2003-02-09 18:24
來自: [ G.I.T ]
聯繫:

Re: [問題]回覆才能觀看內容+隱藏檔案

文章 吉川拓也 »

bbss 寫:問題外掛:回覆才能觀看內容+隱藏檔案
使用連結:http://www.bbss.idv.tw
使用版本:(例:phpBB 2.0.6)
網站位置:(例:http://www.bbss.idv.tw)
狀況描述:
請問各位高手,如何隱藏內容及檔案呢(attach_mod),感謝高手們的答覆。

裝過hide mod 及attach_mod,要如何結合呢?
如果你指的是隱藏內容無法涵蓋附加檔案 !
那就表示你看文章不是很完整的看 ...
因為作者本身有在後面加上包含附加檔案的方法 !!

請打開 viewtopic.php
尋找

代碼: 選擇全部

if (stristr($pay_user,$user_id)) { 
                                 $message = $message . '<p>----------<br><font color="#FF0000">' . $lang['Paymoney_Payok'] . '</font><br>' . $pay_see . $lang['Paymoney_paysee'] . $postrow[$i]['pay_gotmoney'] . $lang['Virtual_Money'] . '</p>'; 
                                 } else {  
在後面加入

代碼: 選擇全部

$showatt = 'no';  
尋找 (這部分音版本不同也會有差異,就是在裝attach file mod時,viewtopic.php最後修改的部分.)

代碼: 選擇全部

display_post_attachments($postrow[$i]['post_id'], $postrow[$i]['post_attachment']); 

改成

代碼: 選擇全部

if ($showatt <> 'no') 
{ 
display_post_attachments($postrow[$i]['post_id'], $postrow[$i]['post_attachment']); 
}  

打開 includes\topic_review.php

尋找

代碼: 選擇全部

$message = '<p><font color="#FF0000">' . $lang['Paymoney_Cantrew']. '</font></p>';

後面加入

代碼: 選擇全部

$showatt = 'no'; 



尋找 (這部分音版本不同也會有差異,就是在裝attach file mod時,topic_review.php最後修改的部分.)

代碼: 選擇全部

display_review_attachments($row['post_id'], $row['post_attachment'], $is_auth);  
修改成

代碼: 選擇全部

if ($showatt <> 'no') 
                        { 
         display_review_attachments($row['post_id'], $row['post_attachment'], $is_auth); 
                        }  
善用 搜尋 可以解決您 90% 的問題
頭腦清晰,選擇正確。 (╯▔︹▔)╯~╘═╛
bbss
星球普通子民
星球普通子民
文章: 20
註冊時間: 2003-09-29 22:08
聯繫:

文章 bbss »

謝謝,小弟當真看的不仔細,應該注意,不過小弟非常感謝吉川拓也
的解答,感繳不盡。
圖檔
bbss
星球普通子民
星球普通子民
文章: 20
註冊時間: 2003-09-29 22:08
聯繫:

文章 bbss »

我已經修改了上面的程式,還是沒辦法隱藏附加檔案,為什麼呢?
圖檔
bbss
星球普通子民
星球普通子民
文章: 20
註冊時間: 2003-09-29 22:08
聯繫:

文章 bbss »

有誰可以救救我,已照上面的程式修改,還是無法涵蓋附加檔案,另外,請問我要去哪裡找到原作者所發表涵蓋隱藏附加檔案的程式呢?我找不到。謝謝。
圖檔
御津闇慈
竹貓忠實會員
竹貓忠實會員
文章: 645
註冊時間: 2001-11-17 10:59

文章 御津闇慈 »

請最好使用編輯功能來編輯
請勿推文
主題已鎖定

回到「外掛問題討論」