Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter jwrightspplus

    (@jwrightspplus)

    It appears that the issue is that the iconSize option is not being set for the KML markers.

    The fix I have come up with is:
    ultimate-maps-by-supsystic-pro > kml > js > lib > leaflet

    Lines 136 – 145

    if (ioptions.href) {
    	// save anchor info until the image is loaded
    	options.icon = new L.KMLIcon({
    		iconUrl: ioptions.href,
    		shadowUrl: null,
    		iconAnchorRef: {x: ioptions.x, y: ioptions.y},
    		iconAnchorType:	{x: ioptions.xunits, y: ioptions.yunits},
    	});
    }

    Changed to:

    if (ioptions.href) {
    	// save anchor info until the image is loaded
    	options.icon = new L.KMLIcon({
    		iconUrl: ioptions.href,
    		shadowUrl: null,
    		iconAnchorRef: {x: ioptions.x, y: ioptions.y},
    		iconAnchorType:	{x: ioptions.xunits, y: ioptions.yunits},
    		iconSize: {x: parseInt(ioptions.x) * 2, y: parseInt(ioptions.y)}
    	});
    }

    This is dependent upon a properly formatted <hotSpot> element with “pixel” units being set in the KML.

    • This reply was modified 5 years, 7 months ago by jwrightspplus. Reason: Added code tag
    Thread Starter jwrightspplus

    (@jwrightspplus)

    About line 61 or so…

    if ( !isset( $site_info->ID ) ) {
    			return false;
    		}

    If you look at the two different object created by get_transient function does not have an ID field where as the object created by the wp_remote_get function does.

    Hope this helps.

    John

    Thread Starter jwrightspplus

    (@jwrightspplus)

    Also with the updates I mentioned above if I create a new directory site I get a 404 error when trying to access its dashboard:

    The requested URL /aboutparking2/test/wp-admin/ was not found on this server.

    Thread Starter jwrightspplus

    (@jwrightspplus)

    Sorry my mistake.

    Thanks!

    Thread Starter jwrightspplus

    (@jwrightspplus)

    Found it – I needed to upgrade to at least the Professional level in order to have bbPress control.

    Topic solved.

    Thanks!

    John

    I have a working solution for this issue.

    I have two datepickers in my form, I called them startDateTime and stopDateTime. The datepicker code creates two calendars contained in different divs with the ids of startDateTime_datepicker and stopDateTime_datepicker.

    Your code will have different names so will have to change these to match what is on your site.

    So the rules for my calendar is that the exit date must be at least one day in the future of the entrance date (your rules maybe different) so that is what this code handles.

    In the footer section of my site ( just before the final </body></html> tags ) I have placed the following code:

    <script>
    jQuery(document).ready(function( $ ) {
    $('#startDateTime_datepicker').change(function(){
    	var new_start = $(this).find(".ui-state-hover");
    	var new_start_date = $.datepicker.parseDate("mm/dd/yy",(parseInt(new_start.parent().attr('data-month'))+1) + "/" + new_start.html() + "/" + new_start.parent().attr('data-year'));
    	var cur_end = $('#stopDateTime_datepicker').find(".ui-datepicker-current-day");
    	var cur_end_date = $.datepicker.parseDate("mm/dd/yy",(parseInt(cur_end.attr('data-month'))+1) + "/" + cur_end.find("a").html() + "/" + cur_end.attr('data-year'));
    	if ( cur_end_date <= new_start_date ) {
    		var new_end_date = $.datepicker.parseDate("mm/dd/yy",(parseInt(new_start.parent().attr('data-month'))+1) + "/" + (parseInt(new_start.html())+1) + "/" + new_start.parent().attr('data-year'));
    		$('#stopDateTime_datepicker').datepicker(
    			"setDate", new_end_date,
    			"defaultDate", new_end_date
    		);
    	}
    });
    
    $('#stopDateTime_datepicker').change(function(){
    	var new_end = $(this).find(".ui-state-hover");
    	var new_end_date = $.datepicker.parseDate("mm/dd/yy",(parseInt(new_end.parent().attr('data-month'))+1) + "/" + new_end.html() + "/" + new_end.parent().attr('data-year'));
    	var cur_start = $('#startDateTime_datepicker').find(".ui-datepicker-current-day");
    	var cur_start_date = $.datepicker.parseDate("mm/dd/yy",(parseInt(cur_start.attr('data-month'))+1) + "/" + cur_start.find("a").html() + "/" + cur_start.attr('data-year'));
    	if ( new_end_date <= cur_start_date ) {
    		var new_start_date = $.datepicker.parseDate("mm/dd/yy",(parseInt(new_end.parent().attr('data-month'))+1) + "/" + (parseInt(new_end.html())-1) + "/" + new_end.parent().attr('data-year'));
    		$('#startDateTime_datepicker').datepicker(
    			"setDate", new_start_date,
    			"defaultDate", new_start_date
    		);
    	}
    });
    });
    </script>

    I hope this works for you as well as it did for me.

    Good luck and happy coding.

    Thread Starter jwrightspplus

    (@jwrightspplus)

    Mysteriously everything started working again.

    My guess my hosting provider had a server issue.

    Resolved.

    Thread Starter jwrightspplus

    (@jwrightspplus)

    Thanks for the quick reply kbellagio. It worked.

    The URL is in the database but not quite right:

    Orginal settings:

    SELECT * FROM xxxx_options WHERE option_name = 'siteurl' OR option_name = 'home'
    
    "36","home","https://www.spplus.com/chicago-charter","yes"
    "1","siteurl","https://www.spplus.com","yes"

    Needed to change the value for siteurl to “https://www.spplus.com/chicago-charter&#8221;

    I also removed all the plugins.

    I am now able to see my WP-Admin area and can start to drop the plugins one at a time and see which one kills it all again.

    Thanks for the help!

    Thread Starter jwrightspplus

    (@jwrightspplus)

    Did I say “Charles” sorry ( too many late nights getting this site up ) I meant Lance.

    Any insight as to what is causing the issue with the only_with_tag not working as expected?

    Thanks!

    John

    Thread Starter jwrightspplus

    (@jwrightspplus)

    And Store Locator Plus > Map Settings > Search Form > Tag Input

    is checked.

    Thread Starter jwrightspplus

    (@jwrightspplus)

    Oh BTW

    Store Locator Plus: Version 3.11.20
    Store Locator Plus : Pro Pack: Version 3.11.004

Viewing 11 replies - 1 through 11 (of 11 total)