Limit posting in specific area by post count - Postet den (2447 Views)
Starting Member
Dash Designs
Innlegg: 7
7
Hi guys. I have tried searching for MODS with lots of different phrases but still no result, so I am guessing it isn't possible yet or maybe someone can tell me otherwise. Here's my problem:

I have a trading area on our forum where users can post items for sale. Every now and again someone will come in and post up and advert for their very first post after joining without introducing themselves. My forum members are annoyed that people are using it as a free advert instead of joining in the forum community, but worse still, some people have bought items to find out the guys has taken the money never to be seen again. I have posted warnings and advice but still this happens, so the gerneral concensus was they want me to make it impossible for starting members with less than say 20 posts to post in that one area. I already have the 10 post count limit for emailing members which stopped the spammers so I'm guessing this sort of thing should be possible but I just don't know how to do it myself or cannot find a MOD.
Can anyone help? Thanks in advance.<
   
 Sidestørrelse 
Postet den
Senior Member
bobby131313
Innlegg: 1163
1163
I've been kicking this around also. Must have minimum of 50 posts and 14 days to Buy/Sell/Trade on the forum. But people don't read and post items for sale anyway. The busier we get (we're growing like wildfire) the more time consuming dealing with these people is, so it would be sweet if they were simply turned down from posting in those forums with less than 50 posts automagically.<
Postet den
Support Moderator
Shaggy
Innlegg: 6780
6780
What you need to do is turn private forums on and set the authorisation type on the forum you want to restrict access to to "Allowed Member List". Then, in post_info.asp, add a check on the number of posts the member has made when processing their posts and add them to the list for that forum if it equals the requirement.
<
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.”
Postet den
Forum Moderator
AnonJr
Innlegg: 5768
5768
I seem to remember this being done before too... when you searched, did you include the archive?<
Postet den
Starting Member
Dash Designs
Innlegg: 7
7
Shaggy: So post_info.asp is where I need to add code that check for number of posts? Will this not effect all forum areas if I hard code this page to do that? Also, will it only show the forum to the Allowed members list? If this is tha case then it will not help as the area itself is a good draw card to the site and encourages people to become active members.
AnonJr: Sorry mate, I didn't check archived topics. I will do so now.
EDIT... Just spent all morning checking the archive posts and could find nothing there either. Sorry guys.<
Postet den
Average Member
phy1729
Innlegg: 589
589
I have not tested this. Add the code in red. Cahnge code in green to the topic number of the topic you wish to protect. post_info.asp lines 951-6
Code:

if MethodType = "Reply" or MethodType = "ReplyQuote" or MethodType = "TopicQuote" then
'## Forum_SQL
strSql = "SELECT MEMBER_ID, M_LEVEL, M_EMAIL, M_LASTPOSTDATE, M_POSTS, " & strDBNTSQLname
if strAuthType = "db" then
strSql = strSql & ", M_PASSWORD "
end if
lines 977-1
Code:

		if strPrivateForums = "1" and ForumChkSkipAllowed = 0 then
if not(chkForumAccess(Forum_ID,MemberID,false)) or (rs("M_POSTS")<1 AND TOPIC_ID=15772) then
Go_Result "You are not allowed to post in this forum !", 0
end if
end if
<
Postet den
Starting Member
Dash Designs
Innlegg: 7
7
Hi phy1729. Thanks for your reply. I am a bit scared to try anything that might not work as I have constant activity on the site as it is a world wide community and can't afford to let it stop working, but my question is it mentions TOPIC_ID as the number I need to change. Is that what the entire "TRADING forum" (The area within the enitire Snitz forums ap that when I created it prompts me to create a new forum) I have is called in the database? It goes by TOPIC_ID as opposed to FORUM_ID? If it is only changing the one topic then I can't really use it as there are probably around 15 new topics added every day.
<
Postet den
Average Member
phy1729
Innlegg: 589
589
Ok I'll test it on my forum and all you need to do is change TOPIC_ID to FORUM_ID. I'll let you know how it turns out.<
Postet den
Average Member
phy1729
Innlegg: 589
589
Alright only works if strPrivateForums is 1 so change the second code box to
Code:

		if strPrivateForums = "1" and ForumChkSkipAllowed = 0 then
if not(chkForumAccess(Forum_ID,MemberID,false)) then
Go_Result "You are not allowed to post in this forum !", 0
end if
end if
if (rs("M_POSTS")<20 AND FORUM_ID=15772) then
Go_Result You are not allowed to post in this forum !", 0
end if
<
Postet den
Forum Moderator
AnonJr
Innlegg: 5768
5768
Maybe I was thinking of this topic... [link]
Either way it should give you a couple of ideas.<
Postet den
Senior Member
bobby131313
Innlegg: 1163
1163
Awesome thanks!
Question though, I have 6 or so forums I need to check for, what's the syntax for that? Do I just put OR in between them? <
Du må legge inn en melding