1 頁 (共 1 頁)

[問題]關於board_msg_copy1

發表於 : 2003-05-18 16:16
windtalk
請問一下喔~
我安裝board_msg_copy1這個mod後~
要執行board_msg_inst.php後出現以下訊息耶~~
目前再管理版面有公告欄了,但無法使用呢>"<
pls help me!!!

謝謝^^"

ps:我的系統是redhat8.0 + apache2.0.40 + mysql3.23.52 + php4 + phpBB2


訊息如下
"; } else { echo "Install complete, new row in the table added.


Please remember to delete this file ASAP.


"; } $sql1 = "INSERT INTO ". $table_prefix.$tablename ." (config_name, config_value) VALUES ('board_msg', '
This is an example message of the Board Message MOD.

Site of the Author
Sven Ansem
')"; $result = mysql_query($sql1); if(!$result) echo "Install failed

"; if (mysql_error()) { echo "Error Report: ".mysql_error()."

"; } else { echo "Install complete, new row in the table added.


Please remember to delete this file ASAP."; } exit; ?>

發表於 : 2003-05-18 16:28
windtalk
不好意思,忘了用格式 :cry: 快補上....

問題外掛:板面公告
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php?t=9308&start=0
使用版本:phpBB 2.0.4 (如果沒記錯ㄉ話>"<)
網站位置:http://www.windtalk.idv.tw/phpBB2

發表於 : 2003-05-18 21:24
動機不明
我的感覺是這個檔案出現問題耶\r

board_msg_inst.php

發表於 : 2003-05-19 12:18
windtalk
河風 寫:我的感覺是這個檔案出現問題耶\r

board_msg_inst.php

可是我的board_msg_inst.php這個檔案是從原始檔下載的耶~~@@"
須要修改嗎???
<?
// INSTALL Board Message MOD 1.0.0 mySQL table
// This script installs the rows necessary for Board Message MOD 1.0.0
// I modified this install script of the Calender of Websnail
$tablename = 'config';

// ******************* NO EDITING BELOW THIS LINE *******************

$lpetver = '1.0.0';

// connect to phpbb
include('./config.php');

$cnx = mysql_connect($dbhost, $dbuser, $dbpasswd)
or die("Unable to connect to database server.");
mysql_select_db($dbname, $cnx)
or die("Unable to select database.");


$sql1 = "INSERT INTO ". $table_prefix.$tablename ." (config_name, config_value) VALUES ('board_msg_enable', '0')";

$result = mysql_query($sql1);
if(!$result)
echo "Install failed<BR><BR>";
if (mysql_error()) { echo "Error Report: <B>".mysql_error()."</B><BR><BR>"; }
else {
echo "Install complete, new row in the table added.<BR><BR><BR>Please remember to delete this file ASAP.<BR><BR><BR>";
}

$sql1 = "INSERT INTO ". $table_prefix.$tablename ." (config_name, config_value) VALUES ('board_msg', '<center> This is an example message of the Board Message MOD.<br /><br /><a href=http://www.shannado.nl>Site of the Author</a><br /><a href=mailto:sven@shannado.nl>Sven Ansem</a></center>')";

$result = mysql_query($sql1);
if(!$result)
echo "Install failed<BR><BR>";
if (mysql_error()) { echo "Error Report: <B>".mysql_error()."</B><BR><BR>"; }
else {
echo "Install complete, new row in the table added.<BR><BR><BR>Please remember to delete this file ASAP.";
}
exit;
?>

發表於 : 2003-05-21 17:52
windtalk
我想可能是我的資料庫寫入有問題吧~~~我再研究看看