Edit text show after post edit
identicon
431c9266
DISCUSSION OF ORIGIN

431c9266 Wednesday 7th June 2017, 22:04:31

Edit text show after post edit

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
DISCUSSION OF ORIGIN
Fred_4346f29d
Fred#4346f29d

Administrator

Fred_4346f29d

See their activity.

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

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

Administrator

Fred_4346f29d

See their activity.

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

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

  Thanks!!!!

edit
Last modified: Thursday 1st January 1970, 01:00:00
Fred_4346f29d
Fred#4346f29d

Administrator

Fred_4346f29d

See their activity.

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

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

 test

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

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

test

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

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

reply last edit fixed?
?
Last modified: Saturday 10th June 2017, 11:59:01
Suggested Topics View / Reply Forum
c40bc started Rating 195 / 5 Feature Requests
Fred#f8768 started plugin Identicon (natively include) 354 / 10 Resources
kokoo started Pseudo and email and Administrator 115 / 3 General Questions
Cyrille BORNE started πŸ‡«πŸ‡· Erreur sur le flux RSS du forum 121 / 3 International Discussions
Top