Topic Closed
c-dark
1 Posts

Hello, first, I must say that I really like this fine flat CMS ;-)

I know this has been discussed befor and someone created simpleBlog1 where it is possible to edit the Post Date,

but as this is based on the previous version of simple blog,

I wonder if someone is able to give a little code for the

SimpleBlogCommon.php  that makes the post-date updating automatically when editing active post or draft.
If I edit a post, I simply want it to be displayed (Order) at the top, naturally.

I even cannot COPY an existing post to make this one get the current Date.

You know I'm using this addon as a News/Date list.

Thanks a lot in Advance folks

Claudy Dark

 

Edited: 5 years ago#7328

fly06
263 Posts
18.8K Downloads
1 Themes
8 Plugins

Hello,

Add this line :

$posts[$post_index]['time'] = time();

just after this one:

$posts[$post_index]['content'] = $content;

in the SaveInline() and SaveEdit() methods of the SimpleBlogCommon class.

Should do the trick.

5 years ago#7329

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register