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
idea, would also prevent any accidental deleteing
if u want it to ask for confirmation before u delete do this,
Open up the postbit template and find
PHP Code:
<if condition="$post['editlink']">
Below, add:
PHP Code:
<form action="editpost.php" method="post" onSubmit="return confirm('Are you sure you want to delete this post')">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="p" value="$post[postid]" />
<input type="hidden" name="do" value="deletepost" />
<input type="submit" name="deletepost" value="<if condition="$deletebutton">delete<else />remove</if>" id="rb_del_soft" tabindex="1" class="button" />
</form>
|