Giter VIP home page Giter VIP logo

bmlt-enabled / crouton Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 14.0 2.81 MB

BMLT Tabbed-based view for Wordpress https://wordpress.org/plugins/crouton/ and any website. https://github.com/bmlt-enabled/crouton/tree/master/croutonjs

License: GNU General Public License v2.0

PHP 6.43% CSS 5.41% JavaScript 85.57% Dockerfile 0.05% Hack 1.62% Makefile 0.05% Handlebars 0.84% HTML 0.03%
bmlt-wordpress-plugin

crouton's Introduction

=== crouton ===

Contributors: odathp, otrok7, radius314, pjaudiomv, californiasteve9390, Paul N, alanb2718, jbraswell
Tags: na, meeting list, meeting finder, maps, recovery, addiction, webservant, bmlt
Requires at least: 4.0
Required PHP: 8.0
Tested up to: 6.4.2
Stable tag: 3.19.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
crouton implements a Tabbed UI for BMLT.

== Description ==

Crouton was forked from BMLT Tabbed UI plugin in 2018.  This plugin provides a Tabbed UI and more for the Basic Meeting List Toolbox (BMLT).  Simply put the shortcode [bmlt_tabs] into a Wordpress page to get your very own tabbed interface to BMLT.  Not into a tabbed interface?  There is a shortcode parameter to display meetings without tabs.  This would be useful for Areas that have fewer meetings.  This plugin also provides various shortcodes to return the number of meetings and groups in specified service bodies.  Please visit settings - BMLT Tabbed UI for shortcode instructions.

== Installation ==

1. Place the 'crouton' folder in your '/wp-content/plugins/' directory.

2. Activate crouton.

3. Enter BMLT Root Server into Settings - BMLT Tabs

4. Enter shortcode into a new or existing Wordpress page.

5. For shortcode usage see Settings - BMLT Tabs.

6. View your site.

7. Adjust the CSS of your theme as needed.

== Screenshots ==

https://demo.bmlt.app/crouton

== Changelog ==

= 3.19.1 =
* Fix compatibility issue with Elementor.

= 3.19.0 =
* Integration with Bmlt2Calendar to provide downloadable ICS files for personal calendars
* Russian Translation

= 3.18.11 =
* Improve accessibility

= 3.18.10 =
* Move QR code generation to a different service.
* Arabic Translation

= 3.18.9 =
* Open Google Directions in a new tab

= 3.18.8 =
* Prevent wheelchair icon from confusing screen readers

= 3.18.7 =
* Show wheelchair character in first column for meetings with a format that corresponds to NAWS WHEELCHAIR.
* Use [init_crouton] for pages with [meeting_count] but no other "main" crouton shortcode.

= 3.18.6 =
* French translation.
* Correctly handle links when default permalinks are used.

= 3.18.5 =
* Assure croutonMap object created.
* Add meetingCount and groupCount methods for backwards compatibility in non-wordpress cases.

= 3.18.4 =
* Do not embed map page when list contains only online meetings (fix for bug #460).

= 3.18.3 =
* Added min_zoom and max_zoom to the shortcode.
* Changed default template to bring up meeting details rather than going directly to google.

= 3.18.2 =
* Bug fix release

= 3.18.1 =
* [meeting_count] and [group_count] have new attribute, "live".  If set to 1, the value is updated to reflect the current state of the filters.
* All other attributes on [meeting_count] and [group_count] are ignored.
* Bug fix release

= 3.18.0 =
* Meeting details as modal popup
* New shortcode, [bmlt_map], presents a mobile friendly, map based interface.
* All Maps can be either OSM or Google Maps
* Admins can set clustering zoom level, above clustering, below, red/blue NA Markers
* Markers show multiple meetings in accordion.  No "spiders".
* Popup text configurable through handlebars.
* Admin page organized into tabs

= 3.17.10 =
* Bug fix release - Fix some PHP warnings

= 3.17.9 =
* Bug fix release - Shortcodes that are called before Enqueue_Scripts

= 3.17.8 =
* Bug fix release - Fix Details-Page with Custom Query

= 3.17.7 =
* Bug fix release - Fix dropdown filter matcher function.

= 3.17.6 =
* Bug fix release - better parsing of <bmlt-handlebar> tags.
* Remove unused admin notice which could cause problems on certain sites.

= 3.17.5 =
* hide meeting-details map if google maps but no api key
* meeting details on crouton_map pages, too

= 3.17.4 =
* bug fix release

= 3.17.1 =
* Meeting Detail Pages are now the Crouton Page, with meeting-id in the query string.  No need for separate pages
* Meeting Detail Pages can now be edited from the crouton admin/settings page.
* All Handlebar Templates edited using codemirror
* Thickbox used to show the values available in templates.
* The choices available in dropdown filters reflect the limitations imposed by the selections in other filters.
* The meeting count reflects the meetings currently visible, after filters are applied.

= 3.17.0 =
* Fix bug where extra meetings were not recognised
* Maps can be embedded, so that users can switch between table and map views, rather than needing to scroll.
* Embedded maps listen to filters
* Map can be implemented by another plugin (bmlt-meeting-map) that uses OSM instead of Google
* Filters can be combined
* Only the needed map implementations are loaded

= 3.16.3 =
* Fix problem causing format popover to close immediately whenever show_map option is on
* Do not include virtual meetings in map.

= 3.16.2 =
* Fix problem map initialization.

= 3.16.1 =
* Fix problem with zebra-striping of filtered views.
* Fix some problems with Bootstrap by including transition.js

= 3.16.0 =
* New shortcode [bmlt_handlebar]:  the contents of the shortcode are interpreted as a handlebarjs template.
  The meeting that will be used when executing the template is determined from the page's query_string, eg,
  query string "?meeting-id=123" means that meeting 123 will supply the data.  Multiple uses of the shortcode are
  allowed on the page.  These pages can be used to provide a detailed web presence for the meeting.
* New partial "> meetingLink" will generate a link to the meeting details page.  The next for the link is the 
  meeting name.
* A map can be added to the meeting detail pages by using the {{{crouton_map}}} helper function.
* Am API has been added for creating custom partials and helpers for use in Handlebars templates, or to customise
  the enrichment of meeting data.
* Special-Interest Dropdown.  This is basically just a filter of the formats dropdown, but because there are so many formats, the formats dropdown is pretty unusable.
* View-By Language and View-By Special-Interest buttons.  Like the view-by city option, but for these format codes.
* 'has_meeting_count' flag, adding a meeting count to the table without the use of an additional [meeting_count] shortcode.
* 'venue_type' added to the [bmlt_tabs] shortcode, to allow for easy filtering of meetings without needing a custom query.

= 3.15.3 =
* Fixed German translation for Friday.

= 3.15.2 =
* Fixed more PHP 8 warnings for attempting to read property on null.
* New option `has_regions` which allows filtering meetings by a parent regional service body.

= 3.15.1 =
* Fixed issue with user agent [#396].
* Fixed various PHP warnings.

= 3.15.0 =
* Added dropdown for Days of the Week, optionally can be turned on with has_days="1".
* If no meetings are listed for a tabbed view day, a message is shown now indicated so.

= 3.14.0 =
* Fixes issue with end times when duration is open-ended. [#385]

= 3.13.0 =
* Make `map_search_auto=true` the default feature for `[crouton_map]` shortcode. [#374]
* Pan + Zoom is no longer an option on map mode, as it's implicit. [#373]
* Theming includes maps now, including dark mode.
* Fix for kevin theme on mobile devices [#370]

= 3.12.8 =
* Fixed an issue with extra meetings not showing up.

= 3.12.7 =
* Fixed an issue with the [service_body_names] shortcode that was introduced in 3.12.6.

= 3.12.6 =
* Added capability to include parent service body details in templates (requires either Tomato or Root Server version 2.16.4 or greater).
* Share button fixes for accents in some text details. [#358]
* Implemented new venue type fields in root server versions 2.16.4 and higher.
* Fix for map search which would not display contact_email_2.
* Loading performance improvements.

= 3.12.5 =
* Added capability to include service body details in templates.
* Fix for empty template issue.

= 3.12.4 =
* Format Meeting Data Template, Metadata Template, and Observer Template to make them easier to modify and extend.
* Fixing missing localization for `it-IT` for the `share` word. [#351]

= 3.12.3 =
* Updates for pt-BR translations.
* Fix for querystring parameters not working on some sites (`this_title`, `sub_title`).  `meeting_count`, `group_count` have been retired. [#317]

= 3.12.2 =
* Share button. [#302]
* Better no meeting message for when no results could be found, actual query is in the javascript console. [#318]
* Added additional Dutch and German translations, fixed missing item for Italian. [#324]
* Additional helper functions for templating for venue types added.  `isInPersonOrHybrid`, `isInPersonOnly`, `isVirtualOrHybrid`.

= 3.12.1 =
* Added a new feature to hide Weekday headers when filtering  `hide_byday_headers="true"`.
* Fixes issue with Weekday headers on filtered view which showing days of the week where there is no data. [#332]

= 3.12.0 =
* Venue Type Dropdown Filter. [#327]
* Fixed blog link for Google API for maps. [#330]

= 3.11.15 =
* Added support for Dutch. [#324]

= 3.11.14 =
* Add support for [service_body_names] shortcode
* Improve documentation of how shortcode parameters interact [#265]

= 3.11.13 =
* Fix for regressions of descriptions with tomato.

= 3.11.12 =
* Fix for descriptions for VM, TC, and HY in non-English languages.

= 3.11.11 =
* Fix for case when there are no formats for a meeting [#309]

= 3.11.10 =
* Allow for different codes for VM, TC, and HY in non-English languages.
* New theme: gold-coast. [#304]

= 3.11.9 =
* Gracefully handle scenarios when there are no format descriptions returned for a specific language.
* Responsive overflow fixes on some elements.
* Added support `croutonjsdebug=1` querystring parameter for disabling minification for croutonjs.

= 3.11.8 =
* Fixed another edge case where meetings on the current day could be sorted incorrectly.

= 3.11.7 =
* Fixed an issue where meetings on the current day could be sorted incorrectly.

= 3.11.6 =
* Added support for upcoming root server time_zone field, primarly for use with virtual-na.org
* New theme: seattle-rain
* New theme: quebec

= 3.11.5 =
* Changed meeting-additional-info css to work better with darker themes.
* Additional Polish (pl-PL) translations. [#283]

= 3.11.4 =
* New theme asheboro to match root server aesthetic.

= 3.11.3 =
* Add field virtual_meeting_additional_info to Meeting Data Template. This is intended to hold information such as a meeting ID and password (requires root server 2.15.4).
* Added observer fields. [#268]

= 3.11.2 =
* Bug fix for handling long URLs in 3rd column. [#231]

= 3.11.1 =
* Bug fix with multi-lingual support. [#254]

= 3.11.0 =
* Custom query support for [crouton_map]. [#242]
* Queries optimized, eliminated one. [#238]
* Support for if/else operators on custom handlebars helpers. [#245]
* Support for VM only meetings through metadata template enhancement. [#249]
* Added hasFormats custom helper.
* Better no query results messaging. [#251]

= 3.10.1 =
* Fixes for hybrid meetings to not include logic with VM + TC.

= 3.10.0 =
* Hybrid meeting support.

= 3.9.6 =
* ru-RU translations.

= 3.9.5 =
* Added the ability to show only unpulished meetings with `include_unpublished="-1"` (requires root server v2.15.2).

= 3.9.4 =
* Added initial map coordinates search feature.
* Added the ability to use new shortcode option `include_unpublished="1"` to display unpublished meetings (requires root server v2.15.2)
* Added new theme: Truth.

= 3.9.3 =
* Compatibility support for WP 5.4.
* Added new theme: Florida-Nights.
* Fix for legacy issue with da-DK in the root server where it doesn't follow ISO 639 standards.

= 3.9.2 =
* Null condition fixes for meeting_data_template and metadata_template.

= 3.9.1 =
* Swedish Translations

= 3.9.0 =
* Native support for Virtual Meetings (VM format) that automatically shows the new virtual_meeting_link and phone_meeting_number (requires root server 2.15.0).
* Native support for QR codes for Virtual Meetings (VM format) with new shortcodes `show_qrcode="1"`.
* Native support for Temporary Closed (TC format) that automatically displays a flag and the description field text.
* Three new themes: Orange Monster, One-Nine and Frog.
* CSS changes to support virtual meetings + responsive displays.
* Fix for configuration screen saved confirmation.
* Removal of misconfigured root server header on admin UI.

= 3.8.8 =
* Fix for MarkerClusterer not working.  [#216]

= 3.8.7 =
* Fix for IE11 by disabling MarkerCluster which isn't supported.

= 3.8.6 =
* Added ability to use train, bus lines and custom BMLT fields.

= 3.8.5 =
* Added feature to allow Handlebars built-in helpers (http://handlebarsjs.com/guide/builtin-helpers.html#if)

= 3.8.4 =
* Fix for metadata_template not pulling non-standard fields.

= 3.8.3 =
* Fix for upgrade issues for 3.8.x for templates. [#212]

= 3.8.2 =
* Fix for template shortcodes not working until you saved on the admin page the first time.

= 3.8.1 =
* Added feature to keep tabs on dropdown filtering (e.g. `filter_tabs="1"`) [#21]
* Added feature to fully customize content template of the 3rd (metadata) column. [#159]

= 3.7.1 =
* Fix for header shortcode not working. [#208]

= 3.7.0 =
* Added new shortcode tag `default_filter_dropdown` for specifying any dropdown default selection (e.g `default_filter_dropdown="formats=closed"`

= 3.6.1 =
* Fix for has_languages dropdown which wasn't working.

= 3.6.0 =
* Added row click and highlight map synchronization [#189]
* Added languages format selection dropdown [#200]
* Added translations for [crouton_map] feature. [#195]

= 3.5.2 =
* Fix for backward compatibility for include_city_button="0" (for hiding City button)

= 3.5.1 =
* Fix javascript null callback error affecting "show_map" shortcode. [#190]

= 3.5.0 =
* Search by map text, click or automatically by location with [crouton_map] shortcode. [#126]
* Added checkbox for using tomato as root server. [#181]
* Added neighborhood dropdown feature. [#175]
* Added "sezf" theme.
* Fixed bug with multiple meetings and clustering before clicking (red pins).
* Swapped red (multiple) and blue (single) meeting pins, for consistency sake.

= 3.4.7 =
* pt-BR translations added.

= 3.4.6 =
* Added on_complete callback for croutonjs
* pl-PL translations added.

= 3.4.5 =
* Fix for localizing Map modal word [#165]

= 3.4.4 =
* fa-IR translations added [#164]

= 3.4.3 =
* de-DE translations added [#162]

= 3.4.2 =
* Added the ability to override the language once already initialized [#163]
* Added media queries patch for "kevin" theme. [#155]
* Fix for meeting formats displaying in the selected language. [#161]
* Fix for bug with Custom CSS escaping.

= 3.4.1 =
* Fix for bug with backward compatibility with `meeting_data_template`.

= 3.4.0 =
* Added the ability to create a custom template for meeting data [#154]
* Added the ability to set pre-packaged CSS themes.

= 3.3.3 =
* Fix for greedy dropdown filtering of formats on HTML attributions. [#152]

= 3.3.2 =
* Fix for regression in the recursive flag behavior. [#149]
* Fixes for Italian translations.

= 3.3.1 =
* Fix for group by sort not working [#147]

= 3.3.0 =
* Added the ability to change the start of the week sequence. [#143]
* Added the ability to create custom group by buttons using `button_filters`.
* All shortcodes can be overridden via querystring for the Wordpress plugin. [#141]
* Fixes for sorting results for auto timezone.

** Breaking Changes **
* #city selector button was replaced with the class .filterButton.
* croutonjs no longer support `include_city_button`, use `button_filters` instead.  Wordpress plugin is not affected, however users should move to `button_filters_options`.

= 3.2.5 =
* Added translation of UK English (en-UK).
* Allowed for setting language via querystring.

= 3.2.4 =
* Added translation for New Zealand and Austrailian English (en-NZ and en-AU).

= 3.2.3 =
* Added translation for US Spanish (es-US).

= 3.2.2 =
* Fixed an edge case with plugins that might use handlebars.js and clash with croutonjs.

= 3.2.0 =
* Added new shortcode option to be able to control sort results.
* Fix for default time sort not working [#132]

= 3.1.1 =
* Several minor bug fixes.
* Extra meetings enabled flag is not always checked now.

= 3.1.0 =
* Distance based searches from browser location now possible
* Adding <div> wrapper to make selection a little better for hiding [#125]

= 3.0.6 =
* Added banner

= 3.0.5 =
* Temporary patch for language information not rendering [#124]

= 3.0.4 =
* Legacy logic regression for parent service bodies [#121]

= 3.0.3 =
* Bundle croutonjs without jQuery for Wordpress which automatically loads it, to prevent clashing [#119]
* Fix for shortcode croutonjs initializing issue [#118]

= 3.0.2 =
* Fix for filemtime calculation for cache busting CSS + JS files for crouton [#117]
* Fix for extra_meetings and several other warnings [#116]
* Using minified versions of crouton.js and crouton.css.

= 3.0.1 =
* Fix for virtual meetings not rendering with WP shortcode [#115]

= 3.0.0 =
* Rewritten to load fully with javascript inside a browser. This is enables usage on any website, not just Wordpress. [#98]
* Text from "comments" field that starts with tel: or http(s) in will be turned into a URL [#104]
* Timezone and auto adjust to users' local timezone, it will also automatically backfill the day if the timezone causes it to shift. [#103]
* Fix for non-display on IE11 [#106]
* Fix for non-display on K-meleon [#114]

= 2.6.0 =
* Added multilingual support [#88]
* Added support for setting distance units (miles, kilometers and nautical miles) [#90]
* Fix for Gutenburg autosave issue [#81]
* Fix for regression with has_tabs="0" and header="0" not group by day [#95]
* Dropdowns and tabs refactored to use client side rendering (speed improvements) [#53]
* Removed used_formats feature which has been deprecated for some time [#100]

= 2.4.2 + 2.5.3 =
* Fix for [meeting_count] and [group_count] render issues if they appeared after [bmlt_tabs] [#86]

= 2.4.1 =
* Fix for empty div with the new map feature [#87]

= 2.4.0 =
* Added companion map feature. [#52]
* More robust way to count groups. [#85]
* Added case-insensitive sorting.

= 2.3.2 =
* Version bump, IE fix for city view.

= 2.3.1 =
* Added ability to only display used formats. [#73]
* Fixed support for Internet Explorer. [#72]

= 2.3.0 =
* Added ability to add extra meetings. [#66]
* Fixed default caching to be disabled and generally broken caching mechanism.
* Added debugging capabilities to the docker image.

= 2.2.1 =
* Selected dropdown option not always being respected for new searchable dropdown, however selected option was. [#64]

= 2.2.0 =
* Add chosen for searchable dropdown service body config. [#60]

= 2.1.4 =
* Another fix for greedy url handling. [#57]

= 2.1.3 =
* Fixed a bug with greedy file path handling causing root server URLs to be munged. [#57]

= 2.1.2 =
* Made an error in the minimum version required.

= 2.1.1 =
* Tested for 5.0.0

= 2.1.0 =
* Added state-dropdown option.
* Fixed some issues with how CSS was applied to the buttons with Javascript, instead applying classes.
* Bug fix javascript error for when [meeting_count] or [group_count] is used alone. [#54]
* Bug fix for custom query in shortcode which wasn't working at all [#50]

= 2.0.0 =
* Major rewrite to render the plugin on the client side.
* Time formatting has been reimplemented using moment.js (this is a breaking change, use these format codes http://momentjs.com/docs/#/displaying/, "HH:mm" for 24hr formatting)
* Added the ability to recurse service bodies.
* Added the ability to do custom queries at a default, shortcode and url level.
* Added the ability to set and save custom CSS from the admininstration section.
* Added sub-province (county) dropdown option.
* Added area-dropdown option.
* Added option to show distance to meeting. This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. A list of supported browsers can be found here https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition#Browser_compatibility.
* Compatability fixes for PHP 7.2.9
* Removed hardcodings

= 1.0.1 =
* Some code cleanups.
* Disabled broken geolocation lookups until it can be reimplemented.

= 1.0.0 =
* Forked from "bmlt-tabbed-ui" plugin.

crouton's People

Contributors

abna-brasil avatar alanb2718 avatar californiasteve avatar dependabot[bot] avatar dgershman avatar jbraswell avatar klgrimley avatar klodd65 avatar otrok7 avatar paulnagle avatar pjaudiomv avatar tempsaint avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

crouton's Issues

show distance does not show when a dropdown menu is selected

If show_distance='1' is set and you select a drop down weather it be city, group, area etc. the meetings then get listed by day without the day tabs and the distances go away. it passes right over the if ( $show_distance == '1' ) statement for viewing map link and goes right to the else statement displaying just the map. not sure weather its a js thing or just not checking to see if that variable is set. seeking help but will continue to check it out. @radius314

24hr time display doesnt work

I used the following shortcode....
[bmlt_tabs time_format="G:i"]

The time was still displayed as 12hr am/pm style.

screenshot 2018-10-02 at 21 16 29

I tried clearing the cache a couple of times, it didn't make any difference.

I also tried [bmlt_tabs time_format="G"] and [bmlt_tabs time_format="H:i"] but always got the 12hr time.

Keep weekday tabs for each list

It would be nice if we could keep the weekday tabs when selecting a secondary dropdown like "Counties" or "Cities"... So every display in Crouton would be tabbed by weekday, and then filtered by the drop down list. Does that make sense? Currently when you choose any of the dropdowns, the weekday tabs are lost.

Make crouton more mobile friendly

When on mobile devices crouton currently just goes to a day list, it would be nice to make the plugin more mobile friendly and responsive so you could see some of the tabs and or drop downs.

Area tab

Some of areas are great but others included some meetings out of the tab-displayed area .

WP 5.0.0 compatibility testing

WP 5.0.0 comes out November 19th.

Spin up an instance (possibly docker) with 5.0.0 RC1 and test out the plugin.

Also 5.0.0 will require PHP 7.3.x

Add area tab support

though maybe not recommended for large data sets this seems to be a common request. the ability to sort and view by area. this would be added as an option and dropdown.

performance tuning

this thing gets exponentially slower with more data, a big smell here.

custom query shortcode not working

never tested the damn shortcode. the custom query box works fine in the settings but when using it as a shortcode it doesnt seem to be working. im doing &meeting_key=location_province&meeting_key_value=NC If i enter it in settings its fine. if i remove it from settings and add it as shortcode attribute its not happy.

Refactor Dropdowns and Tabs

After Crouton 2.0.0 was released, all the table data was moved to the client side. We introduced client-side templating using Handlebars.js. This has made the code very maintainable.

The code could benefit from an additional refactor of moving the rendering of the toolbar (dropdowns, buttons, and tabs) to also be rendered on the client side.

This would be a nice weekend project for someone who wants to get their feet wet.

Extra commas in addresses

2.0.0-beta
There are extra commas displayed in some addresses. The bmlt that crouton is pointing to in this case doesn't have all of the address fields filled out in every meeting listing.

screenshot 2018-10-02 at 18 59 25

Remove hardcoding

remove hardcoding of any functions, specifically around format handling

selected dropdown option not always displaying right

the selected dropdown option wasn't always displaying depending on certain characters in service body name. the option would save correctly and work but the selected value wouldn't display on dropdown. this is how bread does it and escaping them should fix this. found this when saving "Martha's Vineyard" didn't like the apostrophe and the selected value would default to the first (in my case Boston). This issue did exist in previous versions and was not newly introduced.

Fix geolocation

specifically for displaying the distance in miles to users location, and possibly adding this as an option

PHP error when using php 7.2.9

I see these errors in my wordpress test install using php 7.2.9

Warning: Use of undefined constant latitude - assumed 'latitude' (this will throw an Error in a future version of PHP) in /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/crouton/crouton.php on line 766

Warning: Use of undefined constant longitude - assumed 'longitude' (this will throw an Error in a future version of PHP) in /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/plugins/crouton/crouton.php on line 766

https://github.com/radius314/crouton/blob/e92350a11d4de6651d11dbb10cfd83b903ee0717/crouton.php#L766

Think this needs to be changed to include single quotes around latitude and longitude for later versions of php

$map = "<a target='_blank' href='https://maps.google.com/maps?q=" . $value['latitude'] . "," . $value['longitude'] . "' id='map-button' class='btn btn-primary btn-xs'><span class='glyphicon glyphicon-map-marker'></span>MAP</a>";

crouton doesn't display on ie11

I get the following errors on ie11 and crouton doesn't display, I realize that probably less than 5% of people use ie11 so this may not be that big of a deal but if there was an easy fix we should probably do it.

SCRIPT1004: Expected ';'
meetings (328,17)
SCRIPT1004: Expected ';'
bmlt_tabs.js (314,15)
SCRIPT5009: 'getMeetings' is undefined
meetings (242,4)

Strange Bug That *MAY* Be Crouton

This happens on the GNYR Server. I haven't tested it on others.

We are running the latest WP, PHP 7.2.10, latest MySQL (I think 5.6.X). Latest Crouton, pointing to the GNYR Root Server: https://bmlt.newyorkna.org/main_server/

WAY too many plugins. It's sick. I'm embarrassed.

In any case on this page. I entered ONLY this code (the display is as a block, but this happens without the wrappers, where the only code on the page is the shortcode): https://newyorkna.org/meetings/tabbed-searches/long-island-tabbed-search/

Here is the entire page code:

[bmlt_tabs service_body="1001,1002,1003,1004,1067"]

If you see the attached image, I'm told that "updating failed" each time I hit the "UPDATE" button, and I'm told I have a newer autosave the next time I go into that page, but the code in the page is actually up to date (if you can see "Choose Your Weapon" on Saturday morning, then the new code is effective).

screengrab 2019-01-05 at 2 20 14 pm

Companion Map

A nice add-on would be to allow someone (from the admin UI) supply a google javascript api key. This key would allow for taking the visible results of what's the tabs and display it on a map.

As you tab through (essentially filtering) the map should update.

Great project for someone who is seasoned but wants to get involved

Make the html fully load from the client side.

crouton should be initialized by a javascript object that takes options. Wordpress should just call this. All the data would load up on the client side using jsonp. By doing this crouton would be useable outside Wordpress.

Non [bmlt_tabs] shortcode

I've created a page here to demonstrate the error. https://centralindianana.org/curton-issue/

Uncaught ReferenceError: config is not defined

Issue presents when a Crouton shortcode, other then one to generate the table of meetings, is on a page. If both are on a page then there is no issue.

On the created page this causes the logo to not load. On mobile for this site it causes the nav menu to not open.

Wrapping lines 72 - 83 and 227 in the following seems to fix the issue
if(typeof config !== 'undefined'){}

Only display used formats

with the advent of lettuce merged servers, it would be nice if crouton only displayed used formats as opposed to all formats in the server.
I imagine this could be done with the format_shared_id_list of each meeting

regression from 2.4.1 to 2.4.2

when using [bmlt_tabs has_tabs="0" header="0"] the meetings are not viewing properly. this worked fine in 2.4.1 but broke in 2.4.2. the issue can be traced to the addition of this code.

crouton/js/bmlt_tabs.js

Lines 79 to 81 in ee5fd48

if (typeof croutonConfig == 'undefined') {
var croutonConfig = [];
}

if i remove that it displays fine.

before 2.4.2 this is how meetings displayed
Screen Shot 2019-03-10 at 9 32 57 PM

and with 2.4.2 I get this
Screen Shot 2019-03-10 at 9 32 10 PM

Distance to meeting

Instruction to do this says "User has to have geolocation permissions turned on."

Turned on where?

Tabs not Displaying

I installed a new 2.1.3 on two different sites and neither are rendering the tabs. Here's a screenshot of the source.
image

State dropdown option

now that plugin is super fast, we can point it at larger data sets, would be nice to have a states dropdown as well. This could become more useful #21 gets implemented but still would be ncie to have in meantime. See PR

BMLT Root Server URL will not save

Not sure if this only happens when you have already installed BMLT Tabbed UI v6.0.14 or not but if you do and then try to install crouton the BMLT Root Server URL will not save. You get a message that the URL has been saved but it does not appear in the "Default Root Server:" space. Trying to uninstall 6.0.14 and reinstall 6.0.12, will allow you to save the Default Root Server but then trying to install crouton will undo the save and act like 6.0.14.

exclude zip codes not working

this seems like a silly option, but I was doing some testing and everything seems to be pretty good. however could not get exclude_zip_codes to work.

Meetings with no "Meeting Name"

2.0.0-beta
In BMLT if a meeting has no "Meeting Name" then the "Meeting Name" gets auto-populated with "NA Meeting"

screenshot 2018-10-02 at 21 00 41

Perhaps it would be better if "NA Meeting" wasn't displayed as the "Meeting Name" in these cases?

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.