9.显示12小时内的新主题
list.asp
Response.Write SQL(17,ti) 之后,Response.Write "'));" 之前添加
Response.Write "','"
if datediff("h",SQL(5,ti),now)<=12 then
Response.Write "1"
else
Response.Write "0"
end if
分页面模板,(main_style),界面风格,template.html(6)
<a href="dispbbs.asp?boardID={$boardid}&ID={$topicid}&page={$page}" title="《{$atitle}》 作者:{$username} 发表于:{$dateandtime} 最后发贴:{$body}...">{$title}
后面添加:
{$newarticle}
分页面模板,(main_style),界面风格,template.html(11)
找到:
function dvbbs_topic_list(str,TopicID,boardid,title,postusername,lastpost,Expression,postuserid,dateandtime,child,hits,votetotal,lastposttime,istop,isvote,isbest,locktopic,TopicMode,Mode){
修改为:
function dvbbs_topic_list(str,TopicID,boardid,title,postusername,lastpost,Expression,postuserid,dateandtime,child,hits,votetotal,lastposttime,istop,isvote,isbest,locktopic,TopicMode,Mode,newa){
在
lastpost=lastpost.split("$");
var JsTempStr_topicinfo=TempStr_topicinfo.split("||");
var JsTempStr_Page=TempStr_Page.split("||");
var JsTempStr_load=TempStr_load.split("||");
var BoardTopic=BoardTopicMode.split(" | ");
var TMode
后面添加:
if (newa==1){
str = str.replace(/{\$newarticle}/gi,"<img src=plus/pic/new.gif border=0 alt=12小时内发布新主题标志 >");
}else{str = str.replace(/{\$newarticle}/gi,"");}
文件支持:plus/pic/new.gif