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
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

rabufo
Junior Member

Italy
328 Posts

Posted - 11 December 2002 :  07:08:57  Show Profile
which is the best way to make any topic with one post only, in other way not allowing users to reply?


Thank you very much

Edited by - ruirib on 11 December 2002 08:06:07

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 December 2002 :  07:22:51  Show Profile  Send ruirib a Yahoo! Message
Lock the topics after they are posted.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

rabufo
Junior Member

Italy
328 Posts

Posted - 11 December 2002 :  07:30:03  Show Profile
thank you ruirib...........but the forum has a lot of subforums, and I would allow any user to post the first mesaages only, but no replies....and following all those topics could be hard ....is there no way to make "no replies" as default?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 December 2002 :  07:48:23  Show Profile  Send ruirib a Yahoo! Message
No, not without changing code. If that's what you want I can change the topic title and move this to the MOD w/O code.


<P.S.: Done>


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 11 December 2002 08:07:06
Go to Top of Page

rabufo
Junior Member

Italy
328 Posts

Posted - 11 December 2002 :  08:00:55  Show Profile
quote:
Originally posted by ruirib

No, not without changing code. If that's what you want I can change the forum title and move this to the MOD w/O code.



yes thank you ruirib.....please do..........
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 December 2002 :  08:14:47  Show Profile
quote:
Originally posted by ruirib

No, not without changing code. If that's what you want I can change the topic title and move this to the MOD w/O code.


<P.S.: Done>



I think you intended to move it to MOD w/O code forum.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 11 December 2002 :  09:04:45  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by GauravBhabu

quote:
Originally posted by ruirib

No, not without changing code. If that's what you want I can change the topic title and move this to the MOD w/O code.


<P.S.: Done>



I think you intended to move it to MOD w/O code forum.


Yeah, I guess you are right. My mistake, and now I cannot correct it, since I have no moderator rights here...


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 11 December 2002 09:05:40
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 11 December 2002 :  10:12:51  Show Profile
quote:
Originally posted by rabufo

which is the best way to make any topic with one post only, in other way not allowing users to reply?

i know there is a "Posting Restrictions MOD" can do this job easily.(i think it's made by HuwR...) it really a great & useful MOD, but i do'nt know where you can get this mod now.

maybe you can try getting the HuwR's portal snitz package on HuwR's site, then............. ask help if you have trouble to "extract" this mod. i think the main modified code you need should be in post.asp and post_info.asp these two files.

another way.. turn on moderation feature to all forums, then just as ruirib mentioned, after approving a topic/first post, LOCK it immediately!

anyway, it really a strange mod request. i'm very wonder what's forum situation you'll need this feature ??
Go to Top of Page

rabufo
Junior Member

Italy
328 Posts

Posted - 11 December 2002 :  10:24:02  Show Profile
quote:
Originally posted by DoraMoon
anyway, it really a strange mod request. i'm very wonder what's forum situation you'll need this feature ??




a forum dedicated exclusively to advertising posts....please look at www.aquariabiz.com
I need to avoid users reply to advertising post, also to not allow eventual polemic thread.....but at the same time I want to leave any user free to post advertising also for commercial people not able to use Internet


....just checked...that MOD doesn't exists in HuwR's site

Edited by - rabufo on 11 December 2002 10:29:58
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 December 2002 :  11:10:51  Show Profile
I did update posting restrictions to be used for 3.03. It was basically instructions in a text file. I will try to find if I have that file somwhere.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 December 2002 :  11:30:40  Show Profile
File: post_info.asp

Lines: 812-813

Find the following statements:
if Request.Form("lock") = 1 and ForumChkSkipAllowed = 1) then
	strSql = strSql & ", 0 "


Modify the above statements as below:

if (Request.Form("lock") = 1 and ForumChkSkipAllowed = 1) Or _
   (Forum_ID >= lowestForumID) then
	strSql = strSql & ", 0 "



Lines: 1000-1002

Find the following statements:

if Request.Form("lock") = 1 and ForumChkSkipAllowed = 1 then
	strSql = strSql & ",        T_STATUS = 0 "
end if


Modify the above statements as below:
if (Request.Form("lock") = 1 and ForumChkSkipAllowed = 1)  Or _
   (Forum_ID >= lowestForumID) then
	strSql = strSql & ",        T_STATUS = 0 "
end if



File: config.asp
Add the following statement in config.asp.
Const lowestForumID= 1


Edited: to allow all topics in any forum to be locked by default after posting. Edited on 12/12/2002 13:52

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)

Edited by - GauravBhabu on 12 December 2002 14:03:25
Go to Top of Page

rabufo
Junior Member

Italy
328 Posts

Posted - 11 December 2002 :  14:45:31  Show Profile
thank you very much, GauravBhabu!!!!

Now, the problem is: can I do the same changes in Snitz Forum 3.4.3????????
Go to Top of Page

David K
Junior Member

494 Posts

Posted - 11 December 2002 :  19:26:37  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
I have an idea about that, add after line number 1101 in post.asp:
'# Subscribe checkbox end ##

this line:
if strRqMethod = "Topic" or strRqMethod = "TopicQuote" then Response.Write "<input name=""lock"" type=""hidden"" value=""1"">"

It should Auto lock every post once a user Posts a message, while giving moderators the ability to unlock it.

Edited it because i missunderstood you and I thought you wanted to allow one reply, If you need this to work only on a certin forum in your board, ask and I'll post the changes needed

Edited by - David K on 11 December 2002 19:31:35
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 December 2002 :  20:13:52  Show Profile
rabufo it should not be different for 3.4.3 except for line numbers.
If that is for every topic in any forum than what David K suggested would be Ok.
<Edited: Actually David K's solution won't work as desired>

Edited by - GauravBhabu on 11 December 2002 20:42:30
Go to Top of Page

rabufo
Junior Member

Italy
328 Posts

Posted - 12 December 2002 :  06:03:51  Show Profile
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?
Go to Top of Page

David K
Junior Member

494 Posts

Posted - 12 December 2002 :  06:37:31  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
why wouldn't my solution work?
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next 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.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07