![]() |
i love this hack
used it to ban a hacker. not a vb hacker a bad guy "mess up your site" hacker |
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? |
Quote:
Quote:
Quote:
Quote:
|
Quote:
Im wondering if i should just place a link there instead of useing the templates? |
Quote:
Find Code:
if($length = -1) { Code:
if($length == -1) { Nice work btw, i like it a lot. |
Harumph....another bug! :(
Yeah....I'm gonna update the files in a second.... |
Quote:
So i did the following. In warn.php find: Code:
} elseif($towarn['warninglvl'] >= $WarnBanThreshold) { Code:
$checkwarn = $DB_site->query_first("SELECT postid FROM warning WHERE postid='$postid'"); Create a new template called warn_alreadywarned with the following contents: Code:
This user has already has a current warning for this post. |
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! |
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?
|
Quote:
Code:
eval("\$mailed = vbmail(\"".addslashes($towarn['email'])."\",\"".addslashes($subject)."\",\"".addslashes($msg)."\");"); Code:
eval("\$mailed = vbmail(\"".addslashes($towarn['email'])."\",\"".addslashes($subj)."\",\"".addslashes($msg)."\");"); |
All times are GMT. The time now is 07:06 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:
|