1:删除以下蓝色语句,共三处:
a:
<%
if lmt_simplehomepage = 1 then
if getbinarybit(gbl_templetflag,1) = 1 then
server.execute("inc/templet/" & gbl_templetid & "_0.js")
else%>
b:
}<% end if
else
if getbinarybit(gbl_templetflag,2) = 1 then
server.execute("inc/templet/" & gbl_templetid & "_1.js")
else%>
c:
}<%end if
dim boardid,forumpass
2:添加横排版块模板:
搜索语句:
function displayboard(boardid,boardassort,boardname,assortname)
...............
...............
...............
if(num>4)num=0;
}
3:定义模板样式参数:
搜索语句:
response.write vbcrlf & "displayboard(" & boardid & "," & getdata(1,0) & ",""" & replace(replace(getdata(0,0),"\","\\"),"""","\""") & """,""" & replace(replace(getdata(14,0),"\","\\"),"""","\""") & """);"
替换为:
response.write vbcrlf & "displaysboard(" & boardid & "," & getdata(1,0) & ",""" & replace(replace(getdata(0,0),"\","\\"),"""","\""") & """,""" & replace(replace(replace(getdata(2,0),"\","\\"),"""","\"""),vbcrlf,"\n") & """,""" & replace(replace(getdata(3,0),"\","\\"),"""","\""") & """,""" & getdata(4,0) & """," & getdata(29,0) & "," & getdata(30,0) & ",""" & forumpass & """," & getdata(19,0) & ",""" & replace(replace(replace(getdata(20,0),"\","\\"),"""","\"""),"<","<") & """,""" & replace(replace(getdata(10,0),"\","\\"),"""","\""") & """," & getdata(9,0) & ",""" & replace(replace(getdata(14,0),"\","\\"),"""","\""") & """," & getdata(31,0) & "," & getdata(32,0) & ",""" & replace(replace(getdata(21,0),"\","\\"),"""","\""") & """,""" & getdata(22,0) & """,""" & getdata(23,0) & """,0,""" & getdata(27,0) & """,""" & replace(replace(replace(getdata(35,0),"\","\\"),"""","\"""),"<","<") & """);"
4:自定义横排显示的区版序号
搜索语句:if lmt_simplehomepage = 0 then
修改为:
if lmt_simplehomepage = 0 and getdata(1,0)<>7 and getdata(1,0)<>11 then
其中的“7”和“11”表示自定义区版序号,可任意定义,想横排显示哪个区就哪个区。需要显示更多只需要添加 and getdata(1,0)<>11这句在其中就可以了。例如:
if lmt_simplehomepage = 0 and getdata(1,0)<>7 and getdata(1,0)<>11 and getdata(1,0)<>15 and getdata(1,0)<>21 then