Mark, I had this extension working perfectly on my local development server (MAMP) then when I migrated the ee installation / db to my mediatemple server, I am getting some weird php errors on parsing of my template. Here are the php errors that show up on the page:Notice: strtotime(): Called with empty time parameter in /home/httpd/vhosts/surinahart.com/httpdocs/system/extensions/ext.custom_fields_in_ee_tags.php on line 203 Notice: strtotime(): Called with empty time parameter in /home/httpd/vhosts/surinahart.com/httpdocs/system/extensions/ext.custom_fields_in_ee_tags.php on line 205
I was having the same error - I think everyone should get using custom_field=”>” (NOTE: this is shows a reverse tag in editing mode) this and if notices turned on in error_reporting.
You should change this on about 204 line in ext.cutom_fields_in_ee_tags.php:
if(!is_numeric($parsed_pattern) && strtotime($parsed_pattern))
{
$test_pattern .= "'".date("U", strtotime($parsed_pattern))."'";
}
else
{
$test_pattern .= "'".$parsed_pattern."'";
}
with
if($parsed_pattern == "")
{
$test_pattern .= "''";
}
elseif (!is_numeric($parsed_pattern) && @strtotime($parsed_pattern))
{
$test_pattern .= "'".date("U", @strtotime($parsed_pattern))."'";
}
else
{
$test_pattern .= "'".$parsed_pattern."'";
}
If you look at the code you’ll understand what it will be if $parsed_pattern is equal null
Well, the new feature in 1.6.1 is wonderful and similar, but it doesn’t allow for > and < comparisons.
Wondering if it would be easy to make a “stripped-down” version of Mark’s extension that only does the > and < comparisons - and use the native built-in search parameter for everything else - at least until that is assimilated in the future. Trying to save on any extra overhead. Not sure it matters - if you have to install this, you have to install it…
what is the “new feature in 1.6.1”? Is it about custom fields? Is the documentation ready?
Yeah, this is all built in now: The “search:” parameter allows you to constrain Weblog Entries output based on content within your custom fields. The only thing the native filter doesn’t do is > and <, apparently. So, for the most part you shouldn’t need this extension anymore, unless you need to do a numerical comparison.
I was able to use the EE search parameter to fix the site and get it up. Concerning my question, I was curious if this extension is working with 1.6.3.
Cool, glad to hear it. The search parameter is the bomb. I can’t speak to the extension working with 1.6.3, as I’ve never had occasion to use it. As far as I know, the only thing you might need it for is > and < (greater than/less than) comparisons.
Yeah, @tpayton, Ryan is correct. I don’t believe it works in 1.6.3 mainly because EE’s absorbed just about all the functionality into native features now. The only thing missing is the grater than and less than comparisons, which can probably just be done with SQL queries when needed.
Yeah, @tpayton, Ryan is correct. I don’t believe it works in 1.6.3 mainly because EE’s absorbed just about all the functionality into native features now. The only thing missing is the grater than and less than comparisons, which can probably just be done with SQL queries when needed.
Thing missing is the grater than and less than comparisons
{exp:weblog:entries custom_field=">100239320"}{title}{/exp:weblog:entries}
{!-- any entry where custom_field is greater than 100239320 --}
and unfortunately, this extension doesn’t work with 1.6.3
Hi Mark, all,
It seems like functionality breaks when using
show_expired="yes"
in your exp:weblog:entries tag.
Can anybody confirm this? I’m trying to use this extension to filter various types of recorded messages, all of which are expired entries. I’m working around it by removing the end date on the entries, but if this is something that is worthy of a fix it would be terrific.
Many thanks for all of your contributions, Mark – wow!
Matt
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.