[問題] 請教精華區外掛
發表於 : 2004-12-31 03:14
問題外掛:MM簡易精華區 1.0.0
參考連結: http://phpbb-tw.net/phpbb/viewtopic.php?t=30975
使用版本:phpBB 2.0.11
網站位置:localhost
說明文件有幾個地方看不懂:
第一:一開始的地方看不懂要怎麼做
第二:
上面兩個地方我找不到呢,不知道要加在何處?
我的viewforum_body.tpl CODE
感謝大家的幫忙!!叩首!!再拜!!
參考連結: http://phpbb-tw.net/phpbb/viewtopic.php?t=30975
使用版本:phpBB 2.0.11
網站位置:localhost
說明文件有幾個地方看不懂:
第一:一開始的地方看不懂要怎麼做
代碼: 選擇全部
執行SQL
ALTER TABLE `phpbb_topics` ADD `topic_elite` TINYINT( 1 ) NOT NULL ;
代碼: 選擇全部
打開 templates/your_template/viewforum_body.tpl
找到\r
<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a>
後面加上
<span class="gensmall"><a href="{U_VIEW_FORUM_ELITE}">[{L_ELITE}]</a></span>
找到\r
<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a>
後面加上
{topicrow.TOPIC_ELITED}
我的viewforum_body.tpl CODE
代碼: 選擇全部
<table border="0" cellpadding="0" cellspacing="0" class="tbn">
<tr>
<td class="tbnl" rowspan="3"><img src="images/spacer.gif" alt="" width="76" height="39" /></td>
<td height="17"></td>
<td height="17"></td>
</tr>
<td class="tbnbot"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span> » <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
<td class="tbnr"><img src="images/spacer.gif" alt="" width="39" height="22" /></td>
</tr>
</table>
<br />
<!-- mod : split topic type -->
<form method="post" action="{S_POST_DAYS_ACTION}">
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br />{LOGGED_IN_USER_LIST}</b></span></td>
<td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
</tr>
<tr>
<td align="left" valign="middle" width="100%"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
<td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>
</tr>
</table>
{TOPICS_LIST_BOX}
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
<tr>
<td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
<td align="left" valign="middle" width="100%"><span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a> » <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
<td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span>
</td>
</tr>
<tr>
<td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
</tr>
</table>
</form>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td align="right">{JUMPBOX}</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbt"><tr><td class="tbtl"><img src="images/spacer.gif" alt="" width="22" height="22" /></td><td class="tbtbot"><img src="images/spacer.gif" alt="" width="8" height="22" align="absmiddle" /></td><td class="tbtr"><img src="images/spacer.gif" alt="" width="124" height="22" /></td></tr></table>
<table width="100%" cellspacing="1" border="0" align="center" cellpadding="0" class="forumline">
<tr>
<td align="left" valign="top" width="100%" class="row1">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="row1" width="20" align="left"><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
<td class="row1">{L_NEW_POSTS}</td>
<td class="row1"> </td>
<td class="row1" width="20" align="center"><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
<td class="row1">{L_NO_NEW_POSTS}</td>
<td class="row1"> </td>
<td class="row1" width="20" align="center"><img src="{FOLDER_ANNOUNCE_IMG}" alt="{L_ANNOUNCEMENT}" /></td>
<td class="row1">{L_ANNOUNCEMENT}</td>
</tr>
<tr>
<td class="row1" width="20" align="center"><img src="{FOLDER_HOT_NEW_IMG}" alt="{L_NEW_POSTS_HOT}" /></td>
<td class="row1">{L_NEW_POSTS_HOT}</td>
<td class="row1"> </td>
<td class="row1" width="20" align="center"><img src="{FOLDER_HOT_IMG}" alt="{L_NO_NEW_POSTS_HOT}" /></td>
<td class="row1">{L_NO_NEW_POSTS_HOT}</td>
<td class="row1"> </td>
<td class="row1" width="20" align="center"><img src="{FOLDER_STICKY_IMG}" alt="{L_STICKY}" /></td>
<td class="row1">{L_STICKY}</td>
</tr>
<tr>
<td class="row1"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_LOCKED}" /></td>
<td class="row1">{L_NEW_POSTS_LOCKED}</td>
<td class="row1"> </td>
<td class="row1"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_LOCKED}" /></td>
<td class="row1">{L_NO_NEW_POSTS_LOCKED}</td>
<td class="row1"> </td>
<td class="row1"> </td>
<td class="row1"> </td>
</tr>
</table>
</td>
<td class="row1" align="right" valign="top" width="250" nowrap="nowrap"><span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>