![]() |
having to send warning PMs and Emails 'manualy' everyime I wanted to let my users know they'r breaking the forum's rules
made me make this small hack to automaticaly send a PM and a email with a preset msg for the type of rule he broke. It also changes the user's info to make the PM popup. I commented it out of the script. This is how I did it: I created a new file named 'warnuser.php' (you can also very easily enter it in 'user.php') with this code in it: PHP Code:
PHP Code:
PHP Code:
Code:
alter table user add column warnings int default 0; ======= v0.3 - Fixed a silly PM sending mistake v0.2 - Added a warning counter that bans the user when counter exceeds the limit ======= Hope this comes in handy for some of you. please post any suggestions / improvements you might have.[PHP] |
Looks like a very effective hack. Would be of great use on my site.
Thanks for your work on it. |
Nice idea for a hack, I needed a similar kind of hack :)
Thanks lots :) |
Is there any way of adding something that will track each of this resaons? Like how many times the person has been warned about each?
|
First off this is a great idea.
I think george also has a great idea about logging how many times the user has been warned of breaking the rules so that on a large board you don't have to guess or remember if it was the first or third time. This hack is a good start :) |
I agree, good idea.
will start working on it asap. // EDIT: hack updated |
Make please so that it was possible to do make warning with board, and not just from Admin CP.
|
All works good with this hack.
Although I am curious as to when you ban a user it puts them in the coppa (awaiting moderation) instead of Banned by moderators or such? So infact when you ban a user they are made a coppa user. Any ideas? |
I installed this and it works ok, except that I got the Pm instead of the user.
I noticed this userid,touserid and $bbuserinfo[userid],$touserid and reversed it and now it works fine and sends out to the user instead of me. |
[QUOTE]Originally posted by risestar
I installed this and it works ok, except that I got the Pm instead of the user. I noticed this userid,touserid and $bbuserinfo[userid],$touserid and reversed it and now it works fine and sends out to the user instead of me. |
All times are GMT. The time now is 08:09 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:
|