% '################################################################################# '## Copyright (C) 2000-01 Michael Anderson and Pierre Gorissen '## '## This program is free software; you can redistribute it and/or '## modify it under the terms of the GNU General Public License '## as published by the Free Software Foundation; either version 2 '## of the License, or any later version. '## '## All copyright notices regarding Snitz Forums 2000 '## must remain intact in the scripts and in the outputted HTML '## The "powered by" text/logo with a link back to '## http://forum.snitz.com in the footer of the pages MUST '## remain visible when the pages are viewed on the internet or intranet. '## '## This program is distributed in the hope that it will be useful, '## but WITHOUT ANY WARRANTY; without even the implied warranty of '## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the '## GNU General Public License for more details. '## '## You should have received a copy of the GNU General Public License '## along with this program; if not, write to the Free Software '## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. '## '## Support can be obtained from support forums at: '## http://forum.snitz.com '## '## Correspondence and Marketing Questions can be sent to: '## reinhold@bigfoot.com '## '## or '## '## Snitz Communications '## C/O: Michael Anderson '## PO Box 200 '## Harpswell, ME 04079 '################################################################################# %> <% Dim ArchiveView if request("ARCHIVE") = "true" then strActivePrefix = strArchiveTablePrefix ArchiveView = "true" else strActivePrefix = strTablePrefix ArchiveView = "" end if set rs = Server.CreateObject("ADODB.Recordset") ' DEM --> Added code for topic moderation If mlev = 3 then strSql = "SELECT FORUM_ID FROM " & strTablePrefix & "MODERATOR " & _ " WHERE MEMBER_ID = " & MemberID set rsmod = my_Conn.Execute (strSql) if rsmod.EOF or rsmod.BOF then ' Do Nothing - User is not an active moderator else modcount = 0 ModOfForums = "(" do until rsmod.EOF modcount = modcount + 1 if modcount > 1 then ModOfForums = ModOfForums & ", " end if ModOfForums = ModOfForums & rsmod("FORUM_ID") rsmod.MoveNext loop ModOfForums = ModOfForums & ")" end if end if Response.Write "
" & vbNewline & _
" " & _
"" & _
" All Forums " & vbNewline If Request.QueryString("mode") = "DoIt" then Response.Write " " & vbNewline & _ " " & _ " Search Form " Response.Write " " & vbNewline & _ " " & _ "" & _ " Search Results for: " & Request.Form("Search") & vbNewline else Response.Write " " & vbNewline & _ " " & _ " Search Form" end if Response.Write " " & vbNewline & _ " | " & vbNewline & _
"
|
You must enter keywords
<% end if Else %> <% end if on error resume next set rs = nothing WriteFooter sub ForumAdminOptions() if (AdminAllowed = 1) or (lcase(strNoCookies) = "1") then if rsCFStatus("CAT_STATUS") = 0 then if mlev = 4 then %> ')"> <% else %> <% end if else if rsCFStatus("F_STATUS") <> 0 then %> &CAT_ID=<% =rs("CAT_ID") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"JSurlpath")%>')"> <% else %> &CAT_ID=<% =rs("CAT_ID") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"JSurlpath")%>')"> <% end if end if if (rsCFStatus("CAT_STATUS") <> 0 and rsCFStatus("F_STATUS") <> 0) or (AdminAllowed = 1) then %> &CAT_ID=<% =rs("CAT_ID") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"urlpath") %>&type=0"> <% end if %> &CAT_ID=<% =rs("CAT_ID") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"JSurlpath") %>')"> &CAT_ID=<% =rs("CAT_ID")%>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"urlpath") %>"> <% ' DEM --> Added code to allow for moderation if AdminAllowed = 1 and (CheckForUnModeratedPosts("FORUM", rs("CAT_ID"), rs("FORUM_ID"), 0)) > 0 then ModString = "CAT_ID=" & rs("CAT_ID") & "&FORUM_ID=" & rs("FORUM_ID") & "&TOPIC_ID=" & rs("TOPIC_ID") & "&REPLY_ID=X" Response.Write " " & vbNewline end if ' DEM --> End of code added to allow for moderation ' DEM --> Start of Code added for subscriptions if (strSubscription > 0 and strSubscription < 4) and _ (rsCFStatus("CAT_SUBSCRIPTION") > 0 and rsCFStatus("CAT_SUBSCRIPTION") < 3) and _ (rsCFStatus("F_SUBSCRIPTION") > 0 and rsCFStatus("F_SUBSCRIPTION") = 1) then CheckSubscription "TOPICNOTEXT", MemberID, rs("CAT_ID"), rs("FORUM_ID"), 0, "", "" end if ' DEM --> End of Code added for subscriptions end if end sub sub TopicPaging() mxpages = (rs("T_REPLIES") / strPageSize) if mxPages <> cint(mxPages) then mxpages = int(mxpages) + 1 end if if mxpages > 1 then Response.Write("") for counter = 1 to mxpages ref = " | " if ((mxpages > 9) and (mxpages > strPageNumberSize)) or ((counter > 9) and (mxpages < strPageNumberSize)) then ref = ref & " " end if ref = ref & widenum(counter) & "" & counter & " | " Response.Write ref if counter mod strPageNumberSize = 0 then Response.Write("
") end if next Response.Write(" |