第 1 頁 (共 1 頁)
[問題]viewtopic_body的個人資料
發表於 : 2005-03-18 22:17
由 Man520
依夢兒 寫:
沒有這麼麻煩啦!這只是 HTML 表格語法的進階應用而已。
最近逛 ShareGet 論壇,看到他們的附加檔案的表格使用了 <fieldset> 和 <legend> 語法來美化表格,覺得不錯,
所以我也就套用到文章內個人頭像下的個人資料和付費瀏覽(顯示必須付費才可以瀏覽)的表格上,效果不錯,有興趣的人可以試試。
<fieldset> 和 <legend> 語法介紹:
http://techart.tnua.edu.tw/~suchu/www/a ... l#Fieldset
個人頭像下的個人資料,我是這樣弄的。
開啟 viewtopc_body.tpl ,搜尋:
{postrow.POSTER_AVATAR}
後面加上:
<fieldset><legend>小檔案 </legend><table width="100%" cellpadding="0" cellspacing="0" border="0">
然後往後找,找到最後一個個人資料,也就是 {postrow.XXXX} ,這一個數值會因為您架設的外掛不同而異。
像是我最後一個是 {postrow.POSTER_ONLINE} ,找到了在後面加上:
</table></fieldset>
這樣應該就可以了。
出現...

發表於 : 2005-03-19 03:55
由 寒冰軒
這個現象就是\r
<fieldset><legend>小檔案 </legend><table width="100%" cellpadding="0" cellspacing="0" border="0">
和
</table></fieldset>
放錯位置了
有時風格也是有影響的
你可以自己試著放到別處看看
發表於 : 2005-03-19 17:44
由 Man520
寒冰軒 寫:這個現象就是\r
<fieldset><legend>小檔案 </legend><table width="100%" cellpadding="0" cellspacing="0" border="0">
和
</table></fieldset>
放錯位置了
有時風格也是有影響的
你可以自己試著放到別處看看
放錯位置?
viewtopic_bodyL
代碼: 選擇全部
<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 href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
<td class="tbnr"><img src="images/spacer.gif" alt="" width="39" height="22" /></td>
</tr>
</table>
<br />
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></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"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a> {PAGINATION}<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 class="forumline" width="100%" cellspacing="1" cellpadding="0" border="0">
<tr align="right">
<td class="cat" colspan="2" height="28"><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a> </span></td>
</tr>
{POLL_DISPLAY}
<tr>
<th class="thLeft" width="150" height="26" nowrap="nowrap">{L_AUTHOR}</th>
<th class="thRight" nowrap="nowrap">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><b><a name="{postrow.U_POST_ID}"></a>
<fieldset><legend>{postrow.POSTER_NAME}</b></legend></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM} </span><br /><!-- RPG Mod --> {postrow.POSTER_MONEY}<br />{postrow.POSTER_POINTS}<br />{postrow.RR_HACK}<br>
<!--<br />-->
<span class="postdetails">等級: <strong><font color=green>{postrow.RPG_LEVEL}</font>
<table width="143" border="0" cellpadding="0" cellspacing="0" style="background-image:url(templates/subSilver/images/level_mod/lm_bkg.gif)">
<tr>
<td><img src="images/spacer.gif" alt="" width="31" height="49" /></td>
<td width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="6" /></td>
</tr>
<tr>
<td><img src="templates/subSilver/images/level_mod/lm_hp_bar.gif" alt="{postrow.RPG_CUR_HP}/{postrow.RPG_MAX_HP}" title="{postrow.RPG_CUR_HP} / {postrow.RPG_MAX_HP}" width="{postrow.RPG_HP_RATIO}" height="9" /><img src="templates/subSilver/images/level_mod/lm_hp_bar_end.gif" alt="" width="4" height="9" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="4" /></td>
</tr>
<tr>
<td><img src="templates/subSilver/images/level_mod/lm_mp_bar.gif" alt="{postrow.RPG_CUR_MP}/{postrow.RPG_MAX_MP}" title="{postrow.RPG_CUR_MP} / {postrow.RPG_MAX_MP}" width="{postrow.RPG_MP_RATIO}" height="9" /><img src="templates/subSilver/images/level_mod/lm_mp_bar_end.gif" alt="" width="4" height="9" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="4" /></td>
</tr>
<tr>
<td><img src="templates/subSilver/images/level_mod/lm_exp_bar.gif" alt="{postrow.RPG_CUR_EXP}/{postrow.RPG_MAX_EXP}" title="{postrow.RPG_CUR_EXP} / {postrow.RPG_MAX_EXP}" width="{postrow.RPG_EXP_RATIO}" height="9" /><img src="templates/subSilver/images/level_mod/lm_exp_bar_end.gif" alt="" width="4" height="9" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="8" /></td>
</tr>
</table>
</td>
</tr>
</table>
</span>
<!-- [END RPG MOD] --> {postrow.POSTER_RPG}<br></td></span><br /></td>
</fieldset>
<p>
</div>
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<tr>
<td width="150" class="row1">{postrow.ICASH}</td>
<td width="100%" class="row1" nowrap="nowrap"></td>
</tr>
<td width="100%"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT}: {postrow.POST_SUBJECT}</span></td>
<td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
</tr>
<tr>
<td colspan="2"><hr /></td>
</tr>
<tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
</tr>
</table></td>
</tr>
<tr>
<td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">{L_BACK_TO_TOP}</a></span></td>
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="1" cellpadding="0" border="0" height="18" width="18">
<tr>
<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}</td>
</tr>
</table></td>
</tr>
<!-- END postrow -->
<tr align="center">
<td class="cat" colspan="2" height="28"><table cellspacing="1" cellpadding="0" border="0">
<tr><form method="post" action="{S_POST_DAYS_ACTION}">
<td align="center"><span class="gensmall">{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} <input type="submit" value="{L_GO}" class="liteoption" name="submit" /></span></td>
</form></tr>
</table></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>
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a> <a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
<td align="left" valign="middle" width="100%"><span class="nav"> <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
» <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
<td align="right" valign="top" 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>
<table width="100%" cellspacing="2" border="0" align="center">
<tr>
<td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
<br />
{S_TOPIC_ADMIN}</td>
<td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}</span></td>
</tr>
</table>
發表於 : 2005-03-20 03:14
由 寒冰軒
^^" 我和你的風格是不一樣的
我po我的檔案給你參考好了
<!-- BEGIN postrow -->
<tr>
<td width="150" valign="top" class="{postrow.ROW_CLASS}">
<span class="name"><a name="{postrow.U_POST_ID}"></a>
<b>{postrow.POSTER_NAME}</b></span>
<br />
{postrow.POSTER_RANK}
<br />
{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}
<br />
<fieldset><legend>會員小檔案 </legend><table width="100%" cellpadding="0" cellspacing="0" border="0">
<span class="postdetails">
{postrow.POSTER_FROM}
<br />
{postrow.POSTER_JOINED}
<br />
{postrow.POSTER_POSTS}
<br />
</table></fieldset>
只是我說你可能放錯位置\r
例
1.會員名稱:
2.來自:
3.文章
以上三樣要用語法包起來的話\r
<fieldset><legend>會員小檔案 </legend><table width="100%" cellpadding="0" cellspacing="0" border="0">
1.會員名稱:
2.來自:
3.文章
</table></fieldset>
這樣你看得懂嗎
發表於 : 2005-03-20 03:30
由 黑風凱特
我也是用iCGstation風格的~
PO上我的這段給你參考看看,希望對你有幫助
代碼: 選擇全部
<td width="175" align="left" valign="top" class="{postrow.ROW_CLASS}">
[color=red]<fieldset><legend>[/color]
<a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b>
[color=red] </legend><table width="100%" cellpadding="0" cellspacing="0" border="0">[/color]
<br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_GENDER}<br />{postrow.POSTER_AUTH_VALUE}<br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br />狀態: <span class="gensmall">{postrow.NICKNAME}</span><br /><br /> <img src=http://tssimon.mani.com.tw/images/orangedollor.gif> : {postrow.CASH}
[color=red]</table></fieldset>[/color]</span><br /></td>