1 頁 (共 2 頁)

[討論] 2.0.18相容GOBAL ANNOUNCE

發表於 : 2005-11-01 09:38
doracity
現在2.0.18是不相容GOBAL ANNOUNCE的
我發現一個簡單方法可以使2.0.18能使用全域公告
但不知是不是正確的做法, 亦不知會不會有什麼影響\r
方法如下

開POSTING.PHP:
找到\r

代碼: 選擇全部

$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ) ? $topic_type : POST_NORMAL;
取代成:

代碼: 選擇全部

$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE, POST_GLOBAL_ANNOUNCE )) ) ? $topic_type : POST_NORMAL;
用這個方法應也可以用於精華等不能使用於2.0.18的功能\r
不知我這樣做是否正確的做法?
請各位大大教一下我

發表於 : 2005-11-01 15:02
心靈捕手
To doracity:

我個人以為:
您的作法是正確且必須的. :-D

發表於 : 2005-11-01 23:50
SimonLeung
謝謝你丫!
我正為這問題已感到困擾\r
問題現在已經迎刃已解

:-D

發表於 : 2005-11-02 07:42
doracity
那就好了~
我還怕教錯大家呢 :lol:

發表於 : 2005-11-02 16:03
stric
我是安裝Announces Suite 3.0.2
請問一下
我照你這樣改就夠了嗎?

發表於 : 2005-11-03 21:44
vo6
請問樓主用的是global_announcement_1.2.8嗎?

發表於 : 2005-11-04 07:13
doracity
是啊
有關這類的外掛也應詃該可以用這個方修改的
只要將"POST_GLOBAL_ANNOUNCE"改成你用的外掛設定的名就可以了

發表於 : 2005-11-06 20:55
chenghwa
太棒了,
我弄了二天,
以為程式寫錯了
真是太感激了 :mrgreen:

另外請問一個問題
全區公告
1.2.3版與1.2.8版有何不同

發表於 : 2005-11-06 21:13
心靈捕手
chenghwa 寫:太棒了,
我弄了二天,
以為程式寫錯了
真是太感激了 :mrgreen:

另外請問一個問題
全區公告
1.2.3版與1.2.8版有何不同
以下是外掛安裝說明部份擷取, 參考一下吧! ;-)
##############################################################
## MOD History:
##
## 2003-12-13 - Version 1.2.8
## - phpBB template & EasyMOD compliance enhancement
## - Chinese Traditional Taiwan, Dutch, Estonian, French,
## German, Hungarian, Icelandic, Italian, Lithuanian
## Polish & Spanish translations now provide with the MOD
##
## 2003-08-05 - Version 1.2.7
## - corrected the how-to header
##
## ????-??-?? - Version 1.2.6
## - corrected some problem in the how-to related to EM - if other mods was installed
## - posting.php updated, as the code hade changed slightly
##
## ????-??-?? - Version 1.2.5
## - verifyed for 2.0.6. and EM ready
##
## ????-??-?? - Version 1.2.4
## - improved the code into search.php thanks to the user "FX"
##
## ????-??-?? - Version 1.2.3
## - includes images for "fi apple" template
##
## ????-??-?? - Version 1.2.2
## - fixed that the "hidden" cattegory "global_announcement" was showen in drop-down box
##
## ????-??-?? - Version 1.2.1
## - folder URL of folder_global_announce_new.gif was wrong
##
## ????-??-?? - Version 1.2.0
## - now confirmed on phpBB2 ver 2.0.2, minor changes needed
##
## ????-??-?? - Version 1.0.7
## - makes it posible to make a hidden category, so global announcement can be controlled more exact
##
## ????-??-?? - Version 1.0.6
## - one more typo fixed in the admin_ug_auth.php
##
## ????-??-?? - Version 1.0.5
## - History started, fixed a error in admin_ug_auth.php
##
## ????-??-?? - Version 1.0.0
## - initial release
##
## ????-??-?? - Version 0.9.0
## - initial beta
##
##############################################################

發表於 : 2005-11-17 19:46
chenghwa
謝謝

發表於 : 2005-12-20 19:01
過山雲
沒錯!
2.0.18搭配全區公告1.2.8
若沒有修改這臨門一腳\r
全區公告是失效,無法使用的!
(將討論串設為全區公告,會自動變回一般文章.)

發表於 : 2005-12-20 19:38
小竹子
感謝分享,本文置頂 :-D

發表於 : 2005-12-21 14:02
tyh63
呃, 還有一個問題, 同樣的版本搭配, 在 preview 時, topic type 當選擇 Global Announcement 時, checkbox 那裡不會變.

我改了一下他的內容

原始內容

代碼: 選擇全部

// Start add - Global announcement MOD
if( $is_auth['auth_globalannounce'] ) 
{ 
   $topic_type_toggle .= '<input type="radio" name="topictype" value="' . POST_GLOBAL_ANNOUNCE . '"'; 
   if ( $post_data['topic_type'] == POST_GLOBAL_ANNOUNCE || $topic_type == POST_GLOBAL_ANNOUNCE ) 

   if ( $post_data['topic_type'] == POST_GLOBAL_ANNOUNCE ) 
   { 
      $topic_type_toggle .= ' checked="checked"'; 
   } 
   $topic_type_toggle .= ' /> ' . $lang['Post_global_announcement'] . '&nbsp;&nbsp;'; 
} 
// End add - Global announcement MOD
改為\r

代碼: 選擇全部

// Start add - Global announcement MOD

if( $is_auth['auth_globalannounce'] ) 

{
   $topic_type_toggle .= '<input type="radio" name="topictype" value="' . POST_GLOBAL_ANNOUNCE . '"'; 

   if ( $post_data['topic_type'] == POST_GLOBAL_ANNOUNCE || $topic_type == POST_GLOBAL_ANNOUNCE ) {
      $topic_type_toggle .= ' checked="checked"'; 

   } 

   $topic_type_toggle .= ' /> ' . $lang['Post_global_announcement'] . '&nbsp;&nbsp;'; 

} 

// End add - Global announcement MOD
這樣就OK了, 不曉得這樣改會不會有問題勒. :-P

發表於 : 2005-12-21 16:14
過山雲
嘗試解讀您的意思
發表(回覆)文章
有個「預覽文章」的功能\r
您修正的是針對這個部分嗎?

發表於 : 2005-12-21 16:22
tyh63
過山雲 寫:嘗試解讀您的意思
發表(回覆)文章
有個「預覽文章」的功能\r
您修正的是針對這個部分嗎?
嗯嗯,是滴,我是用英文版在測的,所以不知道他翻譯是什麼,歹勢呀