wog放在phpbb目錄裡面的話\r
代碼: 選擇全部
$phpbb_root_path = '../phpbb/'; //phpbb的相對路徑
require('./config/function.php');
代碼: 選擇全部
$phpbb_root_path = '../'; //phpbb的相對路徑
require('./config/function.php');
版主: 版主管理群
代碼: 選擇全部
JavaScript程式語法(一)
--------------------------------------------------------------------------------
<SCRIPT language=JavaScript>
<!--
function openWindow(former) {
var SelectedIndex = former.selector.selectedIndex;
var URLocation = former.selector.options[SelectedIndex].value;
window.open(URLocation);
// msg = open(URLocation,"","location=yes,scrollbars=no,status=yes");
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</SCRIPT>
放置位置:overall_header.tpl <head>及</head>之間。
代碼: 選擇全部
<head>及</head>
代碼: 選擇全部
<a href="javascript:MM_openBrWindow('js-028-01.htm','letter','scrollbars=no,resizable=yes,width=700,height=500')">按此看範例</a>
代碼: 選擇全部
<?php
/////////////////////////////////////////////////////////////
// Please note that if you get any errors when connecting, //
// that you will need to email your host as we cannot tell //
// you what your specific values are supposed to be //
/////////////////////////////////////////////////////////////
// type of database running
// (only mysql is supported at the moment)
$dbservertype='mysql';
// hostname or ip of server
$servername='aratsuki.no-ip.com'; //<--你使用的db的ip或網址
// username and password to log onto db server
$dbusername='User'; //<--連結db的帳號
$dbpassword='****'; //<--連結db的密碼\r
// name of database
$dbname='mysql2'; //<--你使用的db名稱\r
// technical email address - any error messages will be emailed here
$technicalemail='newko_ha@hotmail.com'; //<--當有error訊息時所要寄發的email位子
// use persistant connections to the database
// 0 = don't use
// 1 = use
$usepconnect=0;
?>
大大有匯入sql檔嗎??Aratsuki 寫:我發現當我架設完成後,「角色圖像」是沒有選擇的,
「★圖像預覽★」裡面的圖更是全部叉叉,right click圖圖內容顯示"http://XXX.yyy.com/forum2/wog/img/"
「角色職業」則出現"undefined"。
這究竟與那一個檔案有關?
我應該怎樣改?
然而我懷疑和wog_etc.php有關,但不肯定。
以下(在wog_etc.php)裡:我已確定已把圖放在./wog/img/代碼: 選擇全部
//######################## img begin ############################## function img_view() { global $DB_site; echo '<body bgcolor="#000000" text="#EFEFEF" link="#EFEFEF" vlink="#EFEFEF" alink="#EFEFEF">'; echo '<table width="95%" border="1" cellspacing="0" cellpadding="0" align="center">'; $img123=$DB_site->query("select * from wog_img "); $sum=0; while(is_array($img123s=$DB_site->fetch_array($img123))) { $sum ++; if(($sum%3)==1){echo "<tr>";} echo "<td align=center ><img src=./img/".$img123s[i_filename]."><br>no. ".$img123s[i_id]."</td>"; } $DB_site->free_result($img123); unset($img123s); echo "</table>"; echo "</body>"; }
煩請成功安裝的大家幫幫忙
我有匯入sql檔呀H.T.Demon 寫:大大有匯入sql檔嗎??
代碼: 選擇全部
if ($this->reporterror==1) {
$message="資料庫發生錯誤於 " . $this->appname . " $GLOBALS[templateversion]:
$msg
";
$message.="mysql 錯誤: " . $this->errdesc . "
";
$message.="mysql 錯誤號碼: " . $this->errno . "
";
$message.="日期: ".date("l dS of F Y h:i:s A")."
";
$message.="腳本: $GLOBALS[bburl]" . (($scriptpath) ? $scriptpath : getenv("REQUEST_URI")) . "
";
$message.="來自: ".getenv("HTTP_REFERER")."
";
if ($technicalemail) {
@mail ($technicalemail,$this->appshortname. " 資料庫錯誤!",$message,"來自: $technicalemail");
}
echo $message;
echo "<html><head><title>$GLOBALS[bbtitle] 資料庫錯誤</title><style>P,BODY{FONT-FAMILY:tahoma,arial,sans-serif;FONT-SIZE:11px;}</style><body>
<!-- $message -->
";
echo "</table></td></tr></table></form>
<blockquote><p> </p><p><b>看起來 $GLOBALS[bbtitle] 資料庫發生了一些微小的錯誤.</b><br>
";
echo "請按瀏覽器的 <a href="javascript:window.location=window.location;">重新整理</a> 按鈕重試.</p>";
echo "一封 E-mail 已經發送給 <a href="mailto:$technicalemail">技術支援信箱</a>, 如果問題仍然存在,你也可以自行寄發 E-mail 聯繫.</p>";
echo "<p>給您帶來不便與困擾, 我們著實深感抱歉.</p>";
if ($bbuserinfo['usergroupid']==6) {
echo "<form><textarea rows="12" cols="60">".htmlspecialchars($message)."</textarea></form>";
}
echo "</blockquote></body></head></html>";
exit;
}
$servername='aratsuki.no-ip.com' 請改成 localhostAratsuki 寫:作業平台:Win XP pro
快速架站:FOXserv
連線:CABLE
我已確定MySQL已開啟
當我架設好FF Battlefield 後進入http://XXX.YYY.com/forum2/wog/
出現以下:
資料庫發生錯誤於 vBulletin : Link-ID == false, connect failed mysql 錯誤: Access denied for user: 'User@218.253.93.160' (Using password: YES) mysql 錯誤號碼: 1045 日期: Wednesday 09th of July 2003 07:17:32 PM 腳本: /forum2/wog/ 來自:
我的config/config.php設定是這樣的:究竟我應該怎樣改才好呢?代碼: 選擇全部
<?php ///////////////////////////////////////////////////////////// // Please note that if you get any errors when connecting, // // that you will need to email your host as we cannot tell // // you what your specific values are supposed to be // ///////////////////////////////////////////////////////////// // type of database running // (only mysql is supported at the moment) $dbservertype='mysql'; // hostname or ip of server $servername='aratsuki.no-ip.com'; //<--你使用的db的ip或網址 // username and password to log onto db server $dbusername='User'; //<--連結db的帳號 $dbpassword='****'; //<--連結db的密碼\r // name of database $dbname='mysql2'; //<--你使用的db名稱\r // technical email address - any error messages will be emailed here $technicalemail='newko_ha@hotmail.com'; //<--當有error訊息時所要寄發的email位子 // use persistant connections to the database // 0 = don't use // 1 = use $usepconnect=0; ?>
煩請各位成功安裝的大家幫幫忙
咿 !! 我安裝好的WOG,裡面的 "個人金融" 就是跟我論壇的銀行相通的呀 f@@"掛勾@@?
直接讓貨幣相通可能需要改WOG裡所有的P_MONEY成user_money或是user_points 但是這樣方便嗎......
直接用WOG個人金融的存款再到PHPBB的銀行提款 這樣是挺方便的做法~