Here is a quick shortcut I used to combine a series of comma separated values into a single list of unique entries. In my case I was trying to get a unique list of tags that came from several different lists of tags. If list A had “apples, oranges, bananas” and list b had “apples,grapes,watermelons” I wanted to get “apples, bananas,grapes,oranges,watermelons” back.
There is the shortcut I used:
Paste each comma-separated list into a file named “x”, separate lines are OK.
Run this Linux command on the file to create a file named “Y” that has my sorted unique list of tags:
# tr ‘,’ ‘\n’ < x | sort -u | tr ‘\n’ ‘,’ > y
This is a quick and efficient way to sort comma-separated lists on Linux, which likely includes OS/X as well.
Store Locator Plus 4.2.38 was released today addressing an issue where some sites suddenly “lost” locations.
After a week of research it was discovered that some MySQL and MariaDB installations will set boolean data fields to NULL versus true/false or blank. This led to an issue where any of the locations that had a null value in the privacy flag entry would be considered private by the Store Locator Plus search mechanism. The new patch considers locations with a NULL privacy value to not be marked private, which has “recovered” missing locations on the front-end search interface.
In addition to the patch, several updates that were underway have been included as part of the effort to launch a Widget Pack update and start provide more advanced user interface features and WordPress theme support.
A new plugin theme has been bundled with Store Locator Plus that has been test for layout compatibility with the iThemes Herschel WordPress theme.
The Simple White Four Column theme has been updated to use the newer SaSS based CSS rules engine, patching some quirks that are addressed with the core Store Locator Plus CSS ruleset included in all SaSS based plugin themes.
A new general layout option for Pro Pack users allows site designers to gain access to not just the location data but also Store Locator Plus plugin option values. The new [[slp_option nojs=”<option_name>”]] and [[slp_option js=”<option_name>”]] settings allow site designers to do things like place headers on the map with dynamic messages that change when site options change such as “All distances shown are in <miles>” where miles will change to kilometers if you change the default measurement in the UX settings panel. Many other options such as a fixed default radius and various labels can be displayed using this feature. It is used in conjunction with Enhanced Search to display heading on search box labels that can be changed via the admin panel (coming in the next Enhanced Search release).
The language translation system was extended, providing better internationalization (i18n) and localization (l10n) support for all add-on packs. This has been built into the SLP 4.2 add-on framework.
The state filter processor was refined to eliminate redundant code in Enhanced Search and the upcoming Widget Pack update.
The state and country SQL processors were updated to address various null data issues and to provide slightly faster SQL query processing.
Map Center and Zoom Level have been migrated to the newer options system in Store Locator Plus. This also grants access to the slp_option shortcode in Pro pack for displaying these values such as “Distances calculated from <map center address>.” when a map is first loaded.
Dropped slpplus.initOptions() support. Some older SLP add ons may be deactivated and require an upgrade to a newer version.
Dropped slpplus.is_Extended() support. Some older SLP add ons may be deactivated and require an upgrade to a newer version.
Dropped slplus.register_addon support. Some older SLP add ons may be deactivated and require an upgrade to a newer version.
Dropped slplus.versionCheck() support. Some older SLP add ons may be deactivated and require an upgrade to a newer version.
Added query_slug to slp_location_filters_for_AJAX filter. Default slug is 'standard_location_search'.
Added query_slug to slp_location_having_filters_for_AJAX filter. Default slug is 'standard_location_search'.
Added query_slug to slp_ajaxsql_fullquery filter. Default slug is 'standard_location_search'.
Added query_slug to slp_ajaxsql_queryparams filter. Default slug is 'standard_location_search'.
Added query_slug to slp_ajaxsql_results filter. Default slug is 'standard_location_search'.
Add slp_ajax_execute_location_query_start and slp_ajax_execute_location_query_end actions for AJAX query handling.
Updated symlink path testing.
Add layout support for 3rd party buttons for UML/GFI add on.
Improved WPML support.
The Google Map now responds to changes in the WPML selected language on the user interface.
Drop find label button support for legacy Enhanced Search versions prior to 4.3. Will need to upgrade ES to 4.4+ or use MySLP.
Drop defunct getWPMLText() function, may require legacy add ons to be updated to latest version.
Drop the unused slp_generalsettings_modify_adminpanel filter.
Drop the slplus->addons property. Make break older legacy add on packs. Upgrade the add on packs to version 4.5+.
Drop CSVImport base class. Pro Add On and Tagalong Add On will need to be updated to version 4.5.07.
Search Form Radius selector label is assigned a class of 'empty' or 'text length_<#>' where <#> is the number of characters in the radius label for easier CSS formatting.
Search Form Input boxes now have a class assigned based on whether or not the label is empty. label_empty and label_text make it easier to change the input width based on whether or not a label is present.
Updated Twenty Sixteen Plugin Style to Rev 05. Leverages the new label and input CSS rules.
Restore Store Pages to sidebar menu when active.
Add on framework no longer preloads csl-script (slp.js) when loading the userinterface.js files.
Add a slp_radius_selections filter for Experience add on to augment radius selector drop down with a first entry.
Reduced overhead on admin pages.
Extended Data display on add/edit locations addressed for older extended data manager installations.
Fix blog switching error on multisite installs using Network Activate.
Note: Network Activated Multisite installs using paid add ons should have an active Premier Subscription for proper multisite licensing.
Turn off SSL validation of peers on the update server. If your server's SSL cert is expired/invalid the version check on add on packs will now run anyway.
Save changed to default country conversion to the CCTLD as the slug.
Delete location fully on first attempt when Pages add on is active.
Do not run upgrade of settings overhead when deactivating the plugin.
Multisite installs with Network Activation on the SLPLUS plugin properly migrates all subsite options to the latest release.
Add support for add on pack Apply To All actions
Fix private property warning on upgrade.
New filter slp_extended_data_update to be triggered any time extended location data is being updated.
Eliminate duplicate data save call when updating locations with extended data.
Add a popup notice when the reset manage locations button finishes processing.
Locations / Manage display drop down now warns if you select more than 500 locations at one time.
Locations / Manage display is now an instant-action drop down.
SLP records the active version of jQuery running on the UI on the page with the [slplus] shortcode.
Manage Locations Apply To All button allows actions to run on all locations for addons that are SLP 4.5 aware.
No country index 'unitedstates' on Country Manager when installing in some languages.
Fix Italy CCTLD to 'it' was incorrectly set to 'il'.
If the language translation file for the 'km' setting was not done consistently the km distance calculations would be incorrect.
The 'miles' and 'km' setting for the search form radius setting has moved to the Text Manager class for consistency. Non-English installs will need to update their translations at the MySLP site.
If you create a new translation set for Store Locator Plus for the following languages, please notify firstname.lastname@example.org: de_DE, es_ES, fr_FR, it_IT, ja_JP, lt_LT, pt_BR, sr_RS, zh_CN, zh_TW.
Search Pages & Posts
Like what you are reading? Consider making a donation today. Most people donate $5 to $25, but any amount is appreciated!
Or send something on my Amazon Wish List!