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 MOD-Group
 MOD Add-On Forum (W/O Code)
 Mod Request: allowing topics with 1 post only
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 December 2002 :  07:20:45  Show Profile
quote:
Originally posted by David K

why wouldn't my solution work?


Because of the and condition in following statements in post_info.asp
if Request.Form("lock") = 1 and ForumChkSkipAllowed = 1)

Edited by - GauravBhabu on 12 December 2002 07:21:14
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 December 2002 :  07:25:15  Show Profile
quote:
Originally posted by rabufo

Const advertisingForumID = [Forum ID of Advertising Forum]


this means I can block the reply for 1 forum only, right??
isn't possible to block replies for ALL forums at the same time? Couldn't I write there ALL Forums ID?




It is possible. I made the changes in my earlier post with code to allow that.

EDITED: To direct the member(rabufo) to look at my earlier post which is modified to suit his/her requirement

Edited by - GauravBhabu on 12 December 2002 13:59:04
Go to Top of Page

David K
Junior Member

494 Posts

Posted - 12 December 2002 :  12:56:57  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
add this to my previous "fix"

Change lines 812-813 in post_info.asp:
if Request.Form("lock") = 1 and ForumChkSkipAllowed = 1 then
strSql = strSql & ", 0 "

to:
if Request.Form("lock") = 1 then
strSql = strSql & ", 0 "

and change lines 1000-1001 from this:
if Request.Form("lock") = 1 and ForumChkSkipAllowed = 1 then
strSql = strSql & ", T_STATUS = 0 "

to this:
if Request.Form("lock") = 1 then
strSql = strSql & ", T_STATUS = 0 "

and everything ahould work

<edited to fix a type-o>

Edited by - David K on 12 December 2002 12:58:26
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 December 2002 :  13:48:25  Show Profile
With the solution I have posted, The topic locking can be disabled any time by setting the constant value to a very high number and yet keep the original functioanlty of the base code. David K, the changes suggested by you does not allow that flexibility.
Go to Top of Page

David K
Junior Member

494 Posts

Posted - 12 December 2002 :  13:57:51  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
he wants this thing to work in the entire board, my change offers that, he doesn't need to preserve functionality, just to auto-lock topics!
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 December 2002 :  14:02:25  Show Profile
quote:
Originally posted by David K

he wants this thing to work in the entire board, my change offers that, he doesn't need to preserve functionality, just to auto-lock topics!



That is exactly what changes suggested by me will do.

IMO it is always better to keep/preserve the functionality and yet allow the user to have it work the way he/she wants.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07