I installed this hack last night but did not work at all. Following the posts of this thread I managed to make it delete messages (as it used to) but not to send emails.
Following the logic of the problem, I think I found a possible solution (which works very well for me).
In the delete.php the logic applied by the hack is to check if any of the checkboxes are checked and then delete the messages and after that email them.
I moved the emailing code which starts with:
code:
// ----------------------------------------------------------------------------
// If they chose "Email PM" then we email the message instead of deleting it
if ($pmemail == "{$ubbt_lang['PM_EMAIL']}") {
in the instructions just below the line ~39
code:
$Total=0;
and after that block of code I changed the:
code:
if ($deletecheck == "{$ubbt_lang['DELETE_CHECKED']}")
to
code:
elseif ($option == "{$ubbt_lang['DELETE_CHECKED']}")
This way once you select messages and click on the Email PM button, the messages will be sent to you via email (provided that you have completed the rest of the steps outlined in the instructions of this hack).
Once you return back to the messages screen you will have to select back the ones you emailed and click delete to delete them.
This is a feature that I wanted for my users. If you want to select messages and by clicking Email PM them to be emailed and deleted you need to first change the:
code:
$ubbt_lang['PM_EMAIL'] = "Email PM";
to
code:
$ubbt_lang['PM_EMAIL'] = "Email and Delete checked";
and change the
code:
elseif ($option == "{$ubbt_lang['DELETE_CHECKED']}")
to
code:
if ($option == "{$ubbt_lang['DELETE_CHECKED']}")
Warm regards
Nikos