GEO my WP 2.5

I am thrilled to announce the new version of GEO my WP 2.5 ( beta 1 ). This is another major update of GEO my WP which brings many new features, performance improvements and bugs fix. This is the first beta and I need your help to test it out. Testing and debugging it will assure that the final release will be as stable as possible.

Very Important:

  1. GEO my WP 2.5 and the premium add-ons went through major core modifications . Please backup your site before proceeding with the updates.
  2. If you are using any of the premium add-ons please first update the premium add-ons and only then update to GEO my WP 2.5. That is to prevent any conflict between GEO my WP 2.5 to the previous versions of the add-ons.

GEO my WP 2.5 Change-log:

  1. Add-ons Page:
    1. The add-ons page of GEO my WP was visually improved as well as its core was almost completely rewritten which results in better performance when activating/deactivating the licenses key or the add-ons as well as when checking for new updates.
    2. The add-ons page is now ( in my opinion ) more user friendly. Each add-on element displays two separate buttons: one for the license key activation/deactivation and another for the add-on activation/deactivation.
    3. Clear and easy to understand Success/error messages .
    4. Add-ons and license key activation usage instructions.
    5. Activate/Deactivate update system button ( move from GEO my WP Settings page ).
    6. add-ons which are actually plugins can be now activated/deactivated from the add-ons page. So by activating/deactivating an add-on you will actually activate/deactivate the plugin. There is no need to go to the plugins page for that.
  2. Tools Page - I am so excited about the release of GEO my WP's new tools page. It has been a long time and many users that have been asking and waiting for that.  I do believe that tools page is an important part of such plugin and I hope that many will find it useful. GEO my WP's Tools page comes with solutions for back and restore of data , export/import locations and reset/uninstall  of GEO my WP.
    1. Easily duplicate your settings and forms between different sites or backup and restore it on the same site.
    2. Export and Import Post Types locations between different sites ( same thing for Members Locator is planned for the future ).
    3. Import locations from custom fields of your choice. This can be useful when another plugin saves locations in custom fields and you want to import the locations into GEO my WP
    4. Import locations from other plugins . Right now it is possible to import locations  from WordPress Store Locator  and MapPress plugins.

    It is very important to test the tools page features on test sites. It is a brand new page with brand new functions and I don't want things to go wrong on any of your live sites.

  3. Admin pages - admin pages were generally improved:
    1. A bit of new styling and core improvement.
    2. New admin settings added to Post Types Locator add-on which allows you to set the initial lat/lng and map zoom level of the map in GEO my WP section of the "New/Edit post page".
    3. "Features" tab under "Settings" page removed. It created more confusion that actually being helpful.
    4. License and updater classes were improved for better performance.
  4. Forms editor - Forms pages visually improved and security issues were fixed.
  5. Search forms can now be disabled in case that you want to only have the search results displayed. This I believe can be useful if you want to display a map of posts on page load where you do not need the search form. A map of posts can be created using the new feature describe next. You can disable the search form by selecting "Disable search form" from the dropdown menu of the "Search Form Template" feature.
  6. Another exciting feature is the new  "Page Load Results" tab that added to Post Types locator forms. Using the tab you will be able to completely configure the form behavior on page load. It can be completely different than the configuration of the search results on form submit. You can choose the post type, set a starting address to search from, search based on user's current location when exists, set the distance, results per page, and additional filters by city name, state, country and zipcode. Another thing you can choose is if to display map, list of results or both. So basically using this tab you can set a form to automatically display all results ( or results filtered based on location ) and show them only on the map. Which will results in a mashup map for post types. How cool ah?
    This feature was sponsored by Rickeym Messick. Thank you!
  7. Members Locator Xprofile Fields - another "wanted" feature that has been requested for a while. The xprofile fields section of the Members Locator will no longer display xprofile fields as checkboxes only. Now each field will be displayed in the search form as the input field type which it was created.  And so, dropdown menu xprofile fields will be displayed as dropdown menu in the search form, Checkboxes will be checkboxes, text fields as text fields and so on. Moreover, all field types can now be displayed in the search form.
  1. Members Locator new grid style results theme.
  2. Maps javascript files improved and combined into one file. Now the content of the info window being created using PHP function and using a hook it can be easily modified. This way you can add or remove information from the info-window.
  3. gmw_single_location shortcode - new shortcode args added:
    1. Element_id to set the id of the wrapper element. if not set it will be random.
    2. info_window - can be 1 or 0. When set to 1 the info window of the marker represent the post location will be open on click.
    3. show_info - 1 or 0. When set to 1 the location information will be displayed below the map. You can set it to 0 if you want to hide the text below the map and only show it in the info-window of the map.
    4. ul_marker - 1 or 0. Set to one if you want to display maker represent the user's current location when exists.
    5. ul_message - The text that will be displayed in the info-window of the marker represent the user's current location. Default is "Your Location". leave empty for no info window.
  4. Sweet-date theme - add  Google Places address autocomplete feature and the ability to choose if to show or hide the "orderly" filter.
  5. Full screen map toggle - Small button will be displayed on the top right corner of the maps. Clicking on the button will toggle the map between full screen and normal size.
  6. GEO_my_WP class  improved and many new hooks were added.
  7. New function google_places_address_autocomplete() added. The function is now responsible for triggering the Address Autocomplete on GEO my WP and the different add-on. It also allows you to easily add address autocomplete to any fields of your choice.
  8. New set_labels() function added.  The function now responsible for the different labels of the search forms and results such as "distance", "address", "get directions", "no results" and more. And using the filter gmw_shortcode_set_lables it will be easy to modify the text of any of these labels.
  9. gmw_current_location shortcode new attribute "text_only" which can be 1 or 0. When set to one the current location will be displayed as text only without the hypertext which triggers the location form.
  10.  Fixed issue with pagination not working on a static front page. Now you can have the search forms and results on the home page of your site.
  11. Map markers that on the same exact location will now have the marker spiderier effect to prevent them from being on top of another.
  12. All the JavaScript files complied to smaller size for better performance. The plugin provides you with the compiled and uncompiled files.
  13. Many new filters and actions were added which make GEO my WP much extendable, flexible and powerful.
  14. Many other bugs fix, core improvement,and performance.

I have spent months and countless hours working on GEO my WP 2.5. My goal in each update is not only to add new and exciting features but also to improve GEO my WP's performance and its user experience.  I don't want GEO my WP to only look good; I want it to perform well and be stable. I am constantly improving GEO my WP's core and extending it so it will be as flexible and easy to use as possible. This is so features that do not exist "out of the box" will still be easy to create using hooks and functions.

I have put so many hours developing GEO my WP and the appreciation I have received makes the work all the more worth it. I am happy to see the exposure GEO my WP is getting and that  you, the users,  are enjoying it and finding it useful. As always,  your feedback, donations and purchase of the premium add-ons are greatly appreciated.

Thank you!
( Feedback on WordPress.org is always appreciated as well 😉 )

GEO my WP 2.5 Beta 2

  1. Added info-window filters for Post Types Locator
    apply_filters( 'gmw_pt_info_window_content', $output, $post, $form );

    and Members Locator

    apply_filters( 'gmw_fl_info_window_content', $output, $member, $form );

    Using these filters you will be able to modify the info-window content.

  2. New hook to be used with Google maps styled
    do_action( 'gmw_map_styles', $gmw );

    Using the action hook you can add custom style to the Google maps of your forms. This tutorial will show you how to add map style using the new action.

Please use the comments system below to report on bugs, feedback and suggestions.

 Updated - 11/12/2014

GEO my WP 2.5 CR-1

It has been too long since the release of the first beta of GEO my WP 2.5. It was mostly the updates of the premium add-ons that were keeping me from finishing  GEO my WP 2.5.

However, right now all the add-ons are up to date and compatible with Geo my WP 2.5.

Most of the add-ons went trough major update with many bugs fix, improved performance, improved code and new features.

Since GEO my WP 2.5 is not officially released and the new versions of the add-ons are only compatible with  it you will not see the update in the dashboard of your website. Instead, you will be able to manually download the new version of the add-ons from your Purchase History page. The add-ons which will only work with GEO my WP 2.5 and up and will need to be downloaded manually listed below:

  1. Premium Settings - gmw-premium-settings-1-5-beta
  2. Global Maps - gmw-global-maps-2-0-0-beta
  3. Groups Locator - gmw-groups-locator-1-4-beta
  4. Wp Users Geolocation -gmw-users-geolocation-1-1-beta

The rest of the add-ons are already compatible with GEO my WP 2.5.

A complete change-log of the add-ons listed above will be released with the final version of the plugins.

Below are some of  the major changes i'd like to point out:

GEO my WP 2.5:

  1. New shortcodes added:
    1. [gmw search_form="form_id"]

      can be used to display the search form only.

    2. [gmw search_results="form_id"]

      can be used to display the search results only.

    The new shortcodes together with [gmw map="form_id"]  will allow you to display the any of the different form component anywhere on the page

  2. All of the form's labels are now being generated using the new function <pre>gmw_form_set_labels( $form )</pre> and tt is now possible to modify any of the form labels using the new filter <pre>gmw_shortcode_set_labels</pre>. You can find the function and the labels in the file geo-my-wp/includes/geo-my-wp-template-functions.php
  3. Many  redundant functions are now deprecated and combined into one. For example, a  function that shows the distance in the search results. Instead of having this function for Post Types Locator form, Members Locator form, Groups Locator and so on. Now there is only one function that serves all. All the deprecated functions can be found in geo-my-wp/includes/geo-my-wp-deprecated-functions.php. If you are using your own custom search forms or search results template files and have DEBUG set to true you will most likely see the warnings about the deprecated functions. Everything will still work fine  until I will remove the deprecated functions file most likely in one of the next updated. So please update your custom template files.
  4. There are many other improvement and bug fixes which I will list in the future.

Global Maps:

  1. The add-on is completely redone with many new features. The main feature is the new search form available for the maps. A new search form tab added to the Edit form page where you can choose the search form template files, set the radius , address field, and other filters based on the type of map you create. The search will be free floating within the map element and when being used it will update the marker on the map via AJAX ( see example the map on the home page of GEO my WP ).
  2. The info window improved a lot and new features added; Draggable window ( for pop-up info window ), new, improved look, new "get directions" system within the pop-up info window and more.

Premium Settings

  1. New info window. same as describe above.
  2. Markers Spiderfier is now fixed and working perfectly.
  3. Post featured image as map icons
  4. Compatible with the new version of the Global Maps

Groups Locator and Wp Users Geolocation add-on also working with the new version of Global Maps. Together with improved code and many bugs fix.

Click here to download GEO my WP 2.5 CR-1.

Enjoy!

 

GEO my WP 2.4 Beta

GEO my WP 4.0 2.4 ( my mistake 🙂 ) Beta

I am very excited about the new coming version of GEO my WP 4.0 2.4. This is a major update with many major changes. The main focus was on a better structured code, code improvement, performance, better integration with add-on ( actions/filters ), major improvement of the backend, many bug fix and few new features.

Listed below are some of the major changes made in GEO my WP 4.0 2.4:

  1. Almost every line of code was redone. Code is now much cleaner and better structured using OOP.
  2. The update takes care of major performance issues specially in the back end caused by the licensing system. The update should also take care of performance issues while AJAX call is being performed.
  3. Many php and javascript files were removed which should results in better performance.
  4. Files and folders are better organized.
  5. Code of the back end was completely redone for the first time since the first release of the plugin. This results in a brand new, shiny back-end interface.
  6. Improved Geocode function.
  7. Improved "Current location widget/shortcode".
  8. Instead of using [gmw_results] to display results in a different page you should now use [gmw form="results"].
  9. You can now show the map of a search results anywhere on the page using the short code [gmw map="form id"]. In order to use the feature you will need to set the feature "display map?" to "using shortcode" when editing a form and add the short code anywhere on the page.
  10. The new version of GEO my WP will not save the data to custom fields any more. I have decided to remove the features for few main reasons:
    1. Since location information is already being saved in the custom table of GEO my WP saving the same information in custom fields as well just causes unnecessary duplication of data which results in bigger tables and will hurt performance in the long run.
    2. When there is a need to display different components of the location ex ( city, state and so on ) on a page each of the custom fields that holds the information need to be called which results in weaker performance ( each custom field call is a call to database.

    To replace the support in custom fields I have created new functions/shortcode that will easily provide you with the ability to display any or all of the data of a certain location. This way is more efficient because it require a single call to database ( that is also being cached ) in order to display single or multiple fields of a location.

  11. New "Featured" tab in the "Settings" page of GEO my WP allows you to activate/deactivate some features. ex short codes and widgets. So if you are not going to use some of the features you can improve performance by deactivating them.
  12. New feature: You can now choose a search form  template file when creating/editing a from just like choosing the results page template file.
  13. New Feature: As mentioned above, you can now display the results map anywhere on the page using a short code [gmw map="form id"].

Single Location information

In order to display location's information you can now use the function <?php gmw_post_info( $args ); ?> or the shortcode [gmw_post_info].
the attribute accepted are:

  1. info - can be any of the location information comma separated:  street, city, apt, state, state_long, zip code, country, country_long, address, formatted_address, lat, long, phone, fax, email, website. The default value is formatted_address.
  2. post_id = the ID of the post you want to display.
  3. divider - any character you want to display between each field when displaying more than a single field. default is space.

There is no need for post_id if using the shortocde or function within a page, post or a loop. post_id is needed if you want to show location of a specific post.
Example of function usage:
$args = array(
'info' => 'city,state,zipcode,phone,email',
'post_id => 34,
'divider' =>','
);

echo gmw_post_info( $args );
the code above will produce the location information for post 34 as below:
Hollywood, FL, 33021, 123-456-7890, info@geomywp.com

Example of shortcode usage:
[gmw_post_info info="city,state_long,website" post_id="34" divider="-"]
The short code will produce the below line:
Hollywood-Florida-www.geomywp.com

There are other short codes and functions that will be describe in the future.

Very Important before Installing:

  1. This is a beta version. It is pretty stable but still bugs are expected. It is not recommended to be used on a live site yet.
  2. Because of the major changes in the code and database you will lose all your settings and forms. So after updating you will need to setup the plugin and forms again. Apologies for any inconvenience it might cause. However, You WILL NOT lose any of your locations for posts or Buddypress members.
  3. Some functions where modified. If you have created custom search forms or results template files you will need to compare them to the default template files of the new version of GEO my WP and modified the functions of your template files based on the new version.
  4. Some of the existing hooks have modified as well as new hooks added.
  5. For those of you who are using the premium add-on. Because of the major changes in GEO my WP 4.0 2.4 the current version of the premium add-ons will not work with the new version of GEO my WP. I am in the process of updating the premium add-ons when most of them are ready. If you are using any of the add-ons and want to test GEO my WP 4.0 2.4 please contact me at info@geomywp.com with the add-on and the license key and I will email you the new version. Below the list of the Premium add-on that are ready for GEO my WP 4.0 2.4:
    1. Premium Settings
    2. Global Maps
    3. GEO Members Directory
    4. GEO Xprofile Fields
    5. Gravity Forms GEO Fields
    6. GEO Job Manager
  6. Each of the Premium add-on were improved as well. Code was redone, many bugs were fixed and many new features. Major changes made to Global Maps and Premium Settings.

Updating:

If you are updating to GEO my WP 4.0 2.4 please make sure to follow the steps below to prevent any issues with the license keys:

  1. Deactivate any license keys you might have
  2. Deactivate the premium add-ons
  3. Deactivate GEO my WP
  4. Delete GEO my WP and the add-on
  5. Install and activate GEO my WP
  6. Install and activate the premium add-ons.

If you are facing issues with the license keys not being activated please contact me at info@geomywp.com with the add-on and license key.

Download GEO my WP 4.0 2.4.

Any feedback, bug reports and feature suggestions are greatly appreciated and can be reported via the comments system of this post.

Thank you,
Eyal

GEO my WP 2.2

GEO my WP 2.2 is ready with some major changes, improvements and bug fix. Please read carefully the main changes below:

  1.  First thing you should notice after the update are the messages to update your database tables in the admin pages. It is a good idea to backup your database before updating.
    1. The new version does few things when updating the database:
    2. Duplicating the tables that being updated in case that something goes wrong
    3. Modifying the lat and long columns from varchar to float for better performance
    4. Removed deleted users from wppl_friends_locator
  2. WordPress 3.7.1 and BuddyPress 1.8.1 ready
  3. Redo/improved the whole section of GEO my WP in the admin's new/edit post page.
  4. Modified the way the plugin geocode the address entered in a search form. Now, when one submits the search form the plugin geocodes the address using JavaScript, which is faster than using curl and html, and when the geocode successful the form is being submitted. Otherwise the user will get a message that the address wasn't found.
  5. You can now set the address field to be mandatory ( in the form settings page).
  6. Improved the locator button functionality in the search form.
  7. Few functions of the search form had been modified and a new function was added. The new function called gmw_form_submit_fields($gmw, $subValue); which must be at the end of every search form. If you haven't edited your search forms or created custom ones you have nothing to worried about. Basically, the function populate all the necessary hidden fields of the search forms together with the submit button. the second parameter of the function $subValue is the value of the submit button. So if you modified the search form or created a custom one please compare your search form to the default one that comes in this version of the plugin to see the deference.
  8. Removed "INNER JOIN" ( joining wp_users to wppl_friend_locator ) from the members query for better performance.
  9. Added function that deletes users from wppl_friend_locator table when user being deleted from The site.
  10. Fix : Single location shortcode/widget - Now Directions link and additional information can be hidden
  11. Turn on/off the "Marker drop animation" in the search form settings.
  12. New "Twenty thirteen" results theme.
  13. Save location when saving post as "Draft".
  14. Translation file updated with missing text.
  15. Other bug fixes, Code improvement and clean up, improved queries, and CSS clean up/improvement.

Thank you

GEO my WP 2.0

GEO my WP 2.0 is hot and ready to eat!!!
This is a major update with many bug fixs, core modification and improvements, new features and more. Please make sure to backup your current version before updating to the new one.
After updating your plugin you will need to go over the Settings page and re-save your settings as well as the search forms as many things have changed.
Below are some of the major changes in this version:

  1.  Core modification - The code reduced drastically, It is much cleaner, performs better, many function are documented, the number of files and folders had been reduced and more organized.
  2. Admin - styling improved, better search forms page, tooltips and more...
  3. Search queries - The main search queries are now working directly with WordPress query (WP_query) and BuddyPress query ( BP_User_Query) which should be better for performance and will be much easier to modify the plugin to work with every theme. Now you can simply copy and paste the WordPress posts loop from the theme that you are using into the result.php page of the plugin in order to have the results page matching you theme.
  4. Stand alone search form -  the search form moved into its own template file, just like the results theme. Now you can have full control on the look and functionality of the search form and the results.
  5. Improved widgets and shortcodes.
  6. Warnings removed.
  7. New, improved pagination - new buttons, new look and fix the issue where it shows infinite pagination buttons when having many results.
  8. Per page value - using a drop down box you ( or the users of your site ) can now change the "per page" value live when viewing the results .
  9. There is no more use for the "form_only" attribute when using gmw shortcode. In order to have the results showing in a different page you will have to select the results page in the shortcode setting.
  10. localization - GEO my WP is now ready to be translated. There are no translated files ready yet but a default PO file is in geo-my-wp/languages. the plugin is also ready to be used with right to left languages. Please, if any of you get to translate GEO my WP it will be much appreciated if you'll share the PO and mo files so others will be able to use it as well.
  11. There is no more use for the shortcode [gmw_friends_results]. [gmw_results] will now serve as a results page for both posts and BuddyPress members.
  12. Styling -  i have modified and  removed most of the CSS styling from the plugin. So if you had any custom styling you will probably lose it and will have to adapt it again.
  13. Renamed Files and folders
  14. shortcodes name  changed from "wppl" to "gmw":
    • main shortcode - [gmw]
    • results - [gmw_results]
    • current location - [gmw_current_location]
    • single location - [gmw_single_location]
    • single member - [gmw_member_location]
  15. Some of the settings in the "search form shortcodes" and other shortcodes changed as well. Now you can set the "Width" and "Height" of the maps to either pixels or percentage. in the "search form shortcodes" settings  and in the "single location" and "single member" shortcodes. for example: [gmw_single_location width="100%" height="200px"] .

There are many more improvements and changes that i have not mentioned. Please use the comments below if you want to ask anything before you updating your plugin.