The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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] Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Looks like a very effective hack. Would be of great use on my site.
Thanks for your work on it. |
|
#3
|
||||
|
||||
|
Nice idea for a hack, I needed a similar kind of hack
![]() Thanks lots
|
|
#4
|
||||
|
||||
|
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?
|
|
#5
|
|||
|
|||
|
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
|
|
#6
|
|||
|
|||
|
I agree, good idea.
will start working on it asap. // EDIT: hack updated |
|
#7
|
|||
|
|||
|
Make please so that it was possible to do make warning with board, and not just from Admin CP.
|
|
#8
|
|||
|
|||
|
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? |
|
#9
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
[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. |
![]() |
|
|