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

Before ask a question, read the documentation.
Please like in alternativeto.net 👍🏻
╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!

Prétendre que votre droit à une sphère privée n'est pas important parce que vous n'avez rien à cacher n'est rien d'autre que dire que la liberté d'expression n'est pas essentielle car vous n'avez rien à dire.
-- E. Snowden

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

Before ask a question, read the documentation.
Please like in alternativeto.net 👍🏻
╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!

Prétendre que votre droit à une sphère privée n'est pas important parce que vous n'avez rien à cacher n'est rien d'autre que dire que la liberté d'expression n'est pas essentielle car vous n'avez rien à dire.
-- E. Snowden

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

  Thanks!!!!

edit

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

Fred_4346f29d
Fred  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

Before ask a question, read the documentation.
Please like in alternativeto.net 👍🏻
╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!

Prétendre que votre droit à une sphère privée n'est pas important parce que vous n'avez rien à cacher n'est rien d'autre que dire que la liberté d'expression n'est pas essentielle car vous n'avez rien à dire.
-- E. Snowden

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