Hot answers tagged

4

I thinks is no such function from the box. You can make ext. I made small example for you. This ext. don't have any ui for settings, so you will need to setup what you want in if ($meta['status'] != $status_prev && $meta['status'] == "closed" ) { $this->EE->api_channel_entries->meta['expiration_date'] = $this->EE->localize->...


4

Inside your Matrix tag pair this will work: {if expiration_date_column > current_time} {!-- not expired yet, put your row html here --} {/if} Or you can use the search parameter on the Matrix opening tag. This is probably better if you only want your result set to include unexpired rows: {your_matrix_field search:expiration_date_column=">{...


2

You can try to use search: parameter with combination with {current_time}* {my_matrix_field search:date=">{current_time"}"} usually date fields is keep data in timestamp format, so it must work. Unlike the rest of the Standard Global Variables, {current_time} is parsed very early on in the Template parser, which allows you to make dynamic use of it in ...


2

EE's "secure forms" feature requires that all POST requests contain a valid XID (or crsf_token in 2.8+). The POST back from your gateway contains no such token, hence the issue. So you either need to disable secure forms (not recommended), or register an action for your payment plugin, and set crsf_exempt to 1 when you do so. Then use that action URL for ...


2

Well, you have a conditional that must be satisfied in order to achieve your redirect. In order to accommodate your requirements, you must address every condition and you are not (though you may think you are!). You see, if you don't set an expiration date, that value should output as empty. Think empty... zero... ExpressionEngine is looking at that ...


1

The solution I have implemented - as laid out by @CreateSean and @foamcow - is to use Zoo Visitor and EE's channel expiry field for each members' Zoo Visitor channel entry. Zoo Visitor holds the entered expiration date for the logged in user's entry as a global variable... {visitor:global:expiration_date} which I used in the conditional to automatically ...


1

I use auto_expire for this. http://devot-ee.com/add-ons/auto-expire ... automatically expire new entries. It adds a predefined amount of time to the entry date auto_expire just runs an SQL query on entry_date > offset change status. p.s. +1 for swift max_lazar on status change add-on, set expiration_date on status change.


Only top voted, non community-wiki answers of a minimum length are eligible