Prevent certain people posting. - Postet den (1000 Views)
Junior Member
leesh695
Innlegg: 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!<
   
 Sidestørrelse 
Postet den
Advanced Member
JJenson
Innlegg: 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.<
Postet den
Junior Member
leesh695
Innlegg: 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<
Postet den
Junior Member
leesh695
Innlegg: 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<
Postet den
Advanced Member
JJenson
Innlegg: 2121
2121
Glad you got it working smile<
Postet den
Junior Member
leesh695
Innlegg: 101
101
Thanks & Thank you for your suggestion too. smile<
 
Du må legge inn en melding