phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)
版主: 版主管理群
-
yehrussell
- 竹貓忠實會員

- 文章: 557
- 註冊時間: 2006-01-03 07:48
文章
由 yehrussell »
[外掛]請教TOP5太寬,想放頁上
●架設主機作業系統:Windows Xp
●免費空間連結:
http://host.aczc.com/
●您的上網方式:ADSL
●您安裝的程式:FlashFXP v3.0 Build 1015 Final
●您的 phpBB2 版本:phpBB 2.0.10版。
●您的 phpBB2 連結網址:
http://herbadoctor.aczc.com/phpBB/index.php
●錯誤:我已經爬文和上傳兩天,剛接觸phpBB,想在此請教高手們,TOP5我想把它移到上面,由於語法也弄不好,再者TOP5欄位太寬,想和其他欄一樣大小,麻煩朋友賜教!謝謝!
附上語法和圖片。
風格:aqua
adv_top5_mod_2.1.zip 版本\r
index_body.tpl
<div align="center">
<div style="width:90%">
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"><img src="templates/aqua/images/loingl.gif"><a name="login"></a></td>
<td align="center" background="templates/aqua/images/loingm.gif"><span class="cattitle">{L_LOGIN_LOGOUT}</span><br>
<span class="gensmall">{L_USERNAME}: <input class="post" type="text" name="username" size="10" />
{L_PASSWORD}: <input class="post" type="password" name="password" size="10" maxlength="32" />
{L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span></td>
<td width="20" align="right"><img src="templates/aqua/images/loingr.gif"></td>
</tr>
</table>
</form></div>
<!-- END switch_user_logged_out -->
</div>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20%">
<span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span>
</td>
<td width="80%" align="right">
<img src="templates/aqua/images/aqua_button01.gif" align="absmiddle">
<span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a>
<a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a>
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a>
<a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a>
</span>
</td>
</tr>
</table>
<table width="90%" align="center" cellpadding="1" cellspacing="1" border="0" class="forumline">
<!-- BEGIN catrow -->
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="22" height="22" align="left"><img src="templates/aqua/images/aquatbl.gif" width="22" height="22"></td>
<td height="22" align="center" background="templates/aqua/images/aquatbm.gif"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td width="79" height="22" align="right"><img src="templates/aqua/images/aquatbr.gif" width="79" height="22"></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="0" class="forumline">
<tr>
<th height="22" colspan="2" align="left" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" height="22" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" height="22" nowrap="nowrap"> {L_POSTS} </th>
<th width="130" height="22" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row2" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row2" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span><span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td width="130" height="50" align="center" valign="middle" nowrap="nowrap" class="row2"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20" height="22"><img src="templates/aqua/images/aquatbdl.gif" width="20" height="22"></td>
<td background="templates/aqua/images/aquatbdm.gif"><img src="templates/aqua/images/aquatbdm.gif" width="1" height="22"></td>
<td width="20" height="22"><img src="templates/aqua/images/aquatbdr.gif" width="20" height="22"></td>
</tr>
</table>
<br />
<!-- END catrow -->
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10"><img src="templates/aqua/images/aquawul.gif"></td>
<td background="templates/aqua/images/aquawum.gif"></td>
<td width="10"><img src="templates/aqua/images/aquawur.gif"></td>
</tr>
<tr>
<td width="10" background="templates/aqua/images/aquawml.gif"></td>
<td background="templates/aqua/images/aquawmm.gif"><p><a href="{U_VIEWONLINE}"><img src="templates/aqua/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" border="0" /></a></p>
<blockquote>
<p>
<span class="gensmall">{S_TIMEZONE}</span><br />
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">{LAST_VISIT_DATE}</span><br />
<!-- END switch_user_logged_in -->
<span class="gensmall">{CURRENT_TIME}</span><br />
<span class="gensmall">{TOTAL_POSTS}<br />
{TOTAL_USERS}<br />
{NEWEST_USER}<br />
{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}<br />
{L_ONLINE_EXPLAIN}</span>
</p>
</blockquote></td>
<td width="10" background="templates/aqua/images/aquawmr.gif"></td>
</tr>
<tr>
<td width="10"><img src="templates/aqua/images/aquawdl.gif"></td>
<td background="templates/aqua/images/aquawdm.gif"></td>
<td width="10"><img src="templates/aqua/images/aquawdr.gif"></td>
</tr>
</table>
<br clear="all" />
<table border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td align="center"><img src="templates/aqua/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
<td align="center"><img src="templates/aqua/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td align="center"><img src="templates/aqua/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}"/></td>
</tr>
<tr>
<td align="center"><span class="gensmall">{L_NEW_POSTS}</span></td>
<td align="center"><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td align="center"><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
<iframe marginwidth=0 marginheight=0 src='adv_top5.php' frameborder=0 width='100%' scrolling=no height=250>
</iframe>
-
Kill
- 竹貓忠實會員

- 文章: 874
- 註冊時間: 2003-07-31 12:40
- 來自: CKD Studio
-
聯繫:
文章
由 Kill »
你用的top5是哪一版的呢 ?
要改的應該是index_body.tpl才對喔
喜歡...就是淡淡ㄉ愛... 愛...則是深深ㄉ喜歡...

提供
phpBB代架服務以及
外掛安裝
有付費服務的問題請移駕至
CKD Studio發問 ╮( ̄▽ ̄)╭
-
Kill
- 竹貓忠實會員

- 文章: 874
- 註冊時間: 2003-07-31 12:40
- 來自: CKD Studio
-
聯繫:
文章
由 Kill »
喜歡...就是淡淡ㄉ愛... 愛...則是深深ㄉ喜歡...

提供
phpBB代架服務以及
外掛安裝
有付費服務的問題請移駕至
CKD Studio發問 ╮( ̄▽ ̄)╭
-
心靈捕手
- 默默耕耘的老師

- 文章: 8547
- 註冊時間: 2004-04-30 01:54
- 來自: Taiwan
文章
由 心靈捕手 »
To yehrussell:
我猜想:
即使您安裝 Kill 大大推荐的外掛後,
還是會遇到" 欄位太寬" 的問題.
因為您所使用的風格, 預設寬度只有"90%"
所以您加裝外掛所新增的表格, 也必須自行調整寬度為"90%".
-
yehrussell
- 竹貓忠實會員

- 文章: 557
- 註冊時間: 2006-01-03 07:48
文章
由 yehrussell »
心靈捕手 寫:To yehrussell:
我猜想:
即使您安裝 Kill 大大推荐的外掛後,
還是會遇到" 欄位太寬" 的問題.
因為您所使用的風格, 預設寬度只有"90%"
所以您加裝外掛所新增的表格, 也必須自行調整寬度為"90%".
首先謝謝心靈版大...
請教心靈版大,我該如何改?因為剛接觸phpbb,
另外我也有改要TOP5把它放上面,常是好多次都失敗。
謝謝您唷!
-
心靈捕手
- 默默耕耘的老師

- 文章: 8547
- 註冊時間: 2004-04-30 01:54
- 來自: Taiwan
文章
由 心靈捕手 »
yehrussell 寫:心靈捕手 寫:To yehrussell:
我猜想:
即使您安裝 Kill 大大推荐的外掛後,
還是會遇到" 欄位太寬" 的問題.
因為您所使用的風格, 預設寬度只有"90%"
所以您加裝外掛所新增的表格, 也必須自行調整寬度為"90%".
首先心靈版大...
請教心靈版大,我該如何改?因為剛接觸phpbb,
另外我也有改要TOP5把它放上面,常是好多次都失敗。
謝謝您唷!
剛剛拜訪您的論壇, 發現您還是保留
adv_top5_mod 2.1
此外掛加在首頁( index_body.tpl) 的程式碼如下:
代碼: 選擇全部
<iframe marginwidth=0 marginheight=0 src='adv_top5.php' frameborder=0 width='100%' scrolling=no height=250>
</iframe>
目前, 您是放在首頁最底端;
如果, 要放置首頁其他位置( 如: 最頂端) 的話,
那麼, 您只要移動該段程式碼到其他位置( 如: 最頂端).
至於, 調整欄位寬度,
您只要將該段代碼中的
取代成
即可.
-
yehrussell
- 竹貓忠實會員

- 文章: 557
- 註冊時間: 2006-01-03 07:48
文章
由 yehrussell »
TO:心靈版大 謝謝您\r
因為我用[外掛] Integrated Toplist 1.0.3這版本灌進去,不行
好像裡面的風格是用subSilver語法,我的是aqua風格\r
所以我用adv_top5_mod 2.1 版本\r
我很想改Integrated Toplist 1.0.3版本,不知該如何?
我論壇鋼改,可是TOP5往左靠耶,不知道該如何改??謝謝
語法如下:
<iframe marginwidth=0 marginheight=0 src='adv_top5.php' frameborder=0 width='90%' scrolling=no height=250>
</iframe>
<div align="center">
<div style="width:90%">
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"><img src="templates/aqua/images/loingl.gif"><a name="login"></a></td>
<td align="center" background="templates/aqua/images/loingm.gif"><span class="cattitle">{L_LOGIN_LOGOUT}</span><br>
<span class="gensmall">{L_USERNAME}: <input class="post" type="text" name="username" size="10" />
{L_PASSWORD}: <input class="post" type="password" name="password" size="10" maxlength="32" />
{L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span></td>
<td width="20" align="right"><img src="templates/aqua/images/loingr.gif"></td>
</tr>
</table>
</form></div>
<!-- END switch_user_logged_out -->
</div>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20%">
<span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span>
</td>
<td width="80%" align="right">
<img src="templates/aqua/images/aqua_button01.gif" align="absmiddle">
<span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a>
<a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a>
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a>
<a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a>
</span>
</td>
</tr>
</table>
<table width="90%" align="center" cellpadding="1" cellspacing="1" border="0" class="forumline">
<!-- BEGIN catrow -->
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center">
<td width="22" height="22" align="left"><img src="templates/aqua/images/aquatbl.gif" width="22" height="22"></td>
<td height="22" align="center" background="templates/aqua/images/aquatbm.gif"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td width="79" height="22" align="right"><img src="templates/aqua/images/aquatbr.gif" width="79" height="22"></td>
</tr>
</table>
<table width="90%" border="0" align="center" cellpadding="2" cellspacing="0" class="forumline">
<tr>
<th height="22" colspan="2" align="left" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" height="22" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" height="22" nowrap="nowrap"> {L_POSTS} </th>
<th width="130" height="22" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row2" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row2" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span><span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td width="130" height="50" align="center" valign="middle" nowrap="nowrap" class="row2"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</table>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="20" height="22"><img src="templates/aqua/images/aquatbdl.gif" width="20" height="22"></td>
<td background="templates/aqua/images/aquatbdm.gif"><img src="templates/aqua/images/aquatbdm.gif" width="1" height="22"></td>
<td width="20" height="22"><img src="templates/aqua/images/aquatbdr.gif" width="20" height="22"></td>
</tr>
</table>
<br />
<!-- END catrow -->
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10"><img src="templates/aqua/images/aquawul.gif"></td>
<td background="templates/aqua/images/aquawum.gif"></td>
<td width="10"><img src="templates/aqua/images/aquawur.gif"></td>
</tr>
<tr>
<td width="10" background="templates/aqua/images/aquawml.gif"></td>
<td background="templates/aqua/images/aquawmm.gif"><p><a href="{U_VIEWONLINE}"><img src="templates/aqua/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" border="0" /></a></p>
<blockquote>
<p>
<span class="gensmall">{S_TIMEZONE}</span><br />
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">{LAST_VISIT_DATE}</span><br />
<!-- END switch_user_logged_in -->
<span class="gensmall">{CURRENT_TIME}</span><br />
<span class="gensmall">{TOTAL_POSTS}<br />
{TOTAL_USERS}<br />
{NEWEST_USER}<br />
{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}<br />
{L_ONLINE_EXPLAIN}</span>
</p>
</blockquote></td>
<td width="10" background="templates/aqua/images/aquawmr.gif"></td>
</tr>
<tr>
<td width="10"><img src="templates/aqua/images/aquawdl.gif"></td>
<td background="templates/aqua/images/aquawdm.gif"></td>
<td width="10"><img src="templates/aqua/images/aquawdr.gif"></td>
</tr>
</table>
<br clear="all" />
<table border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td align="center"><img src="templates/aqua/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
<td align="center"><img src="templates/aqua/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td align="center"><img src="templates/aqua/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}"/></td>
</tr>
<tr>
<td align="center"><span class="gensmall">{L_NEW_POSTS}</span></td>
<td align="center"><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td align="center"><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
-
心靈捕手
- 默默耕耘的老師

- 文章: 8547
- 註冊時間: 2004-04-30 01:54
- 來自: Taiwan
文章
由 心靈捕手 »
將該段代碼加入\r
如下:
代碼: 選擇全部
<iframe marginwidth=0 marginheight=0 src='adv_top5.php' frameborder=0 width='90%' scrolling=no height=250 align='center'>
</iframe>
若要安裝 Integrated Toplist 1.0.3
則只要修改下列兩個檔案即可:
index.php
templates/aqua/index_body.tpl
-
yehrussell
- 竹貓忠實會員

- 文章: 557
- 註冊時間: 2006-01-03 07:48
文章
由 yehrussell »
感謝心靈版大

舊版的top5弄好囉 太感動拉 我弄兩三天\r
我再修看看
改用Integrated Toplist 1.0.3版
我的templates/aqua/index_body.tpl如下:
(原文恕刪!)
裡面沒有 下面那段
#-----[ FIND ]------------------------------------------
#
<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table
>
-
心靈捕手
- 默默耕耘的老師

- 文章: 8547
- 註冊時間: 2004-04-30 01:54
- 來自: Taiwan
文章
由 心靈捕手 »
yehrussell 寫:感謝心靈版大

舊版的top5弄好囉 太感動拉 我弄兩三天\r
我再修看看
改用Integrated Toplist 1.0.3版
我的templates/aqua/index_body.tpl如下:
(原文恕刪!)
您的 index_body.tpl 前面不是已經貼出了?
您一樣是可以將要加入的代碼, 置於首頁的任何位置;
而外掛安裝說明所要尋找的位置, 在您的風格檔如下:
代碼: 選擇全部
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="10"><img src="templates/aqua/images/aquawul.gif"></td>
<td background="templates/aqua/images/aquawum.gif"></td>
<td width="10"><img src="templates/aqua/images/aquawur.gif"></td>
</tr>
<tr>
<td width="10" background="templates/aqua/images/aquawml.gif"></td>
<td background="templates/aqua/images/aquawmm.gif"><p><a href="{U_VIEWONLINE}"><img src="templates/aqua/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" border="0" /></a></p>
<blockquote>
<p>
<span class="gensmall">{S_TIMEZONE}</span><br />
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">{LAST_VISIT_DATE}</span><br />
<!-- END switch_user_logged_in -->
<span class="gensmall">{CURRENT_TIME}</span><br />
<span class="gensmall">{TOTAL_POSTS}<br />
{TOTAL_USERS}<br />
{NEWEST_USER}<br />
{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}<br />
{L_ONLINE_EXPLAIN}</span>
</p>
</blockquote></td>
<td width="10" background="templates/aqua/images/aquawmr.gif"></td>
</tr>
<tr>
<td width="10"><img src="templates/aqua/images/aquawdl.gif"></td>
<td background="templates/aqua/images/aquawdm.gif"></td>
<td width="10"><img src="templates/aqua/images/aquawdr.gif"></td>
</tr>
</table>
-
yehrussell
- 竹貓忠實會員

- 文章: 557
- 註冊時間: 2006-01-03 07:48
文章
由 yehrussell »
謝謝心靈版大\r
昨天就一直測試,都錯誤
原本的舊版top5,不知還要不要移除\r
上面不好意思 我重複貼語法

-
心靈捕手
- 默默耕耘的老師

- 文章: 8547
- 註冊時間: 2004-04-30 01:54
- 來自: Taiwan
文章
由 心靈捕手 »
yehrussell 寫:謝謝心靈版大\r
昨天就一直測試,都錯誤
原本的舊版top5,不知還要不要移除\r
上面不好意思 我重複貼語法

我猜想:
您所謂的" 一直測試,都錯誤"
指的應該是
Integrated Toplist 1.0.3 外掛,
但是您並沒有說明出現哪些錯誤, 實在是愛莫能助.
這個外掛的精神, 源自
adv_top5_mod, 而擷取其中的一個模式( last).
--
如果說您要移除 adv_top5_mod,
那麼只要將加入首頁的代碼移除即可.
--
建議您:
這兩個外掛, 選擇其中一個使用即可.
-
yehrussell
- 竹貓忠實會員

- 文章: 557
- 註冊時間: 2006-01-03 07:48
文章
由 yehrussell »
謝謝心靈版大\r
請教您,有沒有Integrated Toplist 1.0.3這版本,做好的範例? 麻煩您!
嗯 接觸PHP不久,一些路徑都搞混,所以我還要多試幾次...
謝謝您唷
