
01-26-2004, 07:53 PM
|
 |
|
|
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Gary W
This is a really easy hack to install and use, and it allows you to delete any post with only one click, instead of going through the editing process and then selecting delete, and then confirming, etc.
Instructions
Open up the postbit template and find
PHP Code:
<if condition="$post['editlink']">
Below, add:
PHP Code:
<form action="editpost.php" method="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>
Open includes/functions_showthread.php and find:
PHP Code:
// hide users in Coventry from non-staff members
Above, add:
PHP Code:
$deletebutton = 1; // set to 1 to only hide the post, or 0 to permanently delete the post
Done! 
|
well done
|