smarru
Forum Replies Created
-
@marcus thanks for the reply. I corrected one error on my functions.php file.
I will check the other error in next release and see if I am still seeing the error.
Thanks,
SrilathaHi,
Is there anyway to disable the following dependencies without disabling events-manager.js. Below dependencies are loaded in all pages. I think the below files are needed only in events calendar page. On all other pages we don’t need the below dependencies. Only events-manager.js will suffice.
jquery.ui.core
jquery.ui.widget
jquery.ui.position
jquery-ui-sortable
jquery-ui-datepicker
jquery-ui-autocompleteI saw below statement in events-manager.php but I dont want to modify this in core plugins files.
wp_enqueue_script(‘events-manager’, plugins_url(‘includes/js/events-manager.js’,__FILE__), array(‘jquery’, ‘jquery-ui-core’,’jquery-ui-widget’,’jquery-ui-position’,’jquery-ui-sortable’,’jquery-ui-datepicker’,’jquery-ui-autocomplete’));Can you please help me?
Thank you,
Srilatha@agelonwl I am upgrading in debug mode. I am using wordpress 3.3.2 version.
Thanks,
SrilathaHi I fixed it in the sharethis settings page by removing the charset=’utf8′ where src doesn’t exist.
Can you please make sure to remove them in your next release?
Thank you,
SrilathaHi Guys, I used below code to hide the infowindow on load and position the marker at center and it worked. Thank you for supplying the map hook.
jQuery(document).bind(’em_maps_location_hook’, function( e, map, infowindow, marker ){
setTimeout(function(){ infowindow.close(); var latlng = new google.maps.LatLng(map.center.lat(),map.center.lng()); marker.setPosition(latlng); }, 500);
});
Hi Guys, I used below code to hide the infowindow on load and position the marker at center and it worked. Thank you for supplying the map hook.
jQuery(document).bind(’em_maps_location_hook’, function( e, map, infowindow, marker ){
setTimeout(function(){ infowindow.close(); var latlng = new google.maps.LatLng(map.center.lat(),map.center.lng()); marker.setPosition(latlng); }, 500);
});
@agelonwl Oh thank you so much! It worked.
@agelonwl But if I change events-manager.php file in the main plugins folder it will be overwritten when I upgrade the plugin. Am I right?
@agelonwl I created a file called em-events-mod.php in the widgets folder and renamed the EM_Widget class to EM_Widget_Mod class. And replaced all instances of EM_Widget with EM_Widget_Mod. And renamed to “EM Widget Mod” But I donot see new Widget “EM Widget Mod” in the widgets list. Is there anything I am missing? Can you please help?
where can I place the em-widgets.php file in my theme folder? can widgets be overwritten too?
Thank you,
Srilathathank you! It worked.
Sorry about not checking for so long. I checked and the category is working. I was making changes to the ical.php in the main plugins folder. And I saw that ical.php file in my theme folder was overriding the actual file in plugins folder.
Thanks again for your help!
Thanks marcus! I used EM_Events::get() with combination of [events_list_grouped] and some custom coding and got it working.
@qgelonwl Thank you for the reference post. The post is referring to multiple locations in a map I think and has some other dependencies. But I want to hide the infowindow on load of the a single map. Since I didnt want to modify the events-manager.js code I used the below hook but it doesn’t work.
jQuery(document).bind(’em_maps_location_hook’, function( e, map, infowindow, marker ){
infowindow.close();
}Hi @agenowl,
I used below code to close the infowindow. But it doesn’t work for me. Can you please help?
jQuery(document).bind('em_maps_location_hook', function( e, map, infowindow, marker ){
infowindow.close();
map.panBy(0,0);google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map,marker);
});
});Thank you,
Srilatha