第 2 頁 (共 5 頁)
發表於 :
2006-05-23 10:01 pm
由 minglo
leobbs 寫:minglo 寫:leobbs 寫:可以教一下如何新增p_userlv欄位嗎
ALTER TABLE `wog_message` ADD `p_userlv` INT( 11 ) UNSIGNED DEFAULT '0' NOT NULL ;
ALTER TABLE `wog_player` ADD `p_userlv` INT( 11 ) UNSIGNED DEFAULT '0' NOT NULL ;
感激不敬^^謝了
不用客氣,不過你真要學學sql啦
發表於 :
2006-05-23 10:07 pm
由 sizkin
有錯!!
acp.inc.php
- 代碼: 選擇全部
//Global.bak.php Path
$root_path = "./";
require($root_path."forum_support/function.php");
require($root_path."forum_support/[color=red]global.bak.php[/color]");
改成:
- 代碼: 選擇全部
//Global.bak.php Path
$root_path = "./";
require($root_path."forum_support/function.php");
require($root_path."forum_support/[color=red]global.php[/color]");
這先可以成功進入管理台
發表於 :
2006-05-23 10:26 pm
由 minglo
檢視玩家訊息中心好像出了點錯
開啟 acpmain.php
尋找
- 代碼: 選擇全部
$pack=$DB_site->query("select title,dateline from wog_message a, wog_player b where a.p_id=b.p_id and b.p_name ='".$_POST["target_name"]."' and p_userlv=0 order by m_id desc");
$pack2=$DB_site->query("select title,dateline from wog_message a, wog_player b where a.p_id=b.p_id and b.p_name ='".$_POST["target_name"]."' and p_userlv>0 order by m_id desc");
取代
- 代碼: 選擇全部
$pack=$DB_site->query("select title,dateline from wog_message a, wog_player b where a.p_id=b.p_id and b.p_name ='".$_POST["target_name"]."' and b.p_userlv=0 order by m_id desc");
$pack2=$DB_site->query("select title,dateline from wog_message a, wog_player b where a.p_id=b.p_id and b.p_name ='".$_POST["target_name"]."' and b.p_userlv>0 order by m_id desc");
發表於 :
2006-05-23 10:32 pm
由 leobbs
大大可以結合涅魂大的聊天室嗎
發表於 :
2006-05-24 5:35 pm
由 想不通
已新增工會和隊伍 和一點點修改
發表於 :
2006-05-24 5:49 pm
由 japhen
問一下哦,我用的是UTF-8繁体版的WOG,因為我在這里只能找到ACP 3的BIG5版,我就只能用UE跟ConvertZ去轉換內碼,結果一轉,ACPMAIN.PHP就一直出錯,在1150行的位置.........我看的懂PHP,進去看了半天也不見錯誤在哪,就一直都有
Parse error: syntax error, unexpected T_STRING in /discuz/wog/acpmain.php on line 1150
的錯誤,想問問各位有人解決過這個問題嗎
發表於 :
2006-05-24 5:51 pm
由 japhen
我懷疑是PHP跟HTML代碼嵌套不適用於UTF8(NO BOM)的檔案格式..........但..........中間那段HTML碼那麼長,要改成PHP代碼輸出實在有點...........
怎麼辦才好?
發表於 :
2006-05-24 5:53 pm
由 minglo
其實我本有制作隊伍管理,不過沒有發出來,你整合了還好!
發表於 :
2006-05-24 5:58 pm
由 leobbs
不過隊伍管理好像不能修改
發表於 :
2006-05-24 6:04 pm
由 japhen
哈!我找到原因了~~~~
轉成UTF8碼之後,在第1148行的
echo "玩家角色資料更新成功";
最後一個雙引號之前出現了一個\(反斜線)
就這個錯誤~~~~~唉,害我抓半天
發表於 :
2006-05-24 6:26 pm
由 sizkin
請問在acpleft.php中
- 代碼: 選擇全部
<tr>
<td align="left">
<p><font size="1" face="新細明體">
<input class="text" type="submit" value="[color=red]隊伍管理[/color]" name="actions"></font></td>
</tr>
<tr>
<td align="left">
<p><font size="1" face="新細明體">
<input class="text" type="submit" value="職業管理" name="actions"></font></td>
</tr>
<tr>
<td align="left">
<p><font size="1" face="新細明體">
<input class="text" type="submit" value="[color=red]隊伍管理[/color]" name="actions"></font></td>
</tr>
隊伍管理是否重複了??
發表於 :
2006-05-24 6:31 pm
由 edwin
japhen 寫:我懷疑是PHP跟HTML代碼嵌套不適用於UTF8(NO BOM)的檔案格式..........但..........中間那段HTML碼那麼長,要改成PHP代碼輸出實在有點...........
怎麼辦才好?
html代碼是不會不適用於UTF8,
做成錯誤的只會可能是 中文字 吧
發表於 :
2006-05-24 7:03 pm
由 attackangel
下載不了..壞掉!!
發表於 :
2006-05-24 8:19 pm
由 想不通
attackangel 寫:下載不了..壞掉!!
可能是一些特別問題 可能是只有1線或太多人連上http://(www17)這伺服人多吧 不行可多試幾次 因為我看了你這篇東西後再下載是可以下載的
發表於 :
2006-05-25 2:56 pm
由 minglo
leobbs 寫:大大可以結合涅魂大的聊天室嗎
這方法可以勉強運作不過禁言就不能
acp.inc.php
尋找
- 代碼: 選擇全部
$acpConf["Message"]="wog_chat_message.txt";
取代
- 代碼: 選擇全部
$acpConf["Message"]="chat_log.txt";
chat.php
尋找
- 代碼: 選擇全部
$_filename = "chat_log.txt";
下面加上
- 代碼: 選擇全部
$_filename = "wog_history.txt";
尋找
- 代碼: 選擇全部
$fp = fopen($_filename,'a+');
下面加上
- 代碼: 選擇全部
$hfp=fopen($_filenamea,"a+");
尋找
- 代碼: 選擇全部
while(!is_writeable($_filename)){}
fputs($fp,$s."\r\n");
fclose($fp);
下面加上
- 代碼: 選擇全部
while(!is_writeable($_filenamea)){
}
fputs($hfp,$s."\r\n");
fclose($hfp);
尋找
- 代碼: 選擇全部
unset($s);
unset($fp);
下面加上
- 代碼: 選擇全部
unset($s);
unset($hfp);
acpmain.php
尋找
- 代碼: 選擇全部
$show_word_text=split("#@#",$show[$t1]);
取代
- 代碼: 選擇全部
$show_word_text=split("###",$show[$t1]);
並建立一個wog_history.txt應該就可以勉強運作