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)
 how to automatically lock new topics?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redhat
Starting Member

5 Posts

Posted - 03 February 2005 :  16:45:25  Show Profile
Hi to all.

Is there a way to automatically lock a new topic? i don'want to be possible to reply to certain forums.

or,can the user that post the new topic,lock it after the posting?

Help me ,please!

Many Thanks
Redhat

Podge
Support Moderator

Ireland
3776 Posts

Posted - 03 February 2005 :  16:52:07  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
You could lock the individual forum. Only admins & moderators could post.
See this forum on Snitz - http://forum.snitz.com/forum/default.asp?CAT_ID=4

quote:
can the user that post the new topic,lock it after the posting

Yes.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 04 February 2005 :  00:13:03  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
quote:
Originally posted by Podge

You could lock the individual forum. Only admins & moderators could post.
See this forum on Snitz - http://forum.snitz.com/forum/default.asp?CAT_ID=4
Alternatively, you could edit post_info.asp so that new topics are automatically locked when they are added to the database. I don't have the code ready right now, but I'm sure someone else could provide that for you.

eXtremeGossip
Go to Top of Page

redhat
Starting Member

5 Posts

Posted - 04 February 2005 :  08:02:39  Show Profile
ok,
editing post_info.asp so that new topics are automatically locked when they are added to the database could be a good solution..

Anyone can tell me how to do it? what string must i search?

Many many thanks to all.

redhat
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 04 February 2005 :  08:33:01  Show Profile
Find the following, beginning on line 850 of post_info.asp, and change the 1 highlighted in green to 0:
if Request.Form("lock") = 1 and ForumChkSkipAllowed = 1 then
	strSql = strSql & ", 0 "
else
	if Moderation = "Yes" then
		strSql = strSql & ", 2 "
	else
		strSql = strSql & ", 1 "
	end if
end if
You might also want to edit the "lock this topic" checkbox on post.asp so it's checked by default.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

redhat
Starting Member

5 Posts

Posted - 07 February 2005 :  17:32:22  Show Profile
Many thanks,Shaggy. It works.

But,now,another little step: it is possible to lock only a group and not all groups? Editing post_info.asp locks (obviously) all groups.

Many thanks for your patience.
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.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07