I've just updated the hack with a couple small bug fixes. If you use the "Submit to Quotes" feature for posts and have context enabled, you should replace your quotes.php and admincp/quoteadmin.php files with the new copies. Also, in the style manager in your administrator control panel, edit the template quote_addquote and delete all instances of maxlength="75"
JimpsEd -
In admincp/quoteadmin.php find:
PHP Code:
$deleted[] = intval($quoteid);
Below that, add:
PHP Code:
SendPM('Your quote "' . $quote[$quoteid] . '" has been rejected.', 'Quote ' . intval($quoteid) . ' rejected.', intval($user[$quoteid]), $bbuserinfo['userid']);
In the same file, find:
PHP Code:
print_input_row($vbphrase['author'], 'author[' . $quote['quoteid'] . ']', $quote['author'], 0);
Below that, add:
PHP Code:
construct_hidden_code('user[' . $quote['quoteid'] . ']', $quote['userid']);
In the same file, find:
PHP Code:
$context = &$_REQUEST['context'];
Below that, add:
PHP Code:
$user = &$_REQUEST['user'];
Finally, in the same file, find:
PHP Code:
}
elseif ($action == -1) {
Above that, add:
PHP Code:
SendPM('Your quote "' . $quote[$quoteid] . '" has been approved.', 'Quote ' . intval($quoteid) . ' approved.', intval($user[$quoteid]), $bbuserinfo['userid']);
Note: I haven't tested this, so keep a backup of your quoteadmin.php file just in case.
EDIT: I don't know where that SendPM function came from, so in admincp/quoteadmin.php, find:
PHP Code:
require_once('./global.php');
and add your code below that.