Prevent certain people posting. - Posted (992 Views)
Junior Member
leesh695
Posts: 101
101
Hello,

Is there a MOD that lets you prevent certain people from posting in certain forums?
I know theres the allowed member list option, the problem is I want people to be able to read the topics in this forum even when they are not loged in, but only allow certain people to reply.
Every member of my forum has a title, could I use that varable to control who can post?
Thanks in advance!<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Advanced Member
JJenson
Posts: 2121
2121
You will want to use the usergroups mod and modify it so they are the only ones allowed to post. I am not sure if there is any other way.<
Posted
Junior Member
leesh695
Posts: 101
101
Is there a Command I could use that auto redirects or stops the page loading?
I want somthing like..
If Forum_ID = 1 and membertitle is not A or B or C or D then Either Stop page loading or autoredirect


I have this that muzishun and anonjr helped me with in my inc_header, allowing me to use MemberTitle as a variable.
If mLev > 0 Then
strSql = "SELECT M_TITLE FROM " & strMemberTablePrefix & "MEMBERS WHERE MEMBER_ID = " & MemberID

set rsMTitle = Server.CreateObject("ADODB.Recordset")
rsMTitle.open strSql, my_Conn

MemberTitle = rsMTitle("M_TITLE")

rsMTitle.close
set rsMTitle = nothing
End If<
Posted
Junior Member
leesh695
Posts: 101
101
Ok, I have found my own fix to it,

I have included this line in post.asp

if strRqForumID = "" and MemberTitle = "" then response.redirect("")

You just add the correct variables in the ""'s

I made a little asp page like " You cannot post in this topic" works fine for mebigsmile<
Posted
Advanced Member
JJenson
Posts: 2121
2121
Glad you got it working smile<
Posted
Junior Member
leesh695
Posts: 101
101
Thanks & Thank you for your suggestion too. smile<
 
You Must enter a message