Author |
Topic |
GauravBhabu
Advanced Member
4288 Posts |
Posted - 12 December 2002 : 07:20:45
|
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 |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 12 December 2002 : 07:25:15
|
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 |
|
|
David K
Junior Member
494 Posts |
Posted - 12 December 2002 : 12:56:57
|
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 |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 12 December 2002 : 13:48:25
|
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. |
|
|
David K
Junior Member
494 Posts |
Posted - 12 December 2002 : 13:57:51
|
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! |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 12 December 2002 : 14:02:25
|
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. |
|
|
Topic |
|