GithubHelp home page GithubHelp logo

kylephillips / simple-locator Goto Github PK

View Code? Open in Web Editor NEW
65.0 65.0 25.0 2.7 MB

Plugin for Wordpress that provides powerful store locator type functionality for any post type

Home Page: http://locatewp.com/

PHP 67.10% JavaScript 26.92% SCSS 5.89% Hack 0.10%

simple-locator's People

Contributors

itto avatar kylephillips avatar lfroidmo avatar sethta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

simple-locator's Issues

Location Type Menu Position

Need to grab last menu position, not hard-code in. Sites with hard-coded menu position may override location type's

Distance Parameters

add option to shortcode/widget to define the distance choices in the form

Minify scripts

Minify front end styles & scripts. Add options to turn off styles & scripts, with textbox to display them.

Search by place name and some issues

Is there any way to search the place by name?

And some issues i've found.

  • I can search by some country name but some of them don't.
    Example:
    I have one place in my database is Dhaka, Bangladesh. I searched 'Bangladesh' I found Dhaka.
    But I have places in Bangkok, Thailand. I searched 'Thailand' or 'Thai' I got 0 result found.

Pagination with shortcode

There isn't the option to limit the results in the admin โ€“ Can you limit results using the shortcode? Is there pagination?

Flush rewrites

Need to flush rewrites when saving post type options.

Individual map in results

Need to add optional "map" field in results data to include a single map along with result list. Also need to include option to hide "All" map (for O9 project)

WP formatting

need to rename classes and files with WP conventions in prep for submission

Remove namespacing for older php support, add in prefixes

Check all array declarations and remove any shorthand bracket styles

Meta Fields and Post Type

Need to assign meta fields to post type dynamically. Currently hard-coded to 'location', so they don't show on custom post type set by user.

All Locations List Option

Add an option/parameter to the all locations shortcode to include a list of locations below the map

Front end site

need to design a front end site with documentation, support, faqs, etc

Does it need a specific permalink structure?

Hi Kyle,

Im having issues displaying the built-in "locations" post-type, always results in 404.
Im building a list of "location" posts, but even if I link an entry directly to a menu, it still goes 404.

Any tips please?
Thanks.

V2: Importer

look at adding a data importer for locations post type, look at adding task runner to geocode existing post types.

Add "use my location"

Add option to add geolocation button for enabled devices (add language about how only enabled devices will show the button, and it could cut down on api requests)

V2: DIsplay Fields

Version 2 feature: give option to show what fields get shown in the results.

CSS option

Add option to output css. Provide SCSS

Map Styling Options

Provide some choices for map styles (in addition to custom json styles). Link to one of the style repo sites.

Loop aware All Locations Map

If I understand this correctly, the map will always retrieve all entries from the selected post-type. Would it be possible to have the map to show only the entries on screen?

Im building a business directory, for which im displaying all entries in a loop, paginated with 24 records per page. The ideia would be to have the map match the records displayed on screen, being updated at each page change.

This might outside the scope of the plugin's original intent, but it might greatly extend the plugin uses cases with what I imagine wouldn't be a too complex change.

Anyway i'll study the code to see if can achieve this, hopefully you can provide your insight here.

Gulpfile

setup gulpfile/package.json, remove codekit dependecy

Form Options

Add option to change button text, max number of results

Default Map

Option to add default map location, replaced with results once they're loaded.

Re-search when you zoom into the map

When I zoom in on the map, the list remains the same โ€“ Is there a way of being able to hook onto the zoom into an area & change the results accordingly?

Cache Conflict

Issue with page cacheing and nonce generation. Forms on cache-enabled pages are not working due to nonce mis-match.

Possible solution: generate a nonce via AJAX on form submission, inject the nonce as a hidden form element, then submit the form.

Widget

Look at adding a widget form

Map Style Choices

Add some preconfigured map style options. Show preview for each. Make sure to add "default" for unstyled map.

Test with acf 5

need to test with acf, as well as older versions of wp, debug on

Uncaught ReferenceError: wpsl_locator is not defined

When I use [simple_locator_all_locations]
the loading keeps spinning.
And debugger show this

Uncaught ReferenceError: wpsl_locator is not defined
simple-locator-all-locations.js:1

But [wp_simple_locator] works fine.

Search by Country and Zip Code Issues

Hey Kyle,

A few questions about the search feature on the default form widget.
Im trying to implement a simple business directory using your plugin. This directory has entries from multiple countries, so search by country is quite important. Unfortunately the default search widget doesn't seem to do it, as searching by the country name always returns no results.

Another quick question, if I pass resultscontainer="#searchresults", shouldn't the dom elements inside that div be replaced with the results from my search?

Update:
Adding to the problem searching by country, im noticing that searching by zip-code is also giving unexpected results.

I have this entry with the zip code value of 1100-200, if I search by this exact same value it retrieves no results found, no matter what distance I pass it. This is the portuguese zip code format, does the plugin allow to use non-US zip codes?

Thanks again for any help.

Strange posts being created with Map Style names

When I set a Map Style and save the settings strange records are getting created within wp_posts.

With the following post_content...

[{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]}] 

post_title: Shades of Grey

And if I delete the post my Map Styles go back to default.

Unless this is a conflict with my theme (X-Theme) or some other plugin somehow?

For some reason the post shows up in my portfolio and causes strange errors....

Widget options

remove container options from widget, update form view to conditionally check for options. Add option to hide map (also add to shortcode).

Post Type

If location post type isn't being used, need to not show it in the menu (bug from dynamic post type update)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.