Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
expiry date for news?

 
Reply to topic    Forum Index » Suggestions View previous topic
View next topic
expiry date for news?
Author Message
Designer



Joined: 19 Oct 2007
Posts: 11

Post expiry date for news? Reply with quote
Is it possible to set the expiry date for news article,
the date when article will be automatically deleted?
Mon Oct 22, 2007 6:51 pm View user's profile Send private message Visit poster's website
Guest








Please login to hide the ads.

Designer



Joined: 19 Oct 2007
Posts: 11

Post Reply with quote
Anyone?
Thu Oct 25, 2007 7:17 pm View user's profile Send private message Visit poster's website
D72



Joined: 22 Feb 2007
Posts: 217
Location: NL

Post Reply with quote
Well i think it's not possible that an article will be deleted automaticly after a period of time.
I do know that it's possible to setup a template so future articles will be visible as it's not shown default.
After the giving date is reached/expired of a future article, the article is placed automaticly in an "archive".
But that's not really an answer on your question, sorry.
Maybe there's a combination or a hack to change whats in this topic:
click
For creating a real expiring date you have to wait for someone else.
I think it's an interesting feature though.
Thu Oct 25, 2007 8:45 pm View user's profile Send private message
Designer



Joined: 19 Oct 2007
Posts: 11

Post Reply with quote
Thanks D72,
I have managed to adjust script to make article invisible automatically after certain date, but had problems with categories, because they still show articles regardless of time. So I have to give up ( for now )
Any ideas?
Fri Oct 26, 2007 10:01 am View user's profile Send private message Visit poster's website
D72



Joined: 22 Feb 2007
Posts: 217
Location: NL

Post Reply with quote
To order your news other then time you could use your include like this. The include below show your articles ordered by the date.
Code:

<?php
$sort = array('date', 'DESC');
$schedule = true;
$category = "2";
$number = 5;
$template = "YourTemplate";
include $cutepath.'/show_news.php';
?>


Here by category
Code:

<?php
$sort = array('category', 'DESC');
$schedule = true;
$category = "2";
$number = 5;
$template = "YourTemplate";
include $cutepath.'/show_news.php';
?>


Here by title
Code:

<?php
$sort = array('title', 'DESC');
$schedule = true;
$category = "2";
$number = 5;
$template = "YourTemplate";
include $cutepath.'/show_news.php';
?>


and so on...

And change this one in the show.news.php
Click
Otherwise the whole future date thing won't work.
Hope that this one brings you closer to your needs. In understand you want to expire articles automaticly after a certain giving date. But as far as i know it's not possible (yet)
Fri Oct 26, 2007 7:00 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Suggestions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.