article_end default date?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
dellos
Posts: 67
Joined: Thu 25. Jan 2007, 18:18

article_end default date?

Post by dellos »

Where is the article_end auto date number ?? Well allways when I add the article the default end date is 2010 where should I look for changing it to another date for article default end ??
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: article_end default date?

Post by flip-flop »

The best solution is to update your old version to the latest version.

(I think you will find the end date in older installations in include/inc_lib/article.editcontent.inc.php).

Change:

Code: Select all

$article["article_end"] = "2010-12-31 23:59:59";
to

Code: Select all

$article["article_end"] = date("Y-m-d H:i:s", time() + (3600*24*365*10) );
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
dellos
Posts: 67
Joined: Thu 25. Jan 2007, 18:18

Re: article_end default date?

Post by dellos »

Changed it but still getting the 2010 why ?? :)
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: article_end default date?

Post by flip-flop »

Please edit/change in this two files:

- include/inc_lib/article.editcontent.inc.php

Code: Select all

$article["article_end"] = "2010-12-31 23:59:59";
to

Code: Select all

$article["article_end"] = date("Y-m-d H:i:s", time() + (3600*24*365*10) );
- include/inc_tmpl/article.new.tmpl.php

Code: Select all

$article_end = "2010-12-31 23:59:59";
to

Code: Select all

$article_end = date("Y-m-d H:i:s", time() + (3600*24*365*10) );
I have no version available for a test.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply