“功能跳转”中增加“最新回复”的方法
作者:cmscn 日期:2005-04-23
大家先看乔客的 http://www.joekoe.com/forum_action.asp?action=reply 页面,在“功能跳转”区是不是已经增加了“最新回复”菜单?
实现方法:
1、打开forum_action.asp,找到
case "user_join"
max_num=0
sql_add=" where id in (select reply_id from bbs_data where username='"&username&"')"
sql_order="id desc"
tit="("&username&")参与的主题"
h1=1
这一段,在下面直接添加
case "reply"
sql_order="re_tim desc,id desc"
tit="回复新帖"
往下找到 <td class=td width=70>回复/人气</td> 这一行,改为
<td class=td width=40>回复</td>
<td class=td width=30>浏览</td>
再往下,找到function forum_topic_type这一段,将
vbcrlf&"<td class=tims>"&t_re_counter&"/"&t_counter&"</td>" & _
改为
vbcrlf&"<td class=tims>"&t_re_counter&"</td>" & _
vbcrlf&"<td class=tims>"&t_counter&"</td>" & _
2、打开con_help.asp,找到
<td><%response.write img_skin("m_help2")%><a href='forum_action.asp?action=new'>论坛新贴</a></td>
<td width=10></td>
将下面的
<td><%response.write img_skin("m_help2")%><a href='forum_action.asp?action=hot'>论坛热贴</a></td>
</tr>
<tr>
<td><%response.write img_skin("m_help2")%><a href='forum_action.asp?action=good'>论坛精华</a></td>
<td width=10></td>
<td><%response.write img_skin("m_help2")%><a href='forum_action.asp?action=top'>论坛置顶</a></td>
</tr>
<tr>
<td><%response.write img_skin("m_help2")%><a href='online.asp'>与我在线</a></td>
<td width=10></td>
<td><%response.write img_skin("m_help2")%><a href='forum_search.asp'>论坛搜索</a></td>
改为
<td><%response.write img_skin("m_help2")%><a href='forum_action.asp?action=reply'>最新回复</a></td>
</tr>
<tr>
<td><%response.write img_skin("m_help2")%><a href='forum_action.asp?action=hot'>论坛热贴</a></td>
<td width=10></td>
<td><%response.write img_skin("m_help2")%><a href='forum_action.asp?action=good'>论坛精华</a></td>
</tr>
<tr>
<td><%response.write img_skin("m_help2")%><a href='forum_action.asp?action=top'>论坛置顶</a></td>
<td width=10></td>
<td><%response.write img_skin("m_help2")%><a href='forum_search.asp'>论坛搜索</a></td>
评论: 6 | 引用: 0 | 查看次数: 582
发表评论