novacreative
Member
Joomla 3.3
Fabrik 3.1
Last Github update: 8/15
This is a bidding site with a limit on how long a project is up for bid.
date time (standard Fabrik element) = date project submitted
fb_projects___tender_timeframe = # of days bidding is open (it's a radio button with # of days as value)
My eval code:
$int = (int) '{fb_projects__tender_timeframe_raw}';
$limit='- '.$int.' days';
$today=date("Y-m-d");
$terminus=date ('Y-m-d',strtotime($today.$limit));
return $terminus;
If I substitute a value for $int, like $int='10';, the filter works. The problem is clearly with the first line, which is taken from this WIKI page on Eval coding.
Is the eval box for pre-filters working with placeholders? Is the syntax in the WIKI wrong (though I've tried double quotes, without quotes, without brackets, etc., etc., etc.).
Fabrik 3.1
Last Github update: 8/15
This is a bidding site with a limit on how long a project is up for bid.
date time (standard Fabrik element) = date project submitted
fb_projects___tender_timeframe = # of days bidding is open (it's a radio button with # of days as value)
My eval code:
$int = (int) '{fb_projects__tender_timeframe_raw}';
$limit='- '.$int.' days';
$today=date("Y-m-d");
$terminus=date ('Y-m-d',strtotime($today.$limit));
return $terminus;
If I substitute a value for $int, like $int='10';, the filter works. The problem is clearly with the first line, which is taken from this WIKI page on Eval coding.
Is the eval box for pre-filters working with placeholders? Is the syntax in the WIKI wrong (though I've tried double quotes, without quotes, without brackets, etc., etc., etc.).