这是我的论坛的一段代码,我一直研究没有搞懂, 他是默认不显示在线用户人数,只有当点击了打开详细列表后就显示出当前在线用户的详细列表,而且在进入分论坛后也照样显示在线用户的详细列表, 请问我如何修改这段代码来实现默认显示在线人数的详细列表,就是把这个记录用户是否点击过打开详细列表这个默认改成点击过了,这样只要改这段代码,直接进入论坛首页和分论坛都显示在线用户的详细列表,请问要如何修改,还望版主能教教我, 非常感谢, 万分期待:
<%
regonline=conn.execute("Select count(*)from online where username<>''")(0)
openlinelist="打开详细列表"
if Request.Cookies("openlinelist")="1" then
sql="select * from online where username<>'' and eremite<>'1'"
rs.Open sql,Conn,1
do while not rs.eof
if NO_count < 6 then
NO_count=NO_count+1
else
NO_count=1
end if
allline=""&allline&"
onclick=java script:open('friend.asp?menu=post&incept="&rs("username")&"','','width=320,height=170
')> href=profile.asp?username="&rs("username")&" TITLE='目前位置:『"&rs("bbsname")&"』"&vbCrlf&"来访
时间:"&rs("cometime")&""&vbCrlf&"活动时间:"&rs("lasttime")&""&vbCrlf&"操作系统:"&rs("userwin")
&""&vbCrlf&"浏 览 器:"&rs("userie")&"'>"&rs("username")&" | "
if NO_count = 6 then
allline=""&allline&"