1 頁 (共 1 頁)

[問題]請問如何新增這東西^^"

文章發表於 : 2004-02-09 5:35 pm
aa1111
如何跟水色一樣,討論區上方顯示現在的冠軍??
謝謝

文章發表於 : 2004-02-10 8:56 am
allenlue
去 Select wog_cp Table 吧!!
裡面是存放冠軍的資料!~

文章發表於 : 2004-02-10 4:14 pm
aa1111
怎用^^"~可以直接說做法嗎^^"~我算是個新手說^^"~抱歉^^"

文章發表於 : 2004-03-13 4:43 pm
aa1111
我用這個方式:
打開index.php
找到
代碼: 選擇全部
//
// Start page proper
//

在上面加入
代碼: 選擇全部
//get wog cp start
$sql ="SELECT p_name,p_lv,p_win_total,i_img FROM wog_cp LIMIT 1 ";
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, 'Could not query wog', '', __LINE__, __FILE__, $sql);
}
$getwog = $db->sql_fetchrow($result);
$wog_cp_name=$getwog[p_name];
$wog_cp_lv=$getwog[p_lv];
$wog_cp_win=$getwog[p_win_total];
$wog_cp_img=$getwog[i_img];
unset($getwog);
//get wog cp end

然後打開index_body.tpl
在自己喜歡的位置加上
代碼: 選擇全部
  <strong><font size="2">英雄檔案</font></strong></font> </div>
                      <p align="center"><font size="2"><strong>{WOG_CP_NAME}</strong></font>
                      <p align="center"><img src="http://arisa521.dslcity.net:88/phpbb/wog/img/{WOG_CP_IMG}.gif"><br>
                        <font size="2"><strong><br>
                        LV:{WOG_CP_LV}<br>
                        {WOG_CP_WIN} 連勝中</strong></font> <br />


但是卻沒有出現圖案還有冠軍的名子,請問我哪裡做錯了呢??