Previous Thread
Next Thread
Print Thread
Rate Thread
[7.x] Force Post Edited Display #313957
04/26/2007 5:50 PM
04/26/2007 5:50 PM
Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
Gizmo Online tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Online Tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,947
Portland, OR, USA
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.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Sponsored Links

Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with, and recommend, the following Web Hosts:
· Stable Host
· Blue Host
· Interserver.net
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,947
Joined: January 2000
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,470
Posts293,533
Members13,801
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,947
Greg Hard 5,533
Top Posters(30 Days)
isaac 10
Zarzal 3
Today's Statistics
Currently Online 893
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 23
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.0
(Release build 20190122.dev)
PHP: 5.4.45 Page Time: 0.025s Queries: 14 (0.008s) Memory: 3.1616 MB (Peak: 3.4146 MB) Data Comp: Zlib Server Time: 2019-01-24 00:04:52 UTC