PDA

View Full Version : Miscellaneous Hacks - Edit Note At Bottom


BigJohnny
02-08-2009, 10:00 PM
This is one I came up with on my old board, I dug it up and converted it to 3.7 for my new board. I don't think this has been posted before, if it has I apologize.

For those who don't like the edit note being where it is, or wanting to use this with the Signature Forced to Bottom (https://vborg.vbsupport.ru/showthread.php?t=128951) mod to move the edit note below as well, this is for you.

in template postbit_legacy:

FIND AND REMOVE:

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont">
<hr size="1" style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<em>
<if condition="$show['postedithistory']">
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>.
<else />
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
</if>
<if condition="$post['edit_reason']">
$vbphrase[reason]: $post[edit_reason]
</if>
</em>
</div>
<!-- / edit note -->
</if>


FIND:

<!-- controls -->


BELOW ADD:

<!-- EDIT POST CODE BEGIN -->
<table cellspacing="0" cellpadding="0" valign="center" align="left" height ="15">
<tr>
<td width="430" valign="bottom" align="left">
<!-- edit note -->
<if condition="$show['postedited']">
<div class="smallfont" style="float: bottom;">
<hr style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />
<em>
<if condition="$show['postedithistory']">
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]" 4="posthistory.php?$session[sessionurl]p=$post[postid]">$vbphrase[last_edited_link_by_x_on_y_at_z_postid]</phrase>.
<else />
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
</if>
<if condition="$post['edit_reason']">
$vbphrase[reason]: $post[edit_reason]
</if>
</em>
</div>
</if>
<!-- / edit note -->
</td>
</tr>
</table>
<!-- EDIT POST CODE END -->


That should be it. I haven't fully tested this, but I haven't seen any problems yet. If you don't like the line above it, simply remove

<hr style="color:$stylevar[tborder_bgcolor]; background-color:$stylevar[tborder_bgcolor]" />


Remember to click MARK AS INSTALLED (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=204703) if you use this mod. I often go back and change or update things, tweak stuff, or improve the look. If you don't mark it as installed you won't be notified of updates.

lazydesis
02-09-2009, 01:49 AM
nice hack .. looks better now .. thanks.

BigJohnny
08-12-2010, 01:16 AM
working for 3.8.3 also