Edit infraction points/expiration (3.6-4.x)
This mod will allow you to edit the expiration date and points of infractions through your admin panel. The stock vbulletin installation only supports reversal and deletion, so I think this is a handy addition if you frequently use infractions on your forum. In case someone screws up and adds too many points, issues an infraction instead of a warning, or sets the duration too high, you can use this to make a discrete edit without having to delete and then re-issue the infraction.
This mod doesn't support the editing of other parameters as I didn't see a need for that. If you'd like to add further functionality on your own, you're welcome to modify and re-post this code as long as you give attribution. Should work with vB 3.6.x and above! Note: this mod requires additions directly to vbulletin code. I don't recommend you proceed unless you are comfortable with editing PHP files. Open /admincp/admininfraction.php Add above print_cp_footer(): PHP Code:
// ###################### Start Edit Infraction #######################
PHP Code:
' ' . construct_link_code($vbphrase['infraction_view'], "admininfraction.php?" . $vbulletin->session->vars['sessionurl'] . "do=details&infractionid=$infraction[infractionid]", false, '', true) .
PHP Code:
' ' . construct_link_code($vbphrase['edit'], "admininfraction.php?" . $vbulletin->session->vars['sessionurl'] . "do=editinfraction&infractionid=$infraction[infractionid]", false, '', true) .
PHP Code:
if (!empty($infraction['note']))
PHP Code:
print_label_row($vbphrase['edit'],construct_link_code($vbphrase['edit'], "admininfraction.php?" . $vbulletin->session->vars['sessionurl'] . "do=editinfraction&infractionid=$infraction[infractionid]"));
Download No files for download. Screenshots |