Date and time instead of just date?

rbl - January 30, 2009 - 01:07
Project:Node Expire
Version:6.x-2.02
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:time
Description

Hi!
Is there any way to define a date and time instead of just a date? Would like to control the time at which node would expire.

Thanks!
Ricardo

#1

brmassa - January 31, 2009 - 01:08
Issue tags:-expire

Ricardo,

great. the only problem that i dont know how to include this and use a nice UI javascript (which is not a requirement, i know, but its has a great role on the module success).

so thats the deal: if you can provide some patch, i will take a good look and might commit it. If PHP is not your specialty, i will try to implement this feature one day when get some free time ok?

Anyone else that is available might try this, it is a quite easy job. wont require much coding i think.

regards,

massa

#2

rbl - January 31, 2009 - 01:29

Any way to include it without a nice js UI? =)

I can code it myself if you give me a general idea what's involved in it. I really need this feature and I'm willing to sacrifice the UI for the function.

Ricardo

#3

brmassa - January 31, 2009 - 05:28

Ricardo,

of course UI is not a requirement. you can build the patch and i will see it for sure. BUT i need a way that admin might disable the time feature (in fact, it should be disabled by default) and should not make any interference on the current UI (should not add any bug).

You might need to add an checkbox option on ntype.inc file and saving it. during nodeapi.inc's validate and submit, as well the form_alter, the time must be considered.

good programming

regards,

massa

#4

brmassa - January 31, 2009 - 05:30

note #1: the current code consider the time that the node is created. If the node was created at 9h30, the node will expire at 9h30 at the given date.

note #2: the cron.php should be run on smaller intervals if you enable time, of course.

#5

andrewsuth - February 25, 2009 - 19:07

Hi Ricardo,

This is the same feature I was thinking would improve this module a lot. Well done for submitting it and good luck with the development.

I will be interested in knowing how it progresses.

Andrew

 
 

Drupal is a registered trademark of Dries Buytaert.