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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 active topics by forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 04 November 2004 :  23:17:14  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
What I want to do is be able to specify the forum_id in the querystring for active.asp, so that IF specified, active.asp will display active topics for that forum only.

I know what I have to do to do it, I just have to clear up some SQL first....


	 "WHERE T.T_LAST_POST_AUTHOR = MEMBERS_1.MEMBER_ID "
if strPrivateForums = "1" and mLev < 4 then
	strSql = strSql & " AND F.FORUM_ID IN (" & allAllowedForums & ") "
end if
strSql = strSql & "AND F.F_TYPE = 0 " & _
	 "AND F.FORUM_ID = T.FORUM_ID " & _
	 "AND C.CAT_ID = T.CAT_ID " & _
	 "AND M.MEMBER_ID = T.T_AUTHOR " & _
	 "AND (T.T_LAST_POST > '" & lastDate & "'"


what exactly does the code highlited in green (grabbed from active.asp lines 271-279) do?

-Stim

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 05 November 2004 :  01:17:51  Show Profile
Uhh, it gets the topics that has a matching forum id in the forum table.

Support Snitz Forums
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 05 November 2004 :  04:20:13  Show Profile  Visit Gremlin's Homepage
Put each forum in its own group and you already have active.asp working that way without any rea code changes .. of course thats kinda impractical if you have more than a handful of forums.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 05 November 2004 :  20:18:22  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
yeah I have more than a handful of forums.... got it modified already tho, working good so far, havnt tested with volume tho

-Stim
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 05 November 2004 :  20:51:48  Show Profile
I'd be VERY interested in a MOD that does this. I've thought about it several times, but never hit upon an easy implementation.
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 05 November 2004 :  20:59:23  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
I might release it... its not much code to modify.

-Stim
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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07