Edit text show after post edit

identicon
Edit text show after post edit
431c9266 Wednesday 7th June 2017, 22:04:31

Hi when post gets edit, how I will show "edit" next to the date?
edit by admin
Last modified: Saturday 10th June 2017, 22:39:26

Replies 10
Fred_4346f29d
Fred#4346f29d  Thursday 8th June 2017, 00:18:46

Hi,
If you want to display in initial thread, edit just one file.
Open view.php file and edit ligne 25 approximately, search this code:

$tag = isset($topicEntry['tag']) ? $topicEntry['tag']. ' ' : '';

Add this after:
$lastModified = @filemtime(DATA_DIR. 'topic' .DS.$_GET['topic']. '.dat.php');
$lastedited = 'Last edited on: ' .date($config['date_format'], $lastModified);

Now display if you want on this template for example (Ligne 90):
<i class="fa fa-calendar"></i> ' .Util::toDate($_GET['topic'], $config['date_format']). ' / ' .$lastedited. '

identicon
050ba38f  Thursday 8th June 2017, 18:00:50

  Thanks!

You can apply this to posts too?  Any only show if post is edited?

Fred_4346f29d
Fred#4346f29d  Thursday 8th June 2017, 21:46:14

Oops 😯, ignores my modification, because it is currently not possible to have the date of last edition.
Each reply is added to the subject file, which distorts the author's last edition date.
I note it to add it in the next version.😎

identicon
318c4ad8  Thursday 8th June 2017, 22:33:18

  Thanks!!!!

edit
Last modified: Thursday 1st January 1970, 01:00:00

Fred_4346f29d
Fred#4346f29d  Thursday 8th June 2017, 22:40:52

Added to my Todolist and it ready here wink
Edit: try date change for my edit post.
Last modified: Thursday 1st January 1970, 01:00:00

identicon
solved Test  Friday 9th June 2017, 16:30:20

 test

EDIT
Last modified: Thursday 1st January 1970, 01:00:00

identicon
7159a562  Saturday 10th June 2017, 02:07:15

test

EDIT56ee8
Last modified: Thursday 1st January 1970, 01:00:00

identicon
50778bb0  Saturday 10th June 2017, 10:35:07

reply last edit fixed?
?
Last modified: Saturday 10th June 2017, 11:59:01

Suggested Topics
identicon
billy@d587756e started Everybody tests
Open Bar
108 0
Fred_3c4613
Fred#3c4613 started New Flatboard UI
Open Bar
599 8
Fred_f8768
156 0