![]() |
Quote:
|
I like it but how does a mod get access to the users ID to do the ban?
|
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. :)
|
This is a great little hack! My only wish is to ban by username instead of the id...
|
Erwin
Any way you can share this info ?, I am lookign for the same feature |
Okay, this is what you do.
1) Upload banuser.php into your mod subdirectory 2) Edit your mod/user.php Find: PHP Code:
PHP Code:
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. |
Quote:
|
When I perform a temp ban I get;
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. -------------------------------------------------------------------------------- Apache/1.3.22 Server at www.domainname.net Port 80 Just why am I transfered to an URL ending with php.php? (Other than this, it does initially work). For the record, I'm using vBulletin ver 2.2.9. |
I'm new to this php stuff.
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.
|
All times are GMT. The time now is 12:38 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|