第 1 頁 (共 1 頁)
[問題]請問有外掛可以顯示文章發表日期
發表於 : 2004-10-30 18:13
由 ms821
請問有否外掛, 可以令主題的初次發佈日期,
顯示在主題列表頁 (viewforum.php) 嗎?
就如圖中圈圈所示一樣:
我搜尋過也不見類似的外掛...
發表於 : 2004-10-31 03:26
由 依夢兒
開啟 viewforum_body.tpl ,搜尋:
代碼: 選擇全部
<th width="100" align="center" class="thTop" nowrap="nowrap">
將 100 修改為 150 。
搜尋:
代碼: 選擇全部
<span class="name">{topicrow.TOPIC_AUTHOR}</span>
覆蓋為:
代碼: 選擇全部
<span class="postdetails">{topicrow.FIRST_POST_TIME}<br />{topicrow.TOPIC_AUTHOR}</span>
存檔,完工。
發表於 : 2004-11-01 09:23
由 ms821
謝謝依大指導^^
不過修改後,發覺連同時間一起顯示,
\r
有點多餘的感覺...
有方法改成只顯示日期 Y-M-D
不顯示時間 XX:YY 嗎?
發表於 : 2004-11-01 11:55
由 心靈捕手
ms821 寫:謝謝依大指導^^
不過修改後,發覺連同時間一起顯示,
有點多餘的感覺...
有方法改成只顯示日期 Y-M-D
不顯示時間 XX:YY 嗎?
建議您:
可以在
控制台-一般管理-基本組態-時間格式,
設定如下, 試試看!
Y-m-d
發表於 : 2004-11-01 12:20
由 ms821
捕手兄,
這樣會同時改變了"最後回覆"的顯示方式...
不太好...
發表於 : 2004-11-01 16:51
由 心靈捕手
ms821 寫:捕手兄,
這樣會同時改變了"最後回覆"的顯示方式...
不太好...
如果是這樣的話, 您可以做以下的修改, 試試看:
代碼: 選擇全部
-----[OPEN]----------
viewforum.php
-----[FIND]----------
$first_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['topic_time'], $board_config['board_timezone']);
-----[REPLACE]----------
$first_post_time = create_date($lang['DATE_FORMAT'], $topic_rowset[$i]['topic_time'], $board_config['board_timezone']);
發表於 : 2005-08-20 05:55
由 qqwatson
請問我的viewforum_body.tpl是這樣的,可以怎樣修改來增加發佈日期項目。
<div class="forumline nav-div">
<p class="nav-header">
<a href="{U_INDEX}">{L_INDEX}</a> » <a href="{U_VIEW_FORUM}" class="nav-current">{FORUM_NAME}</a>
</p>
<div class="nav-links">
<div class="nav-links-left">
{CURRENT_TIME}
</div>
<!-- BEGIN switch_user_logged_in -->
<a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<!-- END switch_user_logged_out -->
</div>
</div>
<table width="100%" cellspacing="0" class="empty-table">
<tr>
<td align="left" valign="bottom" width="70%"><span class="gensmall">{L_MODERATOR}: {MODERATORS}<br />{LOGGED_IN_USER_LIST}</span></td>
<td align="right" valign="bottom" rowspan="2"><span class="gen">
{PAGE_NUMBER}<br />
<span class="pagination">{PAGINATION}</span>
</span></td>
</tr>
<tr>
<td align="left" valign="middle"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" /></a></td>
</tr>
</table>
<form method="post" action="{S_POST_DAYS_ACTION}" style="display: inline;">
<table cellspacing="0" width="100%" class="forumline">
<tr>
<td colspan="6" class="row-header"><span><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
</tr>
<tr>
<th colspan="2">{L_TOPICS}</th>
<th width="50">{L_REPLIES}</th>
<th width="150">{L_AUTHOR}</th>
<th width="50">{L_VIEWS}</th>
<th>{L_LASTPOST}</th>
</tr>
<!-- BEGIN topicrow -->
<tr>
<td class="row3 row-center" width="18"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="15" height="15" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1h{topicrow.XS_NEW} row-forum" width="100%" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'">
<span class="topiclink{topicrow.XS_NEW}">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}">{topicrow.TOPIC_TITLE}</a></span>
<span class="gotopage">{topicrow.GOTO_PAGE}</span>
</td>
<td class="row2 row-center-small">{topicrow.REPLIES}</td>
<td class="row3 row-center-small">{topicrow.TOPIC_AUTHOR}</td>
<td class="row2 row-center-small">{topicrow.VIEWS}</td>
<td class="row3 row-center-small" style="padding-top: 0;" nowrap="nowrap">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</td>
</tr>
<!-- END topicrow -->
<!-- BEGIN switch_no_topics -->
<tr>
<td class="row1 row-center" colspan="6" height="30"><span class="gen">{L_NO_TOPICS}</span></td>
</tr>
<!-- END switch_no_topics -->
<tr>
<td class="catBottom" align="right" valign="middle" colspan="6"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="middle" nowrap="nowrap"><span class="genmed"> {L_DISPLAY_TOPICS}:</span></td>
<td valign="middle" nowrap="nowrap"> {S_SELECT_TOPIC_DAYS} <input type="submit" class="liteoption jumpbox" value="{L_GO}" name="submit" /></td>
<td valign="middle" align="right" width="100%"><span class="genmed">{S_TIMEZONE} </span></td>
</tr></table></td>
</tr>
</table>
</form>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" nowrap="nowrap">
<a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" /></a><br />
<table cellspacing="2" cellpadding="0" border="0" class="forumline">
<tr>
<td width="20" align="center"><img src="{FOLDER_NEW_IMG}" alt="{L_NEW_POSTS}" width="15" height="15" /></td>
<td class="gensmall">{L_NEW_POSTS}</td>
<td> </td>
<td width="20" align="center"><img src="{FOLDER_IMG}" alt="{L_NO_NEW_POSTS}" width="15" height="15" /></td>
<td class="gensmall">{L_NO_NEW_POSTS}</td>
<td> </td>
</tr>
<tr>
<td class="gensmall" align="center"><img src="{FOLDER_LOCKED_NEW_IMG}" alt="{L_NEW_POSTS_TOPIC_LOCKED}" width="15" height="15" /></td>
<td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
<td> </td>
<td class="gensmall" align="center"><img src="{FOLDER_LOCKED_IMG}" alt="{L_NO_NEW_POSTS_TOPIC_LOCKED}" width="15" height="15" /></td>
<td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
<td> </td>
</tr>
</table>
{JUMPBOX}<br />
</td>
<td align="right" valign="top" nowrap="nowrap">
<span class="pagination">{PAGINATION}</span><br />
<span class="gensmall">{S_AUTH_LIST}</span><br />
</td>
</tr>
</table>
發表於 : 2005-08-20 07:07
由 心靈捕手
To qqwatson:
搜尋關鍵字"{topicrow.TOPIC_AUTHOR}".
以下的修改, 提供您參考:
代碼: 選擇全部
#
#-----[ Find ]-----
#
<td class="row3 row-center-small">{topicrow.TOPIC_AUTHOR}</td>
#
#-----[ Replace With ]-----
#
<td class="row3 row-center-small">{topicrow.FIRST_POST_TIME}<br />{topicrow.TOPIC_AUTHOR}</td>
發表於 : 2005-08-27 22:40
由 qqwatson
我想修改一個自定時間格式為\r
如︰\r
01 AUG 2005 , SUN 10:00 PM
我在基本組態裡的時間格式改為d M y ,D g:i A 後都沒有反應,是否要修改一些php檔才會顯示﹖
發表於 : 2005-08-27 23:28
由 心靈捕手
qqwatson 寫:我想修改一個自定時間格式為\r
如︰\r
01 AUG 2005 , SUN 10:00 PM
我在基本組態裡的時間格式改為d M y ,D g:i A 後都沒有反應,是否要修改一些php檔才會顯示﹖
" 基本組態" 的時間格式設定, 是作為系統預設使用;
您還必須要到"
個人資料" 裡頭設定時間格式, 才行!