380 reputation
1418
bio website
location
age
visits member for 3 years
seen Jan 29 '12 at 6:17

I like lacrosse, hence my handle.


Nov
13
comment How to Debug: My Plugin Interferes With My Theme
I took the Google Maps event listener out. Now, I call the function that calculates the map bounds when the button is clicked. I then chained the functions together so that one function calls the others. It's not as efficient as when the event listener called the functions after the map tiles loaded, but it works.
Nov
13
comment How to Debug: My Plugin Interferes With My Theme
Also, I tried commenting out all of the code in csf_map_viewport_bounds(), and uncommenting the event listener: google.maps.event.addListener(csf_dcscore_crime_map, 'tilesloaded', csf_dcscore_crime_map_viewport_bounds); So, I know that the problem is with the eventListener, not with the function.
Nov
13
comment How to Debug: My Plugin Interferes With My Theme
The line reading: google.maps.event.addListener(csf_dcscore_crime_map, 'tilesloaded', csf_dcscore_crime_map_viewport_bounds); isn't ina function. It's simply in the jQuery(document).ready(function() { }); -- not sure if that would make any difference.
Nov
13
comment How to Debug: My Plugin Interferes With My Theme
Hi @Wyck, Thank you for your message. My pal, Miro, suggested that I comment out all of the js, and then uncomment it bit by bit to figure out which line caused the problem. I've traced it to this line in the js: google.maps.event.addListener(csf_map, 'tilesloaded', csf_map_viewport_bounds); . This event listener calls the csf_map_viewport_bounds function after the Google Map tiles have loaded. The function checks the lat long coordinates of the map. I'm not sure why this line is causing problem. It could be the function it calls, but I don't see anything weird. Any suggestions?
Nov
12
asked How to Debug: My Plugin Interferes With My Theme
Nov
12
accepted Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin
Oct
10
accepted Fatal error: Call to undefined function wp_create_nonce()
Oct
10
comment Fatal error: Call to undefined function wp_create_nonce()
I was thinking about doing that. I'll go ahead and post a new one. Thank you very much for the help!
Oct
10
comment Fatal error: Call to undefined function wp_create_nonce()
Hi, @Christopher Davis, Thank you very much for your message. You're right, I didn't have wp_localize_script inside a function. I never would have thought of your solution. I plopped it in a function and now I don't get the fatal error anymore. Unfortunately, I must have a second bug. I don't think that the nonce is being posted. Does this bit look correct: jQuery.post(the_ajax_script.ajaxurl, {my_nonce : the_ajax_script.my_nonce}, jQuery("#theForm").serialize()... Also, I tried putting an echo in php and alert on the js. It looks like the 2 numbers are different. Is this normal? Thank you.
Oct
8
asked Fatal error: Call to undefined function wp_create_nonce()
Oct
6
comment Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin
Thank you for the help. I changed the file permissions and switched it to an absolute path.
Oct
5
asked Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin
Oct
5
comment Building a WP Shortcode: Loading Markers on a Google Map
Maybe there is a way to build the XML file following this example: wordpress.stackexchange.com/questions/6840/… If I can combine this solution with the above, it might work.
Oct
5
accepted Front Page Settings
Oct
5
accepted wp_enqueue_style in Plugin
Oct
4
revised Building a WP Shortcode: Loading Markers on a Google Map
added 246 characters in body; edited title
Oct
4
revised Building a WP Shortcode: Loading Markers on a Google Map
additional info
Oct
4
asked Building a WP Shortcode: Loading Markers on a Google Map
Sep
30
comment How to Run a jQuery Script after a Javascript Script has Finished in WordPress
Hi @DrewGourley Thank you for the help. It was a timing problem. My function was firing before the map fully loaded. I added your code, and the timing was still off. So in addition, I added an eventListener. It works now. Thank you.
Sep
30
accepted How to Run a jQuery Script after a Javascript Script has Finished in WordPress