Version: 1.00, by Hotte
Developer Last Online: Jan 2006
Version: 2.2.x
Rating:
Released: 06-06-2002
Last Update: Never
Installs: 64
No support by the author.
Hi
I´ve wrote a little hack upon request of my "Main"-Moderators.
This hack allows them to temporary ban a given user per Userid. Simply userid, reason and how many hours. The banned user will see a modified no-permission screen when he tries to login. The User can automaticly access the board again, when the entered time is over.
For the other hackers: Feel free to modify the hack and distribute a "better" version of this if you want.
Sry for my bad english.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by Tha Rock Erwin: I see you have modified this hack, please could you post up an updated super cool version?
I got your PM. My mods are customized specifically for my site, and won't make sense to anyone else's site. I don't have time to package it and release it as an add-on - the code is buried under a ton of modified hack, especially after several vB upgrades.
I modified this hack to integrate it into the search feature in the Mod CP, using the username instead of the userid. It's not that hard to do. I can't post on how I did it, since it's all integrated with the rest of my banning system. But it can be done.
Then what your mods can do is Search for a User using the normal search function in their Mod CP, and when they find the username, click on the "Temp Ban" or "Remove Temp Ban" links next to the username. And go from there!
My system is very different - so I can't test this, but it should work.
Originally posted by Erwin Okay, this is what you do.
[...]
That's it!
Then what your mods can do is Search for a User using the normal search function in their Mod CP, and when they find the username, click on the "Temp Ban" or "Remove Temp Ban" links next to the username. And go from there!
My system is very different - so I can't test this, but it should work.
Thank you .. now, when I click on "temp ban" it leads me to the page to temp ban it, but still askign for the iser id (just leads me to the ban link in banuser.php) .. did I missed something ?
Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site62/fst/var/www/html/bb/admin/adminfunctions.php:19) in /home/virtual/site62/fst/var/www/html/bb/mod/banuser.php on line 30
When I try to edit a ban I get;
Not Found
The requested URL /bb/mod/banuser.php.php was not found on this server.
The instructions say to add error_nopermission_tempban template. Is that to say error_nopermission_tempban.php? In what directory?
I'm not sure what a template is..
Will this allow admins to be banned - or can I just not give the link to mods - and not put it in index.php?
You don't put that template in the directory. Go to your admin cp and look down the left hand column near the bottom for 'templates'. .php files are put in the directory (FTP, whatever), but not templates.
Originally posted by Erwin I integrated it into my banning system. It's only relevant for my site. I renamed it and made it a "suspend" feature rather than call it banning, and added it into the postbit of threads for easy suspension and unsuspension. Made it all accessible from the admin, mod CPs, as well as via the staff forums. etc. etc. Just made it more functional. I do that with most hacks I install.
Thank you .. now, when I click on "temp ban" it leads me to the page to temp ban it, but still askign for the iser id (just leads me to the ban link in banuser.php) .. did I missed something ?
yeah. im getting the same issue. maybe there's a template change?
ok. no it can't be in the template. i think it's probably something that needs to be changed in banuser.php but i have no clue what that would look like. someone needs to redo this entire hack and make it work properly because i couldn't get it to work unless i changed various things around by getting ideas from the people who've posted. as it is, this hack is pretty useless because unless i'm mistaken, how can a mod get a user's id#? only admins can get that.
Nothing. But what stops a mod, super mod or admin from un-banning himself? The temp-ban doesn?t work on files in the mod oder adminfolder, so they are still able to access the banuser.php to unban.
i'd say hopefully you would not choose a person that would do such a thing as a mod.