Quote:
Originally Posted by IceMalee
a suggestion, if ur going to make it with having a 1 for allowing it not to be deleted completely but hidden, why not make it "if 1 then" have a popup box to fill in any comments, i like my mods to put in why they are deleteing something
|
heheh, to make this "quick delete" more "complicated", I give the deletion an extra step, so you will be asked for reason:
add this where you want to have your delete icon located:
HTML Code:
<span id="quickdelete_$post[postid]">
<img src="$stylevar[imgdir_button]/delete.gif" alt="Quick Delete" border="0" />
<script type="text/javascript"> vbmenu_register("quickdelete_$post[postid]", true); </script>
</span>
<div class="vbmenu_popup" id="quickdelete_$post[postid]_menu" style="display:none">
<form enctype="multipart/form-data" name="vbulletinform" style="display:inline;" action="editpost.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="deletepost" />
<input type="hidden" name="p" value="$post[postid]" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">
$vbphrase[delete_this_message]
</td>
</tr>
<tbody id="collapseobj_editpost_delete" style="$vbcollapse[collapseobj_editpost_delete]">
<tr>
<td class="panelsurround" align="center">
<div class="panel">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">
<div class="fieldset">
<div>$vbphrase[delete_message_check_appropriate_option]</div>
<if condition="$show['firstpostnote']">
<div>$vbphrase[deleting_message_deletion_of_thread]</div>
</if>
</div>
<fieldset class="fieldset">
<legend>$vbphrase[delete_options]</legend>
<div style="padding:$stylevar[formspacer]px">
<div>
<label for="rb_del_leave"><input type="radio" name="deletepost" value="" id="rb_del_leave" tabindex="1" checked="checked" />$vbphrase[do_not_delete_message]</label>
</div>
<div>
<label for="rb_del_soft"><input type="radio" name="deletepost" value="delete" id="rb_del_soft" tabindex="1" />$vbphrase[delete_message]</label>
<if condition="$show['physicaldeleteoption'] AND $show['keepattachmentsoption']">(<label for="cb_keepattachments"><input type="checkbox" name="keepattachments" value="1" id="cb_keepattachments" tabindex="1" />$vbphrase[keep_attachments]</label>)</if>
</div>
</div>
</fieldset>
<div class="smallfont">
<div>$vbphrase[reason_for_deletion]:</div>
<input type="text" class="bginput" name="reason" size="50" tabindex="1" title="$vbphrase[optional]" />
</div>
</div>
</div>
<div style="margin-top:$stylevar[cellpadding]px">
<input type="submit" class="button" value="$vbphrase[delete_this_message]" tabindex="1" accesskey="s"/>
</div>
</td>
</tr>
</tbody>
</table>
</form>
</div>
I would put is AFTER
HTML Code:
<a href="$post[editlink]" onclick="return confirm_edit()"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
in postbit template.
credit goes to EvilLS1 for his
Quick Edit hack!