UBB.Dev
Posted By: Gizmo [7.x] Force Post Edited Display - 04/27/2007 1:50 AM
Some users prefer the ability to force their users to show if posts have been edited; furthermore some users want to still allow users to still be able to put in an edit reason...

Well, with a quick template edit (and a new language file entry) it's quite simple.

In templates/default/editpost.tpl
Find:
Code
<input type="checkbox" value="1" name="markedit" checked="checked" class="form-checkbox" /> {$lang.MARK_EDIT}
<input type="text" name="editreason" class="form-input" />

Replace With:
Code
{$lang.EDIT_REASON} <input type="hidden" value="1" name="markedit" />
<input type="text" name="editreason" class="form-input" />


In languages/english/editpost.php
Find:
Code
$ubbt_lang['MARK_EDIT'] = "Mark as Edited? Reason for edit:";

Add After:
Code
$ubbt_lang['EDIT_REASON'] = "Reason for edit:";
© UBB.Developers