jaymo Posted June 3, 2011 Share Posted June 3, 2011 (edited) Description: The ability to ban users from their profile. 1. Create a file names 'banuser.php' 2. Insert into 'banuser.php' You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 3. Next open classes.php and find the last of the admin blocks. (Mine will look different to yours) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 4. Underneath this replace EVERYTHING with this. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 5. stay in classes.php and insert. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in the user class. 6. Create a new field in grpgusers called ban and set it as an interger. 7. Next and open profiles.php and find, You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 6. Underneath that closing curly brace insert the following. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 7. That should be all, if any problems let me know thanks. I'm not the best at PHP and this took me a while to figure out. Sorry if its a bit messy. Edited June 3, 2011 by jaymo added code tags 1 Quote Link to comment Share on other sites More sharing options...
Dominion Posted June 3, 2011 Share Posted June 3, 2011 (edited) Please use code tages [ php] [/ php] when posting. Also well done for the contribution. Edited June 3, 2011 by Dominion Quote Link to comment Share on other sites More sharing options...
jaymo Posted June 3, 2011 Author Share Posted June 3, 2011 ok, I didn't know how thats why I didn't use them sorry Quote Link to comment Share on other sites More sharing options...
Dominion Posted June 3, 2011 Share Posted June 3, 2011 ok, I didn't know how thats why I didn't use them sorry Don't worry about it. ;) Quote Link to comment Share on other sites More sharing options...
SMOKEY_TEK Posted July 7, 2011 Share Posted July 7, 2011 I like this, but I don't understand why you would ban a user from their profile. Quote Link to comment Share on other sites More sharing options...
jaymo Posted July 10, 2011 Author Share Posted July 10, 2011 its easier, just one click. Quote Link to comment Share on other sites More sharing options...
ShadyCoco Posted July 20, 2011 Share Posted July 20, 2011 its easier, just one click. I think adding a [ban] link next to every users name in chats, forums, mailbox, staff logs, send logs etc... but very nice mod :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.