2 User(s) are reading this topic
2 members, 0 guests, 0 anonymous users
webbo,Carefree
Look for the following lines (appx 739-745):
Response.Write "<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""95%"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td>" & vbNewLine & _
" <table width=""100%"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td align=""center"" valign=""top"" width=""50%"">" & vbNewLine
Call PostingOptions()
Above them, insert the following:
strSql = "SELECT AU_LASTPAGE, AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID =" & MemberID
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
strCurrentPage = rs("AU_LASTPAGE")
strQuery = rs("AU_QUERYSTRING")
rs.Close
end if
set rs=Nothing
strSql = "SELECT ME.MEMBER_ID, ME.M_NAME, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '1' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
Set rs=my_Conn.Execute(strSql)
if not (rs.BOF or rs.EOF) then
rs.MoveFirst
strName = rs("M_NAME")
Response.Write "<table align=""center"" border=""1"" cellPadding=""3"" cellspacing=""0"" width=""95%"">" & vbNewLine & _
" <tr vAlign=""middle"">" & vbNewLine & _
" <td align=""left"" width=""100%"">" & vbNewLine & _
" <font face="""& strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>Users viewing this topic: "& rs("M_NAME")
Do While NOT rs.EOF
if rs("M_NAME") <> strName then
Response.Write ", " & rs("M_NAME")
end if
rs.MoveNext
Loop
Response.Write " </td></tr></table>" & vbNewLine
End if
strSql = "SELECT AU_LASTPAGE, AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID =" & MemberID
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
strCurrentPage = rs("AU_LASTPAGE")
strQuery = rs("AU_QUERYSTRING")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTG FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID=-1 AND AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intGuests = rs("INTG")
rs.Close
end if
set rs=Nothing
strSql = "SELECT ME.MEMBER_ID, ME.M_NAME, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '1' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
Set rs=my_Conn.Execute(strSql)
if not (rs.BOF or rs.EOF) then
rs.MoveFirst
strName = rs("M_NAME")
Response.Write "<table align=""center"" border=""1"" cellPadding=""3"" cellspacing=""0"" width=""95%"">" & vbNewLine & _
" <tr vAlign=""middle"">" & vbNewLine & _
" <td align=""left"" width=""100%"">" & vbNewLine & _
" <font face="""& strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>Users viewing this topic: "& rs("M_NAME")
Do While NOT rs.EOF
if rs("M_NAME") <> strName then
Response.Write ", " & rs("M_NAME")
end if
rs.MoveNext
Loop
if intGuests > 0 then
Response.Write ", " & intGuests & " guest."
elseif intGuests > 1 then
Response.Write ", " & intGuests & " guests."
end if
Response.Write " </td></tr></table>" & vbNewLine
End if
Originally posted by Webbo
$20 to Snitz if you can match IP Boards ....
xyz User(s) are reading this topic
x members, y guests, z anonymous users![]()
strSql = "SELECT AU_LASTPAGE, AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID =" & MemberID
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
strCurrentPage = rs("AU_LASTPAGE")
strQuery = rs("AU_QUERYSTRING")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTA FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intViewers = rs("INTA")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTG FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID=-1 AND AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intGuests = rs("INTG")
rs.Close
end if
set rs=Nothing
strSql = "SELECT ME.MEMBER_ID, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '0' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
set rs = my_Conn.Execute(strSql)
if not rs.EOF then
rs.MoveFirst
intAnon=0
Do while not rs.EOF
intAnon=intAnon+1
rs.MoveNext
Loop
rs.Close
end if
set rs=Nothing
Response.Write "<table align=""center"" border=""1"" cellPadding=""3"" cellspacing=""0"" width=""95%"">" & vbNewLine & _
" <tr vAlign=""middle"">" & vbNewLine & _
" <td align=""left"" width=""100%"">" & vbNewLine & _
" <font face="""& strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>" & intViewers & " user(s) viewing this topic: "
strSql = "SELECT ME.MEMBER_ID, ME.M_NAME, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '1' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
Set rs=my_Conn.Execute(strSql)
if not (rs.BOF or rs.EOF) then
rs.MoveFirst
Do While NOT rs.EOF
Response.Write rs("M_NAME") & ", "
rs.MoveNext
Loop
End if
Response.Write cInt(intAnon) & " anonymous, " & intGuests & " guest(s)</td></tr></table>" & vbNewLine
strSql = "SELECT AU_LASTPAGE, AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID =" & MemberID
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
strCurrentPage = rs("AU_LASTPAGE")
strQuery = rs("AU_QUERYSTRING")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTA FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intViewers = rs("INTA")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTG FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID=-1 AND AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intGuests = rs("INTG")
rs.Close
end if
set rs=Nothing
strSql = "SELECT ME.MEMBER_ID, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '0' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
set rs = my_Conn.Execute(strSql)
if not rs.EOF then
rs.MoveFirst
intAnon=0
Do while not rs.EOF
intAnon=intAnon+1
rs.MoveNext
Loop
rs.Close
end if
set rs=Nothing
Response.Write "<table align=""center"" border=""1"" cellPadding=""3"" cellspacing=""0"" width=""95%"">" & vbNewLine & _
" <tr vAlign=""middle"">" & vbNewLine & _
" <td align=""left"" width=""100%"">" & vbNewLine & _
" <font face="""& strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>" & intViewers & " user(s) viewing this topic: "
Response.Write cInt(intAnon) & " anonymous, " & intGuests & " guest(s)</td></tr></table>" & vbNewLine
if mlev > 0 then
strSql = "SELECT AU_LASTPAGE, AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID =" & MemberID
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
strCurrentPage = rs("AU_LASTPAGE")
strQuery = rs("AU_QUERYSTRING")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTA FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intViewers = rs("INTA")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTG FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID=-1 AND AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intGuests = rs("INTG")
rs.Close
end if
set rs=Nothing
strSql = "SELECT ME.MEMBER_ID, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '0' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
set rs = my_Conn.Execute(strSql)
if not rs.EOF then
rs.MoveFirst
intAnon=0
Do while not rs.EOF
intAnon=intAnon+1
rs.MoveNext
Loop
rs.Close
end if
set rs=Nothing
Response.Write "<table align=""center"" border=""0"" cellPadding=""1"" cellspacing=""0"" width=""95%"">" & vbNewLine & _
" <tr vAlign=""middle"">" & vbNewLine & _
" <td align=""left"" width=""100%"" bgcolor=""" & strTableBorderColor & """>" & vbNewLine & _
" <table border=""0"" width=""100%"" cellspacing=""0"" cellpadding=""4"" align=""center"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """>" & vbNewLine & _
" <font face="""& strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>" & intViewers & "" & vbNewline
if intViewers = 1 then
Response.Write " user viewing this topic: "
else
Response.Write " users viewing this topic: "
end if
strSql = "SELECT ME.MEMBER_ID, ME.M_NAME, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '1' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
Set rs=my_Conn.Execute(strSql)
if not (rs.BOF or rs.EOF) then
rs.MoveFirst
Do While NOT rs.EOF
Response.Write "<a href=""pop_profile.asp?mode=display&id="&rs("MEMBER_ID") & """>" & rs("M_NAME") &"</a>, "
rs.MoveNext
Loop
end if
if cInt(intAnon) => 1 then
Response.Write " " & cInt(intAnon) & " anonymous "
end if
if intGuests = 1 then
Response.Write ", " & intGuests & " guest "
else if intGuests > 1 then
Response.Write ", " & intGuests & " guests "
end if
end if
Response.Write "</td></tr></table>" & vbNewLine & _
"</td></tr></table><br>" & vbNewLine
end if
strSql = "SELECT AU_LASTPAGE, AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID =" & MemberID
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
strCurrentPage = rs("AU_LASTPAGE")
strQuery = rs("AU_QUERYSTRING")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTA FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intViewers = rs("INTA")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTG FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID=-1 AND AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intGuests = rs("INTG")
rs.Close
end if
set rs=Nothing
strSql = "SELECT ME.MEMBER_ID, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '0' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
set rs = my_Conn.Execute(strSql)
if not rs.EOF then
rs.MoveFirst
intAnon=0
Do while not rs.EOF
intAnon=intAnon+1
rs.MoveNext
Loop
rs.Close
end if
set rs=Nothing
if intViewers = 0 or intViewers > 1 then strViewers= "s"
Response.Write "<table align=""center"" border=""1"" cellPadding=""3"" cellspacing=""0"" width=""95%"">" & vbNewLine & _
" <tr vAlign=""middle"">" & vbNewLine & _
" <td align=""left"" width=""100%"">" & vbNewLine & _
" <font face="""& strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>" & intViewers & " user"&strViewers&" viewing this topic: "
strSql = "SELECT ME.MEMBER_ID, ME.M_NAME, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '1' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
Set rs=my_Conn.Execute(strSql)
if not (rs.BOF or rs.EOF) then
rs.MoveFirst
Do While NOT rs.EOF
Response.Write "<a href=""pop_profile.asp?mode=display&id="&rs("MEMBER_ID") & """>" & rs("M_NAME") &"</a>, "
rs.MoveNext
Loop
End if
if intGuests = 0 or intGuests>1 then strGuests="s"
Response.Write cInt(intAnon) & " anonymous, " & intGuests & " guest"& strGuests &"</td></tr></table>" & vbNewLineif mlev > 0 then
strSql = "SELECT AU_LASTPAGE, AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID =" & MemberID
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
strCurrentPage = rs("AU_LASTPAGE")
strQuery = rs("AU_QUERYSTRING")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTA FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intViewers = rs("INTA")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTG FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID=-1 AND AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intGuests = rs("INTG")
rs.Close
end if
set rs=Nothing
strSql = "SELECT ME.MEMBER_ID, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '0' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
set rs = my_Conn.Execute(strSql)
if not rs.EOF then
rs.MoveFirst
intAnon=0
Do while not rs.EOF
intAnon=intAnon+1
rs.MoveNext
Loop
rs.Close
end if
set rs=Nothing
Response.Write "<table align=""center"" border=""0"" cellPadding=""1"" cellspacing=""0"" width=""95%"">" & vbNewLine & _
" <tr vAlign=""middle"">" & vbNewLine & _
" <td align=""left"" width=""100%"" bgcolor=""" & strTableBorderColor & """>" & vbNewLine & _
" <table border=""0"" width=""100%"" cellspacing=""0"" cellpadding=""4"" align=""center"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """>" & vbNewLine & _
" <font face="""& strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>" & intViewers & "" & vbNewline
if intViewers = 1 then
Response.Write " user viewing this topic: "
else
Response.Write " users viewing this topic: "
end if
strSql = "SELECT ME.MEMBER_ID, ME.M_NAME, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '1' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
Set rs=my_Conn.Execute(strSql)
if not (rs.BOF or rs.EOF) then
rs.MoveFirst
Do While NOT rs.EOF
Response.Write "<a href=""pop_profile.asp?mode=display&id="&rs("MEMBER_ID") & """>" & rs("M_NAME") &"</a>, "
rs.MoveNext
Loop
end if
if cInt(intAnon) => 1 then
Response.Write " " & cInt(intAnon) & " anonymous "
end if
if intGuests = 1 then
Response.Write ", " & intGuests & " guest "
else if intGuests > 1 then
Response.Write ", " & intGuests & " guests "
end if
end if
Response.Write "<td align=""right"" bgcolor=""" & strForumCellColor & """>" & vbNewLine & _
"<font face="""& strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strFooterFontSize & """>" & vbNewline
if strUseExtendedProfile then
Response.Write " <a href=""pop_profile.asp?mode=Edit""" & dWStatus("Remove name from Active Users...") & " tabindex=""-1""><acronym title=""Remove name from Active Users..."">Opt out</acronym></a>" & vbNewline
else
Response.Write " <a href=""javascript:openWindow3('pop_profile.asp?mode=Edit')""" & dWStatus("Remove name from Active Users...") & " tabindex=""-1""><acronym title=""Remove name from Active Users..."">Opt out</acronym></a>" & vbNewline
end if
Response.Write "</tr>" & vbNewline
Response.Write "</td></tr></table>" & vbNewLine & _
"</td></tr></table><br>" & vbNewLine
end ifif mlev > 0 then
strSql = "SELECT AU_LASTPAGE, AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID =" & MemberID
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
strCurrentPage = rs("AU_LASTPAGE")
strQuery = rs("AU_QUERYSTRING")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTA FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intViewers = rs("INTA")
rs.Close
end if
set rs=Nothing
strSql = "SELECT COUNT(MEMBER_ID) AS INTG FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID=-1 AND AU_LASTPAGE = '" & strCurrentPage & "' AND AU_QUERYSTRING='" & strQuery & "'"
set rs=my_Conn.Execute(strSql)
if not rs.EOF then
intGuests = rs("INTG")
rs.Close
end if
set rs=Nothing
strSql = "SELECT ME.MEMBER_ID, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '0' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
set rs = my_Conn.Execute(strSql)
if not rs.EOF then
rs.MoveFirst
intAnon=0
Do while not rs.EOF
intAnon=intAnon+1
rs.MoveNext
Loop
rs.Close
end if
set rs=Nothing
Response.Write "<table align=""center"" border=""0"" cellPadding=""1"" cellspacing=""0"" width=""95%"">" & vbNewLine & _
" <tr vAlign=""middle"">" & vbNewLine & _
" <td align=""left"" width=""100%"" bgcolor=""" & strTableBorderColor & """>" & vbNewLine & _
" <table border=""0"" width=""100%"" cellspacing=""0"" cellpadding=""4"" align=""center"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td bgcolor=""" & strForumCellColor & """>" & vbNewLine & _
" <font face="""& strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>" & intViewers & "" & vbNewline
if intViewers = 1 then
Response.Write " user viewing this topic: "
else
Response.Write " users viewing this topic: "
end if
strSql = "SELECT ME.MEMBER_ID, ME.M_NAME, ME.M_AUHIDE, AU.AU_LASTPAGE, AU.AU_QUERYSTRING FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME WHERE ME.M_AUHIDE = '1' AND AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & strCurrentPage & "' AND AU.AU_QUERYSTRING='" & strQuery & "'"
Set rs=my_Conn.Execute(strSql)
if not (rs.BOF or rs.EOF) then
rs.MoveFirst
Do While NOT rs.EOF
Response.Write "<a href=""pop_profile.asp?mode=display&id="&rs("MEMBER_ID") & """>" & rs("M_NAME") &"</a>, "
rs.MoveNext
Loop
end if
if cInt(intAnon) => 1 then
Response.Write " " & cInt(intAnon) & " anonymous "
end if
if intGuests = 1 then
Response.Write ", " & intGuests & " guest "
else if intGuests > 1 then
Response.Write ", " & intGuests & " guests "
end if
end if
Response.Write "<td align=""right"" bgcolor=""" & strForumCellColor & """>" & vbNewLine
if strUseExtendedProfile then
Response.Write " <a href=""pop_profile.asp?mode=Edit"" title=""Remove name from Active Users...""><img src=""icon_group.gif"" border=""0""></a>" & vbNewline
else
Response.Write " <a href=""javascript:openWindow3('pop_profile.asp?mode=Edit')""><title=""Remove name from Active Users...""><img src=""icon_group.gif"" border=""0""></a>" & vbNewline
end if
Response.Write "</tr>" & vbNewline
Response.Write "</td></tr></table>" & vbNewLine & _
"</td></tr></table><br>" & vbNewLine
end ifOriginally posted by Webbo Do you want to package it and add it to SnitzBitz Craig ?
Originally posted by Webbo
I know but adding the link to the members 'edit profile' will show users that they can opt out as I doubt many will know that the option is already in their profile![]()