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

identicon

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

New reply    

DISCUSSION OF ORIGIN
Fred_4346f29d
Fred#4346f29d

Administrator

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. '

Reply in quote Reply    

identicon
050ba38f

identicon

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

Fred#4346f29d Thanks!

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

Reply in quote Reply    

Fred_4346f29d
Fred#4346f29d

Administrator

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.😎

Reply in quote Reply    

identicon
318c4ad8

identicon

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

Fred#4346f29d Thanks!!!!

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

Reply in quote Reply    

Fred_4346f29d
Fred#4346f29d

Administrator

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

Reply in quote Reply    

identicon
[SOLVED] Test

identicon

[SOLVED] Test Friday 9th June 2017, 16:30:20

Fred#4346f29d test

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

Reply in quote Reply    

identicon
7159a562

identicon

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

test

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

Reply in quote Reply    

identicon
50778bb0

identicon

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

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

Reply in quote Reply    

Suggested Topics View / Reply Forum
Draky started French Flag Quelques remarques, la suite... 73 / 4 International Discussions
Balistic#423165 started French Flag Organisation du forum 574 / 32 International Discussions
df0b2 started solved Archives Page - For Small Forums 159 / 5 Announcements
hello#67a44 started markdown 189 / 6 General Questions
Top