robotor
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Go Maps (formerly WP Google Maps)] error (can’t start using the map)Looks like you have some outdated stuff in the plugin:
https://developers.google.com/maps/documentation/javascript/error-messages#retired-version
RetiredVersion Warning
You may have supplied a retired version in your script element. The versions 3.0 – 3.26 have been retired, and you might be receiving 3.27 instead. Please update your application to use one of the available versions.See Versioning | Google Maps JavaScript API.
Forum: Plugins
In reply to: [WP Go Maps (formerly WP Google Maps)] error (can’t start using the map)Same problem. I have toe correct referrers in place.
My error is this:Google Maps API warning: RetiredVersion https://developers.google.com/maps/documentation/javascript/error-messages#retired-version Google Maps API error: DeletedApiProjectMapError https://developers.google.com/maps/documentation/javascript/error-messages#deleted-api-project-map-error SCRIPT5007: Unable to get property 'fromLatLngToPoint' of undefined or null reference marker.js (15,342)
The solution:
If the global variable with the value to use is: my_var, and the “Single Line Text” is the fieldname1 field, you can insert in the form a “HTML Content” field, with the following piece of code as its content:
<script> fbuilderjQuery(document).one('showHideDepEvent', function(){ fbuilderjQuery('[id*="fieldname1_"]').val(my_var).change(); }); </script>
Forum: Plugins
In reply to: [Download Monitor] How to add short description to category listIs this plugin still supported or in active development?
Forum: Plugins
In reply to: [HTML5 Responsive FAQ] Categories & FAQs togetherHello,
I tried to do this manually, but the plugin could not handle more that three FAQ shortcodes in a page.Forum: Fixing WordPress
In reply to: WP 4.6: Visual Editor not working. tinymce not defined errorThanks for your reply. The only thing I have not tried is a manual upgrade. I will do this and report back.
Forum: Plugins
In reply to: [Column Shortcodes] Top of column not aligningThis is a problem that needs to be solved – imaging deploying this to a non-tech-savvy person whose job it is to edit content. Asking them to go into the code editor to remove line breaks isn’t really a solution.
Forum: Plugins
In reply to: [Genesis Columns Advanced] Columns need clearfix applied automaticallyThanks. The bottom line for me is that a user with minimal skills should be able to use it without having to worry about clearing and technical things. If it can break like it does, under normal use, then It’s unusable.
I think if the clearfix were added automatically, that would be a step in the right direction, but a normal person won’t know what that is and might remove it. It would be better to call it [column-end] or something, so it’s obvious.
Forum: Plugins
In reply to: [Genesis Columns Advanced] Columns need clearfix applied automaticallyI’m getting the same problem, the columns should be placed in a column group container automatically.
Here’s example code that breaks the flow for me:
[one-fifth-first]This is a column [/one-fifth-first] [one-fifth]Another Column[/one-fifth] [one-fifth]Here's the third column[/one-fifth] [one-fifth]Here's the 4th[/one-fifth] [one-fifth]This is the fifth column[/one-fifth] <h2>Heading 2</h2>
Forum: Plugins
In reply to: [Genesis Columns Advanced] Columns need clearfix applied automaticallyNick, I’ll check on this today. Thank you!
Forum: Plugins
In reply to: [Genesis Columns Advanced] Columns need clearfix applied automaticallyBasically, I cannot see a reason to make the content writer set up her/his columns in two separate steps.
Every column need that I can imagine would benefit from being cleared as a group, so it would make sense to make it automatic when the columns are output.
Thanks so much for listening ??
Forum: Plugins
In reply to: [Genesis Columns Advanced] Columns need clearfix applied automaticallyThanks. The issue is really simplicity for non-developers… the people who’s job it is to manage content.
When they have issues with content formatting, I’ll tell them to add a [clearfix] after their column set. Adding container divs is way outside their abilities ??
This is what I’m trying to do, but the new scope is not working. I tried changing the names of more of the things.
/* custom event scope: "this-week" */ add_filter( 'em_events_build_sql_conditions', 'my_em_scope_conditions',1,2); function my_em_scope_conditions($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='this-week' ){ $start_date = date('Y-m-d',current_time('timestamp')); $end_date = date('Y-m-d',strtotime("+7 day", current_time('timestamp'))); $conditions['scope'] = " (event_start_date BETWEEN CAST('$start_date' AS DATE) AND CAST('$end_date' AS DATE)) OR (event_end_date BETWEEN CAST('$end_date' AS DATE) AND CAST('$start_date' AS DATE))"; } return $conditions; } add_filter( 'em_get_scopes','my_em_scopes',1,1); function my_em_scopes($scopes){ $my_scopes = array( 'this-week' => 'This week' ); return $scopes + $my_scopes; } /* END event custom scope: "this-week" */ /* custom event scope: "thirty-days" */ add_filter( 'em_events_build_sql_conditions', 'my_em_scope_conditions',1,2); function td_scope_conditions($conditions, $args){ if( !empty($args['scopetd']) && $args['scopetd']=='thirty-days' ){ $start_date = date('Y-m-d',current_time('timestamp')); $end_date = date('Y-m-d',strtotime("+30 day", current_time('timestamp'))); $conditions['scopetd'] = " (event_start_date BETWEEN CAST('$start_date' AS DATE) AND CAST('$end_date' AS DATE)) OR (event_end_date BETWEEN CAST('$end_date' AS DATE) AND CAST('$start_date' AS DATE))"; } return $conditions; } add_filter( 'td_scopes','td_scopes',1,1); function td_scopes($scopestd){ $my_scopestd = array( 'thirty-days' => 'Thirty days' ); return $scopestd + $my_scopestd; } /* END custom scope: "Thirty days" */
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]
do I need to duplicate the add_filter conditions as well?
Hello,
This is my code for the custom scope.I am trying to make another custom scope called “thirty-days” which is today + 30.
/* custom event scope: "this-week" */ add_filter( 'em_events_build_sql_conditions', 'my_em_scope_conditions',1,2); function my_em_scope_conditions($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='this-week' ){ $start_date = date('Y-m-d',current_time('timestamp')); $end_date = date('Y-m-d',strtotime("+7 day", current_time('timestamp'))); $conditions['scope'] = " (event_start_date BETWEEN CAST('$start_date' AS DATE) AND CAST('$end_date' AS DATE)) OR (event_end_date BETWEEN CAST('$end_date' AS DATE) AND CAST('$start_date' AS DATE))"; } return $conditions; } add_filter( 'em_get_scopes','my_em_scopes',1,1); function my_em_scopes($scopes){ $my_scopes = array( 'this-week' => 'This week' ); return $scopes + $my_scopes; } /* END event custom scope: "this-week" */