***CORRECTED***
1.- Blocking:
Replace this line:
osc_add_hook('posted_item', 'cust_disable_posted_item');
with
osc_add_hook('posted_item', 'cust_disable_posted_item');
osc_add_hook('edited_item', 'cust_disable_posted_item');
2.- Flash message:
Replace:
function cust_admin_approval_message($message) {
$message = str_replace(_m('Check your inbox to validate your listing'), 'Your ad will be published after admin\'s approval', $message);
return $message;
}
with:
function cust_admin_approval_message($message) {
$message = str_replace(_m('Check your inbox to validate your listing'), 'Your ad will be published after admin\'s approval', $message);
$message = str_replace(_m("Great! We've just updated your listing"), 'Your updated ad will be visible after admin\'s approval', $message);
return $message;
}
Now, for the approval mail you'll have to use the same template, so look for a formula suitable for both cases.
Regards