Topic Closed
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: 6 years ago#7328

263 Posts
1 Themes
8 Plugins


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.

6 years ago#7329

Topic Closed



elFinder 2.1.50 in Upcoming Release

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

Typesetter 5.1

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... 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