Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Forum Topic Count 0 Posts 0 - how do I hide
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Southern Girl
New Member

78 Posts

Posted - 06 June 2009 :  08:48:42  Show Profile
I've updated my forum but I now remember a mod that I had that hid topics that had been archived and showed a count of 0.

I've searched but I can't find the mod...

Thanks
Technobimbo

Etymon
Advanced Member

United States
2391 Posts

Posted - 06 June 2009 :  13:43:01  Show Profile  Visit Etymon's Homepage
you could probably put this at the very bottom of the header if you don't want to show archives at all:

if Request("ARCHIVE") = "true" then
Response.Redirect "default.asp"
end if

Then, in default.asp take the area I have in green and post it again at the bottom of the red code like I have it in orange below:


ArchivedPostCount = 0
ArchivedTopicCount = 0

if not blnHiddenForums and strArchiveState = "1" then
'## Forum_SQL
strSql = "SELECT P_A_COUNT, T_A_COUNT FROM " & strTablePrefix & "TOTALS"

set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSql, my_Conn

if not rs.EOF then
ArchivedPostCount = rs("P_A_COUNT")
ArchivedTopicCount = rs("T_A_COUNT")
else
ArchivedPostCount = 0
ArchivedTopicCount = 0
end if

rs.Close
set rs = nothing
end if

ArchivedPostCount = 0
ArchivedTopicCount = 0



Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07