I've added a delete button to mine.
In the forumhome_pmshow template, find (near the bottom):
Code:
<td class='tfoot' colspan='2'><b>Options:</b> <a href='private.php?{$session['sessionurl']}&do=showpm&pmid={$from['pmid']}'>Read This PM</a> | <a href='private.php?{$session['sessionurl']}'>Go To Your Inbox</a></td>
Replace with
Code:
<td class='tfoot' colspan='2'> <table><tr><td><a href='private.php?{$session['sessionurl']}&do=showpm&pmid={$from['pmid']}'>Read This PM</a> | <a href='private.php?{$session['sessionurl']}'>Go To Your Inbox</a> | <form action="private.php" method="post"><label for="deletepm"><input type="checkbox" name="pm[$from[pmid]]" id="deletepm" value="true" />Tick Here To Delete This Message</input> <input type="hidden" name="s" value="$session[sessionurl]" /> <input type="hidden" name="do" value="managepm" /> <input type="hidden" name="dowhat" value="delete" /><input type="submit" class="button" value="And Click Here To Confirm" accesskey="s" /></form></td></tr></table></td>
You can change the deletion and button text as you wish.
Also, I've customised the "Show This PM" link to show only if the PM exceeds 400 characters (which is the plugin's default crop).
To do this:
1. Edit the plugin named "New PM On Forum Home (If Unread) [Main]"
Find:
Code:
$from['message'] = substr($from['message'],0,400) . "...";
Add under:
Code:
$show['pmcropped'] = true;
2. In template forumhome_pmshow,
Find
Code:
<a href='private.php?{$session['sessionurl']}&do=showpm&pmid={$from['pmid']}'>Read This PM</a> |
and stick <if condition="$show['pmcropped']"> in front and </if> afterwards, so it looks like this:
Code:
<if condition="$show['pmcropped']"><a href='private.php?{$session['sessionurl']}&do=showpm&pmid={$from['pmid']}'>Read This PM In Full</a> | </if>