The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Mike's Warning System 1.0 Details »» | |||||||||||||||||||||||||
Hello all. This is a sort of alternative to g-force2k2's Warnings System Hack. He gets all credit for the idea.
Before anyone starts to accuse me of trying to steal his glory, let me explain. The admin of a well sized board that I super-mod asked me to revise g-force2k2's warning system (it was already installed). I downloaded it, looked through it, and decided that I couldn't: he requested that people respect his hack, and not modify it. So, I didn't, and decided to take a swing at it. Since people don't like change, I made it look the same as the original, but work differently. Features:
That's all I can think of now.... Stats:
Stipulations
The package is attached. Screenshots are zipped next. Please click install if you use it. If you are upgrading from g-force2k2's verison, use MWS-Upgrade.txt, and warn-upgrade.php. Show Your Support
|
Comments |
#42
|
||||
|
||||
i love this hack
used it to ban a hacker. not a vb hacker a bad guy "mess up your site" hacker |
#43
|
|||
|
|||
With this hack installed it is now possible to warn a user more than once for the same post.
Would it be possible for the Add Warning link not to be displayed once a warning has already been added for that post? or at least make it not possible to warn for the same post more than once, with multiple moderators a single post can rack up the points when everyone warns for it. Also, everytime a warning is issued, in the notification message it shows the warning will expire on Never, no matter what duration is entered, it allways says Never. This is only in the message, the actual warning does expire when it is supposed to. Any suggestions? |
#44
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
|
#45
|
|||
|
|||
Quote:
Im wondering if i should just place a link there instead of useing the templates? |
#46
|
|||
|
|||
Quote:
Find Code:
if($length = -1) { $end_date = "never"; } Code:
if($length == -1) { $end_date = "never"; } Nice work btw, i like it a lot. |
#47
|
|||
|
|||
Harumph....another bug!
Yeah....I'm gonna update the files in a second.... |
#48
|
|||
|
|||
Quote:
So i did the following. In warn.php find: Code:
} elseif($towarn['warninglvl'] >= $WarnBanThreshold) { standarderror("Sorry, but that user already has $WarnBanThreshold points or more."); } Code:
$checkwarn = $DB_site->query_first("SELECT postid FROM warning WHERE postid='$postid'"); if($checkwarn[postid] != "" && $confirmwarn != 1) { eval("standarderror(\"".gettemplate('warn_alreadywarned')."\");"); exit; } $confirmwarn = 0; Create a new template called warn_alreadywarned with the following contents: Code:
This user has already has a current warning for this post. Do you <B>really</b> want to warn this user again for the same post? <br><br> <table border="0" cellspacing="0" cellpadding="0" width="100%"><tr> <td align="left"><smallfont> <a href="warn.php?s=$session[sessionhash]&action=new_warning&confirmwarn=1&postid=$post[postid]">[Continue with Warning] </a></smallfont></td> <td align="right"><smallfont> <a href="javascript:history.back(1)"> [Back to Thread]</a></smallfont></td></tr></table> |
#49
|
||||
|
||||
Nice little addon Tenpit..
I may give it a whirl. I have staff that are eager to press the warn button, and ocasionally a user ends up warned twice for the same post.. Thanks for the bugfix too! |
#50
|
|||
|
|||
great hack. installed with no problems. just one point tho, when the system emails out the user to tell them they have been naughty the subject line is empty. this causes a problem for me as my mail server blocks any mail with a blank subject line. can I hardcode a subject line in and if so where as its obviously not picking up the template for subj?
|
#51
|
|||
|
|||
Quote:
Code:
eval("\$mailed = vbmail(\"".addslashes($towarn['email'])."\",\"".addslashes($subject)."\",\"".addslashes($msg)."\");"); Code:
eval("\$mailed = vbmail(\"".addslashes($towarn['email'])."\",\"".addslashes($subj)."\",\"".addslashes($msg)."\");"); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|