<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: My WP Geo mashup</title>
		<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup</link>
		<description>Gravity Support Forums Topic: My WP Geo mashup</description>
		<language>en-US</language>
		<pubDate>Sun, 05 Apr 2026 10:07:02 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/my-wp-geo-mashup" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "My WP Geo mashup"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup#post-38031</link>
			<pubDate>Sun, 16 Oct 2011 18:33:53 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">38031@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@walkeryri, looks like that error is from the Custom Post Types add-on for Gravity Forms, which was not created by us.  You'll have to ask the plugin author for assistance.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/gravity-forms-custom-post-types/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>walkeryri on "My WP Geo mashup"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup#post-38026</link>
			<pubDate>Sun, 16 Oct 2011 16:32:47 +0000</pubDate>
			<dc:creator>walkeryri</dc:creator>
			<guid isPermaLink="false">38026@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Having the same problem here... I need to manually enter this for all submitted routes, which will be tedious once submissions are up! But it has so much potential that I've already a few plans to use it with GF for a few more ideas..&#60;/p&#62;
&#60;p&#62;I get the following error...&#60;/p&#62;
&#60;p&#62;Warning: Invalid argument supplied for foreach() in /home/domain/public_html/wp-content/plugins/gravity-forms-custom-post-types/gfcptaddonbase.php on line 39&#60;br /&#62;
&#60;a href=&#34;http://www.madfall.com/review-submission&#34; rel=&#34;nofollow&#34;&#62;http://www.madfall.com/review-submission&#60;/a&#62; and a few more you can see on this page...&#60;br /&#62;
If anyone has an answer, it'd be appreciated!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>freelybin on "My WP Geo mashup"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup#post-37909</link>
			<pubDate>Fri, 14 Oct 2011 09:10:32 +0000</pubDate>
			<dc:creator>freelybin</dc:creator>
			<guid isPermaLink="false">37909@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I noticed in the most recent update of the WP-Geo plugin that this no longer was working does anyone have any idea why?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>freelybin on "My WP Geo mashup"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup#post-32283</link>
			<pubDate>Thu, 11 Aug 2011 09:43:09 +0000</pubDate>
			<dc:creator>freelybin</dc:creator>
			<guid isPermaLink="false">32283@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@casey&#60;br /&#62;
Instead of hiding the lat and long fields with CSS, you could set the custom fields as hidden in gravity forms.&#60;/p&#62;
&#60;p&#62;I'm just trying to make sense of  your code for the search and drop down. A quick step by step of how to implement would be appreciated if you have the time.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shorn on "My WP Geo mashup"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup#post-29942</link>
			<pubDate>Wed, 13 Jul 2011 19:54:59 +0000</pubDate>
			<dc:creator>shorn</dc:creator>
			<guid isPermaLink="false">29942@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, still not able to get this showing! Form is all setup in the dashboard, heres what Ive added to my functions.php file. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/* Code for Maps Integration */

add_filter(&#38;quot;gform_pre_render&#38;quot;, &#38;quot;gravityforms_wpgeo_mashup&#38;quot;);
function gravityforms_wpgeo_mashup($form) {

    //REPLACE 1 with your actual form id
    $my_geo_form = 4;
    if($form[&#38;quot;id&#38;quot;] !=$my_geo_form)
return $form;

    // find IDs of latitude&#38;amp;longitude custom fields
    foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field){
            if($field[&#38;quot;postCustomFieldName&#38;quot;]==&#38;quot;_wp_geo_longitude&#38;quot;) $field_lng = $field[&#38;quot;4_15&#38;quot;];
            if($field[&#38;quot;postCustomFieldName&#38;quot;]==&#38;quot;_wp_geo_latitude&#38;quot;) $field_lat = $field[&#38;quot;4_14&#38;quot;];
            //print_r($field);
    }

    // show map only if latitude&#38;amp;longitude custom fields exist
    if($field_lng &#38;amp;&#38;amp; $field_lat ) :
        // load &#38;quot;WP Geo&#38;quot; plugin
        require_once( WP_PLUGIN_DIR . &#38;#39;/wp-geo/wp-geo.php&#38;#39; );
        global $wpgeo;
        $wpgeo = new WPGeo();
        $zoom = 2;
        $map = $wpgeo-&#38;gt;mapScriptsInit( 20, 0,$zoom, true, false );
        $map .=&#38;#39;
            &#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;wpgeo_map_settings_zoom&#38;quot; id=&#38;quot;wpgeo_map_settings_zoom&#38;quot; value=&#38;quot;&#38;quot; /&#38;gt;
            &#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;wpgeo_map_settings_type&#38;quot; id=&#38;quot;wpgeo_map_settings_type&#38;quot; value=&#38;quot;&#38;quot; /&#38;gt;
            &#38;lt;input type=&#38;quot;hidden&#38;quot; name=&#38;quot;wpgeo_map_settings_centre&#38;quot; id=&#38;quot;wpgeo_map_settings_centre&#38;quot; value=&#38;quot;&#38;quot; /&#38;gt;
            &#38;lt;input name=&#38;quot;wp_geo_latitude&#38;quot; type=&#38;quot;hidden&#38;quot; size=&#38;quot;25&#38;quot; id=&#38;quot;wp_geo_latitude&#38;quot; value=&#38;quot;&#38;quot; /&#38;gt;
            &#38;lt;input name=&#38;quot;wp_geo_longitude&#38;quot; type=&#38;quot;hidden&#38;quot; size=&#38;quot;25&#38;quot; id=&#38;quot;wp_geo_longitude&#38;quot; value=&#38;quot;&#38;quot; /&#38;gt;
            &#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
                &#38;lt;!--
                jQuery(document).ready(function() {&#38;#39;;

                    $map .=&#38;#39;var my_geo_form= &#38;#39;.$my_geo_form.&#38;#39;;&#38;#39;;
                    $map .=&#38;#39;var field_lng= &#38;#39;.$field_lng.&#38;#39;;&#38;#39;;
                    $map .=&#38;#39;var field_lat= &#38;#39;.$field_lat.&#38;#39;;&#38;#39;;
                    $map .=&#38;#39;
                    jQuery(&#38;quot;#wp_geo_map&#38;quot;).click(function(e) {

                        jQuery(&#38;quot;#input_&#38;quot;+my_geo_form+&#38;quot;_&#38;quot;+field_lat).val(jQuery(&#38;quot;#wp_geo_latitude&#38;quot;).val());
                        jQuery(&#38;quot;#input_&#38;quot;+my_geo_form+&#38;quot;_&#38;quot;+field_lng).val(jQuery(&#38;quot;#wp_geo_longitude&#38;quot;).val());

                    });

                });
            --&#38;gt;
            &#38;lt;/script&#38;gt;
            &#38;lt;div id=&#38;quot;wp_geo_map&#38;quot; style=&#38;quot;width:auto; height:400px&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;&#38;#39;;

        // find ID of section with cssClass &#38;quot;wpgeo&#38;quot; and put the map into description
        foreach($form[&#38;quot;fields&#38;quot;] as &#38;amp;$field){
                if($field[&#38;quot;cssClass&#38;quot;]==&#38;quot;wpgeo&#38;quot;)$field[&#38;quot;description&#38;quot;].=$map;
        }
    endif;
    return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Can anyone see where i'm going wrong??
&#60;/p&#62;</description>
		</item>
		<item>
			<title>caseym on "My WP Geo mashup"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup#post-29531</link>
			<pubDate>Fri, 08 Jul 2011 20:38:29 +0000</pubDate>
			<dc:creator>caseym</dc:creator>
			<guid isPermaLink="false">29531@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@artificialowl Thanks! Yes fixing the form submit when searching is on my to do list. I was looking at detecting when the search form was onBlur and the user pressed enter at the same time. But I think your code will work great. I'll give it a shot.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>artificialowl on "My WP Geo mashup"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup#post-29456</link>
			<pubDate>Fri, 08 Jul 2011 09:10:54 +0000</pubDate>
			<dc:creator>artificialowl</dc:creator>
			<guid isPermaLink="false">29456@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@casey : &#60;/p&#62;
&#60;p&#62;What a sweet piece of code ! Perfect.&#60;br /&#62;
Now you need to find a way to disable form submission when entering an address :)&#60;/p&#62;
&#60;p&#62;Here is my try :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;jQuery(&#38;#39;#gform_6&#38;#39;).submit(function() {
// check if address field is empty or not
   if(jQuery(&#38;quot;#map_search&#38;quot;).val(&#38;quot;&#38;quot;)==&#38;quot;&#38;quot;) // empty
      return true; // ok submit form
   else { // address filled
      jQuery(&#38;quot;#map_search&#38;quot;).val(&#38;quot;&#38;quot;); // empty the field
      return false; // do not submit form
      }
});&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This code empties the address field after submiting an address
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shorn on "My WP Geo mashup"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup#post-29427</link>
			<pubDate>Thu, 07 Jul 2011 20:01:43 +0000</pubDate>
			<dc:creator>shorn</dc:creator>
			<guid isPermaLink="false">29427@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, just set about my first bash at this. Nothing showing up. I have the section break with css class set, and the custom fields with correct names. My two field IDs are 4_14 and 4_15. Is that how I need to write the ID?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shorn on "My WP Geo mashup"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup#post-29424</link>
			<pubDate>Thu, 07 Jul 2011 19:25:33 +0000</pubDate>
			<dc:creator>shorn</dc:creator>
			<guid isPermaLink="false">29424@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looks really good. I will hopefully be implementing some of this over the next few days! I think this thread will be a lot of help!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>caseym on "My WP Geo mashup"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/my-wp-geo-mashup#post-29409</link>
			<pubDate>Thu, 07 Jul 2011 18:01:28 +0000</pubDate>
			<dc:creator>caseym</dc:creator>
			<guid isPermaLink="false">29409@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;All,&#60;/p&#62;
&#60;p&#62;I got three things working over the past few days with Gravity Forms:&#60;/p&#62;
&#60;p&#62;1) Dynamic dropdown (looks dynamic, actually filters out extra categories)&#60;br /&#62;
2) Move map based on dropdown&#60;br /&#62;
3) Move map based on search&#60;/p&#62;
&#60;p&#62;You can check it out here: &#60;a href=&#34;http://pcsreports.com/survey-single&#34; rel=&#34;nofollow&#34;&#62;http://pcsreports.com/survey-single&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I will post some code later but let me know what you think. I learned a LOT of jquery to get this working... plus a lot of help from the folks on stackexchange.com (they rock!).&#60;/p&#62;
&#60;p&#62;Edit:&#60;/p&#62;
&#60;p&#62;Here's the code that filters the dropdown and changes the map based on the selected options: &#60;a href=&#34;http://pastebin.com/zhACadFU&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/zhACadFU&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;As for the search box above the map, I just added an input and button above the map by inserting it into artificialowl's code:&#60;/p&#62;
&#60;p&#62;&#38;lt;div id=&#34;map_search_div&#34;&#38;gt;&#38;lt;input name=&#34;map_search&#34; type=&#34;text&#34; id=&#34;map_search&#34; /&#38;gt;&#38;lt;input type=&#34;button&#34; id=&#34;map_search_button&#34; class=&#34;map_search_button&#34; name=&#34;map_search_button&#34; value=&#34;search&#34; /&#38;gt;&#38;lt;/div&#38;gt;&#60;br /&#62;
            &#38;lt;div id=&#34;wp_geo_map&#34; style=&#34;width:auto; height:400px&#34;&#38;gt;&#38;lt;/div&#38;gt;';&#60;/p&#62;
&#60;p&#62;Casey
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
