hi,

i need to expire the node within 30 day.once it expired i send an email to node author.for this i plan to rules module.In this,i need to compare the cck field value with the node posted date.if it is true i send a email with expired node link.for this i need php code for comparison.any body knows plz share with me.

thanks

Comments

FortEZ’s picture

How do you plan to trigger your rule? You said that you will be using Rules to send the email. However, in order to create a rule, you need to determine how the rule will be triggered. Comparing the current date with the post date of a node, is not very hard. The really tricky part is: how will the rule be triggered?

If you can give me an answer to this question, I will probably be able to give you more information on how to compare the 2 dates.

vasan.85’s picture

during node creation,end user have an option like how many days this node will be active (ie)25,45 like.user select any one of the option from the list.In rules module,i plan compare the age of the node by calculating node created date and field value that user at the time of the node creation.i planed like for activating the trigger.
thanks