Ban User From Forum Mod       Back to File List | Edit This File

Ban User From Forum Mod - Click to Download
Submitted by Jerry on 12.27.2008 (549 Downloads)
This is for the ppl who have want to ban somone from there forum without making the advanced forum!!

And Fyet, i makes it that you can be forum banned and not banned from the game.

Also, would u mind sharing your comment login so that i can comment?

Just want to say that it is made.
File rating: 1.00 out of 5.00 (1 votes total).
Rate this file:       (Sucks) 1   2   3   4   5 (Rocks)      

Posted by Fayt on 12.27.2008
All you have to do is an IF statement if your authlevel is of whatever number you choose and poof banned.

It's best to do an include file with it and include it in all the forums you create.
Posted by ErRoR on 12.29.2008
1. Add table banned  tinyint 2 default 0
2. add this :
if ($userrow['banned'] == 1) { display("You are banned from this forum.", "Forum"); die(); }
after:
if ($userrow == false) { display("The forum is for registered players only.", "Forum"); die(); }
3. Now if you want to ban a person set banned to 1 for thak u need to make new function into admin.php Good luck makeing that,
i aint gona make it for you, because i dont have time right now but heres a start:
$id=USER_ID_WHOS_GONNA_GET_BANNED;
doquery("UPDATE dk_users SET banned='1' WHERE id='$id' LIMIT 1", "users");
now make form User id:<input type=text name=id>. Ok that shoud help u going.

Posted by ErRoR on 12.29.2008
I made mistake allready:
$id=USER_ID_WHOS_GONNA_GET_BANNED;
If u make form like i told u to then it shoud be like this:
$id=id;
Add A Comment

In order to cut down on comment spam, you must be registered on the support forums and provide your username and password before you are allowed to comment. The name shown in your comment will be your forums display name. Sorry it had to be like this. If you haven't already, please register an account.

Forums Username:


Forums Password:


Your Comment:




Information & Rules
This is a file index for any Dragon Knight modifications. If you've made a mod you'd like to share with the community, upload it.

Mod authors, please include a name, version, and brief description along with your file. All files should be submitted in a zip file that includes the actual PHP scripts as well as any readme/instruction files.

DISCLAIMER: I take absolutely no responsibility for the content or functionality of any of these files. You use them entirely at your own risk. Make sure to run all files through a virus scanner before opening them. Hopefully the people here are above such petty nonsense as putting a virus in the files, but you can never be to careful.