The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#362
|
||||
|
||||
After testing this extensively, I find the warn does not send a PM like it is supposed to. No error is given (that I know of).
Any idea why this isn't working? What should I check? Everything else (including automatic ban after x warns) works perfectly! |
#363
|
|||
|
|||
Quote:
|
#364
|
|||
|
|||
Quote:
PHP Code:
PHP Code:
HTML Code:
Dear $user[username], You have been warned for one of your posts, which violated the Forums Rules. The reason you have been warned is because [b][i] $warn_type[warn_desc] [/i][/b](Warning Type = $warn_type[warn_name]), for which you have been given [b] $warn_type[warn_points] [/b] point(s). The post for which you are warned can be seen [URL="$vboptions[bburl]/showthread.php?p=$_POST[post]"]here[/URL]. The admin/moderator who warned you, entered this comment: ======================================= [i]$_POST[comment][/i] ======================================= Your total Warning Level at the moment is: [b] $level [/b] point(s). If you reach the maximum of [b]$warn_options[points_before_banned][/b], you will be banned from the Forums, for [b]$warn_options[banned_limit][/b] days. To see details about all the warnings you have received, until now, please click [URL="$vboptions[bburl]/Warn.php?do=ViewMyWarnings"]here[/URL]. Please reply back if you have a dispute. Rgds --------- John |
#365
|
|||
|
|||
Quote:
$from=$bbuserinfo['userid']; You may change that to something like $from=1 which will make the PM look as if it came from the admin. I haven't tried it, but it should work. Rgds ---------- John |
#366
|
|||
|
|||
Quote:
It shouldn't be too difficult, my only concern is if the warning types will be the same or not. If they are not, (if you cannot have them together with your normal, per-post warning types), then I do not see it possible, at least with my time restrictions. Also, being a new admin, how to you get to know that someone send a nusty PM? Do members forward that to you? Also, I need to think where that 'non-post-related' link will be, in other words, where will the "Warn XUZ" link will be, for this kind of warnings. Ideas? Rgds |
#367
|
|||
|
|||
Quote:
It can be done, all you have to do is pass the right parameters to the form, but I do not have the time to do it. Sorry Remi. |
#368
|
|||
|
|||
As someone suggested, a "Prune Old Warnings" functionality would be a nice addition. So I did it.
The file attached has step-by-step instructions, on how to do it. Basically, it asks you how many days warnings do you want to keep (the last 30 days for example), and then goes on and deletes all INACTIVE warnings, issued before the last 30 days. Please note that the function works with the version of my mods, which maintains all warnings as a historical file, making them inactive when they are removed or when they mature. I hope you enjoy. Rgds ------------ John |
#369
|
|||
|
|||
Quote:
Quote:
I think I can do it if only someone can get me started on how to construct the link: /Warn.php?&do=WarnUser&id=$VARID&post=$VARPOST&warn ingid=$VARID Thanks |
#370
|
|||
|
|||
Quote:
I'm thinking aloud here, but here is how I think this could be done, so at least the users don't know who warned them. * Send the PM from a static username. Either the admin or some "WarnBot" will suffice * Comment out/remove the portions of the row templates that display the moderator's username I will look into how to achieve this, and if successful will report the results if nobody beats me to it. |
#371
|
|||
|
|||
OK, here is what I came up with. I have attached the file that has information on what to do to make the PM come from a static user and how to make the person issuing the warning disappear from "View my warnings"
This is my first real stab at modifying anything beyond what I've downloaded, so if I did something wrong, please let me know, as I wish to become more proficient in this area. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|