Edit text show after post edit

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 by 431c9266 on Saturday 10th June 2017, 22:39:00

Replies 10
Fred
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.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

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

  Thanks!

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

Fred
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.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

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

  Thanks!!!!

edit

Last modified by 318c4ad8 on Thursday 1st January 1970, 01:00:00

Fred
Fred  Thursday 8th June 2017, 22:40:52

Added to my Todolist and it ready here ;)
Edit: try date change for my edit post.

Last modified by Fred on Thursday 1st January 1970, 01:00:00
  • Before ask a question, read the documentation.
  • 🎉  Featured as #1 product of the day on Product Hunt
  • Please like in alternativeto.net 👍🏻
  • ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
  • <TextField>, my new CMS project designed by a passionate developer, for developers!
  • My last project Fast⚡︎CMS, a Flat-File cms.
  • I am currently busy 😫.

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

 test

EDIT

Last modified by solved Test on Thursday 1st January 1970, 01:00:00

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

test

EDIT56ee8

Last modified by 7159a562 on Thursday 1st January 1970, 01:00:00

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

reply last edit fixed?
?

Last modified by 50778bb0 on Saturday 10th June 2017, 11:59:00

Suggested Topics
Alexander
11.5K 1
10.8K 3
SurveyBuilder-Admin
23.1K 0
Want to read more? Browse all categories or view latest topics.