no appearance of News article from 2011

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
moritokyo
New Member
New Member
Posts: 3
Joined: Fri Jan 14, 2011 12:46 pm

no appearance of News article from 2011

Post 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.
Sonya

Re: no appearance of News article from 2011

Post 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
moritokyo
New Member
New Member
Posts: 3
Joined: Fri Jan 14, 2011 12:46 pm

Re: no appearance of News article from 2011

Post 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?
Sonya

Re: no appearance of News article from 2011

Post 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.
moritokyo
New Member
New Member
Posts: 3
Joined: Fri Jan 14, 2011 12:46 pm

Re: no appearance of News article from 2011

Post 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
casidougal
Forum Members
Forum Members
Posts: 98
Joined: Tue Jun 06, 2006 10:08 pm
Location: USA

Re: no appearance of News article from 2011

Post 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!
URAN

Re: no appearance of News article from 2011

Post by URAN »

thanks a lot for your solution! I already was going to go crazy with upgrading from 1.2 to 1.9 :-X
Post Reply

Return to “Modules/Add-Ons”