Log in

View Full Version : Move "deletepostoption" to bottom in 'editpost'


Tweak589
09-24-2012, 07:50 PM
When I am editing a post as administrator or any user who has privileges to delete a post, the 'deletepostoption' section is at the very top. I would much prefer if the delete post section was at the bottom. I need some help moving the "deletepostoption" to the bottom below the "Additional Options" section where you manage attachments and subscriptions.

I tried to move this code around from the "editpost" template but my limited knowledge of editing this is limited and it returns "in-line" errors:
<vb:if condition="$show['deletepostoption']">
<form class="vbform block" action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}editpost.php?do=deletepost&amp;p={vb:raw postid}" method="post">
<h2 class="blockhead">{vb:rawphrase delete_this_message}</h2>
<div class="blockbody formcontrols">
<h3 class="blocksubhead">{vb:rawphrase delete_message_check_appropriate_option}</h3>
<div class="section">
<div class="blockrow">
<dl class="dep_group">
<dt><label for="delete"><input type="checkbox" class="dep_ctrl" id="delete" name="dodelete" value="1" tabindex="1" /> {vb:rawphrase delete_post_in_manner}:</label></dt>
<dd id="delete_deps">
<ul class="group checkradio">
<vb:if condition="$show['physicaldeleteoption']">
<li><label for="deltype_hard"><input type="radio" id="deltype_hard" class="dep_ctrl" name="deletepost" value="remove" tabindex="1" /> {vb:rawphrase physically_remove_message}</label></li>
</vb:if>

Attached is default look, and the new look I am trying to make.