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: 4 years ago#7328

fly06
263 Posts
18.1K 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.

4 years ago#7329

Topic Closed

 

News

Typesetter 5.1
8/12/2017

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

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register