| |
Topic |
Author |
Replies |
Read |
Last Post |
<% if (mlev = 4 or mlev = 3) or (lcase(strNoCookies) = "1") then %>
|
<% end if %>
<% if rs.EOF or rs.BOF then '## No topic %>
| No Matches Found |
<% if (mlev = 4 or mlev = 3) or (lcase(strNoCookies) = "1") then %>
|
<% end if %>
<%
else
rs.MoveFirst
currForum = 0
currTopic = 0
do until rs.EOF
if ChkForumAccess(rs("FORUM_ID"),getNewMemberNumber()) then
'## Forum_SQL - Find out if the Category is Locked or Un-Locked and if it Exists
strSql = "SELECT " & strTablePrefix & "CATEGORY.CAT_STATUS "
' DEM --> Added *_SUBSCRIPTION Lines
strSql = strSql & ", " & strTablePrefix & "CATEGORY.CAT_SUBSCRIPTION "
strSql = strSql & ", " & strTablePrefix & "FORUM.F_SUBSCRIPTION "
strSql = strSql & ", " & strTablePrefix & "FORUM.F_STATUS "
strSql = strSql & " FROM " & strTablePrefix & "CATEGORY "
strSql = strSql & " , " & strTablePrefix & "FORUM "
strSql = strSql & " WHERE " & strTablePrefix & "CATEGORY.CAT_ID = " & strTablePrefix & "FORUM.CAT_ID "
strSql = strSql & " AND " & strTablePrefix & "FORUM.FORUM_ID = " & rs("FORUM_ID")
set rsCFStatus = my_Conn.Execute (StrSql)
if (mLev = 4) or ((chkForumModerator(rs("FORUM_ID"), Session(strCookieURL & "username"))= "1") and mLev = 3) or ((chkForumModerator(rs("FORUM_ID"), Request.Cookies(strUniqueID & "User")("Name")) = "1") and mlev = 3) or (lcase(strNoCookies) = "1") then
AdminAllowed = 1
else
AdminAllowed = 0
end if
if (currForum <> rs("FORUM_ID")) and (currTopic <> rs("TOPIC_ID")) then
%>
| <% =ChkString(rs("F_SUBJECT"),"display") %> |
<% if (AdminAllowed = 1) or (lcase(strNoCookies) = "1") then %>
<% ForumAdminOptions() %> |
<% elseif (mLev = 3) then %>
|
<% end if %>
<% currForum = rs("FORUM_ID")
end if
if currTopic <> rs("TOPIC_ID") then
Response.Write " " & vbNewline
' Response.Write " | | "
if rsCFStatus("CAT_STATUS") <> 0 and rsCFstatus("F_STATUS") <> 0 and rs("T_STATUS") <> 0 then
' DEM --> Added if statement to display topic status properly
if rs("T_STATUS") = 2 then
Response.Write " " & _
"![]() | " & vbNewline
elseif rs("T_STATUS") = 3 then
Response.Write " " & _
"![]() | " & vbNewline
else
Response.Write " " & _
"" & ChkIsNew(rs("T_LAST_POST")) & " | " & vbNewline
end if
else
Response.Write " " & _
"![]() | " & vbNewline
end if %>
"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %> <% if strShowPaging = "1" then TopicPaging() end if%> |
<% =ChkString(rs("M_NAME"),"display") %> |
<% =rs("T_REPLIES") %> |
<% =rs("T_VIEW_COUNT") %> |
<%
if IsNull(rs("T_LAST_POST_AUTHOR")) then
strLastAuthor = ""
else
strLastAuthor = " by: "
if strUseExtendedProfile then
strLastAuthor = strLastAuthor & ""
else
strLastAuthor = strLastAuthor & ""
end if
strLastAuthor = strLastAuthor & getMemberName(rs("T_LAST_POST_AUTHOR")) & ""
end if
%>
<% =ChkDate(rs("T_LAST_POST")) %> <% =ChkTime(rs("T_LAST_POST")) %><%=strLastAuthor%> |
<% if AdminAllowed = 1 or strNoCookies = "1" then %>
<% if rsCFStatus("CAT_STATUS") = 0 then %>
')">
<% elseif rsCFStatus("F_STATUS") = 0 then %>
&CAT_ID=<% =rs("CAT_ID") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"JSurlpath")%>')">
<% elseif rs("T_STATUS") <> 0 then
' DEM --> Added code to allow for moderation
if rs("T_STATUS") >= 2 or _
(CheckForUnModeratedPosts("TOPIC", rs("CAT_ID"), rs("FORUM_ID"), rs("TOPIC_ID")) > 0) then
ModString = "CAT_ID=" & rs("CAT_ID") & "&FORUM_ID=" & rs("FORUM_ID") & "&TOPIC_ID=" & rs("TOPIC_ID") & "&REPLY_ID=X"
Response.Write " = 2 then
Response.Write "alt=""Approve/Hold/Reject Topic"""
else
Response.Write "alt=""Approve/Hold/Reject Replies to Topic"""
end if
Response.Write " height=15 width=15 border=0>" & vbNewline
else ' DEM --> End of Code added for topic moderation
%>
&FORUM_ID=<% =rs("FORUM_ID") %>&CAT_ID=<% =rs("CAT_ID") %>&Topic_Title=<% =ChkString(rs("T_SUBJECT"),"JSurlpath")%>')">
<% End if
else %>
&FORUM_ID=<% =rs("FORUM_ID") %>&CAT_ID=<% =rs("CAT_ID") %>&Topic_Title=<% =ChkString(rs("T_SUBJECT"),"JSurlpath")%>')">
<% end if
if (AdminAllowed = 1) or (rsCFStatus("CAT_STATUS") <> 0 and rsCFStatus("F_STATUS") <> 0 and rs("T_STATUS") <> 0) then %>
&FORUM_ID=<% =rs("FORUM_ID") %>&CAT_ID=<% =rs("CAT_ID") %>&auth=<% =rs("T_AUTHOR") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"urlpath") %>&Topic_Title=<% =ChkString(rs("T_SUBJECT"),"urlpath") %>">
<% end if %>
&FORUM_ID=<% =rs("FORUM_ID") %>&CAT_ID=<% =rs("CAT_ID") %>&Topic_Title=<% =ChkString(rs("T_SUBJECT"),"JSurlpath") %>')">
&FORUM_ID=<% =rs("FORUM_ID") %>&CAT_ID=<% =rs("CAT_ID") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"urlpath") %>&Topic_Title=<% =ChkString(left(rs("T_SUBJECT"), 50),"urlpath") %>">
<% ' DEM --> Start of Code added for subscriptions
if strSubscription > 0 and _
rsCFStatus("Cat_Subscription") > 0 and _
rsCFStatus("F_Subscription") > 0 then
CheckSubscription "TOPICNOTEXT", MemberID, rs("CAT_ID"), rs("FORUM_ID"), rs("TOPIC_ID"), "", ""
end if
' DEM --> End of Code added for subscriptions
%>
|
<% elseif (mLev = 3) then%>
|
<% end if %>
<% currTopic = rs("TOPIC_ID")
end if
end if
rs.MoveNext
loop
end if
%>
|