Page 1 of 1
no appearance of News article from 2011
Posted: Fri Jan 14, 2011 1:09 pm
by moritokyo
I have been an user of CMS Made Simple for 4 years. It's a great CMS and it helped me a lot.
Until last December, module News worked fine and no problem.
However when I tried to post a new article two days ago, it didn't appear at all, although
the "you-have-succeeded" message appeared on the admin page.
Are there anyone who has a solution of this problem?
I happened to find out "starting day" and "closing day" pull-down menu were limitied to "2010"
on the "add new article" page. No 2011.
Is this related with this problem? I do appariciate your help in advance.
Re: no appearance of News article from 2011
Posted: Fri Jan 14, 2011 2:24 pm
by Sonya
You should upgrade as such problems will come again and again.
The solution for your problem is file modules/News/templates/editarticle.tpl
Re: no appearance of News article from 2011
Posted: Fri Jan 14, 2011 3:11 pm
by moritokyo
Thank you very much for your advice.
I have already checked out "Defolt form template" and rewrote the following line on it to 2020 and uploaded, but nothing has changed.
------------------------------------------------------------------------------------------------------------------------------------------
<div class="pageoverflow">
<p class="pagetext">{$enddatetext}:</p>
<p class="pageinput">{html_select_date prefix=$enddateprefix time=$enddate start_year=2000 end_year=2020} {html_select_time prefix=$enddateprefix time=$enddate}</p>
</div>
----------------------------------------------------------------------------------------------------------------------------------------------
Also I copied a new version' file of "News" to the old one, but the pull-down menu of posted year has not changed too.
I might make some errow to do this.
Woudl you advice me again?
Re: no appearance of News article from 2011
Posted: Fri Jan 14, 2011 5:43 pm
by Sonya
moritokyo wrote:Thank you very much for your advice.
I have already checked out "Defolt form template" and rewrote the following line on it to 2020 and uploaded, but nothing has changed.
------------------------------------------------------------------------------------------------------------------------------------------
<div class="pageoverflow">
<p class="pagetext">{$enddatetext}:</p>
<p class="pageinput">{html_select_date prefix=$enddateprefix time=$enddate start_year=2000 end_year=2020} {html_select_time prefix=$enddateprefix time=$enddate}</p>
</div>
----------------------------------------------------------------------------------------------------------------------------------------------
Woudl you advice me again?
Mori, try to use difference relative to current year, see an example:
Code: Select all
<p class="pageinput">{html_select_date prefix=$enddateprefix time=$enddate start_year="-10" end_year="+15"} {html_select_time prefix=$enddateprefix time=$enddate}</p>
PS: Your posts should be first approved before you see them in the board. This is an antispam feature for any user with less than 10 posts in this forum. So, be patient if you write a reply and wait till it is approved.
Re: no appearance of News article from 2011
Posted: Sat Jan 15, 2011 4:32 am
by moritokyo
Dear Sonya san,
Thank you very very much for your help. I modified the lines of editarticle.tpl file as you suggested, that is to change it to "-10" and "+15".
After uploaded the file, pull-down menu indicated the year 2011 and posting a new article succeeded.
Finally resolved my problem.
Thank you again for your kind help.
Mori
Re: no appearance of News article from 2011
Posted: Wed Jan 19, 2011 2:49 pm
by casidougal
Thank you Sonya . . . what an easy fix. To summarize the fix, just open modules/news/templates/editarticle.tpl and change whereever it says end_year=2010 to a later date.
Yes, we should all upgrade but I've got a few clients who are with an old version and this is a great stop gap measure until they're ready to pay me for my time to do the upgrade
Thanks again!
Re: no appearance of News article from 2011
Posted: Mon Feb 14, 2011 9:24 am
by URAN
thanks a lot for your solution! I already was going to go crazy with upgrading from 1.2 to 1.9
