1 頁 (共 1 頁)

[問題] Shoutbox for phpBB (Alternative) 不相容於 2.0.11

發表於 : 2005-02-09 13:46
依夢兒
問題外掛:Shoutbox for phpBB (Alternative)
     http://www.phpbb2.de/dload.php?action=file&file_id=140
使用版本:phpBB 2.0.11
狀況描述:

我知道很少人使用這一個版本的 Shoutbox 聊天室....
目前大家聽到的 Shoubox 應該是 mods.db9.dk 的那一個,不過我還是想要請教一下。
將 phpBB 升級到 2.0.11 後,於 Shoutbox 頁面中發言結果頁面變成一片空白的問題,有沒有辦法解決?
目前我只能夠暫時將 phpbb 的 common.php 替換為 2.0.8 的版本,才可以正常使用....

記得很多外掛(例如付費瀏覽)在 2.0.11 下也是會有一些問題,後來經過網友修正才順利相容於 2.0.11 。
不知道有沒有網友願意幫忙看一下 Shoutbox 的程式碼,看看哪裡要改一下?謝謝囉!

發表於 : 2005-02-09 20:43
~倉木麻衣~
不保證全部功能都能正常~
至少剛測的時候~留言/刪除都ok

代碼: 選擇全部

#
#-----[OPEN]----------
#
#底下6個檔案改的地方都相同,所以做一次全部列出來
mods/shoutbox/expanded.php
mods/shoutbox/expanded_add.php
mods/shoutbox/expanded_view.php
mods/shoutbox/shoutbox_auth.php
mods/shoutbox/shoutboxsmileys.php
mods/shoutbox/viewshoutbox.php

#
#-----[FIND]----------
#
$PHP_SELF

#
#-----[REPLACE WITH]----------
#
$_SERVER['PHP_SELF']


#
#-----[OPEN]----------
#
mods/shoutbox/shutbox.php

#
#-----[FIND]----------
#
$PHP_SELF

#
#-----[REPLACE WITH]----------
#
$_SERVER['PHP_SELF']

#
#-----[FIND]----------
#
$page = $sendto;

#
#-----[REPLACE WITH]----------
#
if (!isset($page)){
	$page=isset($_POST['sendto']) ? $_POST['sendto'] : $_GET['sendto'];
}

#
#-----[FIND]----------
#
// SELECT ACTION TO PERFORM

#
#-----[AFTER ADD]----------
#
if (!isset($action)){
	$action=isset($_POST['action']) ? $_POST['action'] : $_GET['action'];
}

#
#-----[FIND]----------
#
        if ($REMOTE_ADDR == getIP($timestamp)

#
#-----[REPLACE WITH]----------
#
		if(!isset($timestamp))
		{
			$timestamp = isset($_POST['timestamp']) ? $_POST['timestamp'] : $_GET['timestamp'];
		}
        if ($_SERVER['REMOTE_ADDR'] == getIP($timestamp) && $is_auth['auth_delete']) {

#
#-----[FIND]
#
		$nick = trim($nick);
		$shout = trim($shout);
		$url = trim($url);

#
#-----[REPLACE WITH]----------
#
		$nick = trim($_POST['nick']);
		$shout = trim($_POST['shout']);
		$url = trim($_POST['url']);

#
#-----[OPEN]----------
#
mods/shoutbox/shoutbox_mysql.php

#
#-----[FIND]----------
#
    $sql = "INSERT INTO ".$tablename." VALUES ('','".mysql_escape_string($nick)."','".mysql_escape_string($shout)."','".mysql_escape_string($url)."','".mysql_escape_string(time())."','".mysql_escape_string($REMOTE_ADDR)."')";

#
#-----[BEFORE ADD]----------
#
    $REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];

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

發表於 : 2005-02-09 23:28
依夢兒
好像還有一點問題....

1. 發言和刪除留言正常,但是點擊 [更多表情符號] 連結跳出的視窗,仍然空白。

2. 以前發言後原來輸入的留言欄位會自動清除,現在則是不會....

發表於 : 2005-02-10 00:05
~倉木麻衣~
依夢兒 寫:好像還有一點問題....

1. 發言和刪除留言正常,但是點擊 [更多表情符號] 連結跳出的視窗,仍然空白。

2. 以前發言後原來輸入的留言欄位會自動清除,現在則是不會....
試看看底下的修改~

代碼: 選擇全部

#
#-----[OPEN]----------
#
mods/shoutbox/expanded_view.php

#
#-----[FIND]----------
#
if ($senddata == "adding")

#
#-----[REPLACE WITH]----------
#
if ($_GET['senddata'] == "adding")

#
#-----[OPEN]----------
#
mods/shoutbox/shoutboxsmileys.php

#
#-----[FIND]----------
#
	if ( $smilies_show_mode == "window" )

#
#-----[REPLACE WITH]----------
#
	if ( $_GET['smilies_show_mode'] == "window" )

#
#-----[SAVE/CLOSE ALL FILE]----------
#
# EoM

發表於 : 2005-02-10 14:03
依夢兒
應該是沒有問題了,感謝你的協助。 :)