Steve
Forum Replies Created
-
Well I Would only buy the Pro version if i knew this could be done with gravity forms…
Forum: Plugins
In reply to: [Pronamic Google Maps] Gravity Forms Exention please?ok i found how to do this with WP GEO,
Developer can you check this out see how i can get it to work with your plugin please?add_filter("gform_pre_render", "gravityforms_wpgeo_mashup"); function gravityforms_wpgeo_mashup($form) { //REPLACE 1 with your actual form id $my_geo_form = 1; if($form["id"] !=$my_geo_form) return; // find IDs of latitude&longitude custom fields foreach($form["fields"] as &$field){ if($field["postCustomFieldName"]=="_wp_geo_longitude") $field_lng = $field["id"]; if($field["postCustomFieldName"]=="_wp_geo_latitude") $field_lat = $field["id"]; //print_r($field); } // show map only if latitude&longitude custom fields exist if($field_lng && $field_lat ) : // load "WP Geo" plugin require_once( WP_PLUGIN_DIR . '/wp-geo/wp-geo.php' ); global $wpgeo; $wpgeo = new WPGeo(); $zoom = 2; $map = $wpgeo->mapScriptsInit( 20, 0,$zoom, true, false ); $map .=' <input type="hidden" name="wpgeo_map_settings_zoom" id="wpgeo_map_settings_zoom" value="" /> <input type="hidden" name="wpgeo_map_settings_type" id="wpgeo_map_settings_type" value="" /> <input type="hidden" name="wpgeo_map_settings_centre" id="wpgeo_map_settings_centre" value="" /> <input name="wp_geo_latitude" type="hidden" size="25" id="wp_geo_latitude" value="" /> <input name="wp_geo_longitude" type="hidden" size="25" id="wp_geo_longitude" value="" /> <script type="text/javascript"> <!-- jQuery(document).ready(function() {'; $map .='var my_geo_form= '.$my_geo_form.';'; $map .='var field_lng= '.$field_lng.';'; $map .='var field_lat= '.$field_lat.';'; $map .=' jQuery("#wp_geo_map").click(function(e) { jQuery("#input_"+my_geo_form+"_"+field_lat).val(jQuery("#wp_geo_latitude").val()); jQuery("#input_"+my_geo_form+"_"+field_lng).val(jQuery("#wp_geo_longitude").val()); }); }); --> </script> <div id="wp_geo_map" style="width:auto; height:400px"></div>'; // find ID of section with cssClass "wpgeo" and put the map into description foreach($form["fields"] as &$field){ if($field["cssClass"]=="wpgeo")$field["description"].=$map; } endif; return $form; }
Forum: Plugins
In reply to: [WP Geo] Gravity Forms with WP-Geo 3.3like this : https://pcsreports.com/submit-review
Forum: Plugins
In reply to: [WP Geo] Gravity Forms with WP-Geo 3.3OK Thanks for taking the time to explain that
I guess what I’m hoping to do with my form is fetch the long/lat from google
when the user enters an address.I can see what you’ve got here might be good for editing
current location or repinningbut how about searching a location did you by any chance do this?
I’m guessing some kind of jquery map it button that gets lat before user
hits final form submit?I am too trying to work this out, can any one help?
thanks
Forum: Plugins
In reply to: [WP Geo] Gravity Forms with WP-Geo 3.3Hi James
Just had a quick look a your code can you explain little bit more how you set this up?
I think this code is just from the google maps api example, and will only locate the user, then allow pining on the map
or
Does this example actually use the gravity forms address field to search for a location?
i couldnt see where to set id for which form to use it on or will it work on all ?
sorry if stupid questions just gettin my head around it..
Forum: Plugins
In reply to: [Custom Field Suite] compatibility with qtranslate?Thanks for posting but i didnt quite get this to work with WP Types plugin, I dont see why not tho, any one else have issue?
Forum: Plugins
In reply to: [Gravity Forms Popup Widget] Deleted popup but it still pops updelete your cache! ??
i want to know this as well! it must be possible?
Forum: Plugins
In reply to: [Gravity Forms + Stripe] Installed but settings are missingForum: Plugins
In reply to: [Gravity Forms + Stripe] Stripe UKrtd2, i’m testing it at the moment with my UK account
I seem to get POST /v1/tokens show up in the logs ok in stripe admin panel, but on the form submission i’m just getting a white screen,
i’m guessing its some thing i’ve not set up right yet (new to this stripe) so i would say it seems promising..?!
Forum: Plugins
In reply to: [Gravity Forms + Stripe] Stripe Add-on NOT WORKINGThanks lesterjin, that worked for me too!
cool, this is great thanks guys, i might now use wp user front end
I’m just wondering as i use gravity forms at the moment for submitting data, im sure there must be a way to do the above using gravity forms?
Forum: Plugins
In reply to: [JS Archive List] Exclude from page optionsjust need to install another plugin called Widget logic
https://www.ads-software.com/extend/plugins/widget-logic/Forum: Plugins
In reply to: [Page Excerpt Widget] would be great, BUT…yes totally agree.. pretty useless at the moment..
would be nice if you could apply a style to the widget content at least