Realblog - turn off the integrated calendar

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
oldnema
Posts: 265
Joined: Wed Jan 21, 2009 5:15 pm
Location: Czech Republic
Contact:

Realblog - turn off the integrated calendar

Post by oldnema » Wed Mar 21, 2012 11:10 am

Hello all, I had a question. Previously, I used the plugin "advancednews" and now I can use instead chtěp modern "realblog". I need to insert about 15 articles from advancednews. The articles are from 2011 to today. Entering through an integrated calendar date in this case is very lengthy.

My question is off somehow integrated calendar and date entered manually?
(Sorry, I use gTransalate)
Josef
Nobody knows how much time he has left ...
http://oldnema.compsys.cz/en/?Demo_templates

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Realblog - turn off the integrated calendar

Post by cmb » Wed Mar 21, 2012 11:46 am

Hi Josef,

the data storage format of RealBlog is very similar to that of Advancednews. So it might as well be possible to reuse the old news-cz.txt file as realblog.txt with some manual changes.

Has anybody already experience with this? Is it possible? What has to be done and considered?

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

oldnema
Posts: 265
Joined: Wed Jan 21, 2009 5:15 pm
Location: Czech Republic
Contact:

Re: Realblog - turn off the integrated calendar

Post by oldnema » Wed Mar 21, 2012 12:03 pm

Christoph,Thank you for your answer, but I would like an integrated calendar off. For example, in Frank's calendar is set this option in the config.
I'm going to test data from the advancednew realblog.
Josef
EDIT:
Latest news from the battlefield - it seems that the data are compatible!
Nobody knows how much time he has left ...
http://oldnema.compsys.cz/en/?Demo_templates

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Realblog - turn off the integrated calendar

Post by cmb » Wed Mar 21, 2012 12:22 pm

Hi Josef,
oldnema wrote:Latest news from the battlefield - it seems that the data are compatible!
That would be nice -- but I can't quite imagine, that it is so! So check carefully for any possible problems (UTF-8 conversion should at least be done, if necessary).

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: Realblog - turn off the integrated calendar

Post by svasti » Thu Mar 22, 2012 9:24 am

Hallo Josef,

I looked into the plugin. You have to change line 626 of admin.php to:

Code: Select all

	tag("input type=\"text\" name=\"realblog_date\" id=\"date1\" value=\"" . $realblog_date . "\" size=\"10\" maxlength=\"12\"") .
Now you can enter the date manually. Even if your date is wrong, it will be corrected on saving... in certain limits.
I enlarged the maxlength to 12, so it is easier to change dates manually.

svasti

oldnema
Posts: 265
Joined: Wed Jan 21, 2009 5:15 pm
Location: Czech Republic
Contact:

Re: Realblog - turn off the integrated calendar

Post by oldnema » Thu Mar 22, 2012 12:49 pm

svasti wrote:Hallo Josef,
I looked into the plugin. You have to change line 626 of admin.php to:

Code: Select all

	tag("input type=\"text\" name=\"realblog_date\" id=\"date1\" value=\"" . $realblog_date . "\" size=\"10\" maxlength=\"12\"") .
Now you can enter the date manually. Even if your date is wrong, it will be corrected on saving... in certain limits.
I enlarged the maxlength to 12, so it is easier to change dates manually.
svasti
Thanks Frank, this modification works as I wanted!
And one more question to Frank, an expert on the calendar: 21st occurs December 2012 end of the world, or is this just a mistake in your calendar? :D
Nobody knows how much time he has left ...
http://oldnema.compsys.cz/en/?Demo_templates

Post Reply