=== 12 Step Meeting List === Contributors: meetingguide, aasanjose Tags: 12-step, aa, al-anon, coda, meetings, na, oa, saa, slaa Requires at least: 3.2 Tested up to: 4.8 Stable tag: 2.12.10 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html This plugin helps 12 step programs list their meetings. It standardizes addresses, and displays results in a searchable list and map. == Description == This plugin is the easiest way to have your area's meetings listed in the [Meeting Guide mobile app](https://meetingguide.org/) for iOS and Android devices. It was originally designed to maintain a list of AA meetings in Santa Clara County, CA. It's now in use in the following areas: **Alcoholics Anonymous** 1. [Arkansas](http://arkansascentraloffice.org/meetings/) 1. [Austin, TX](http://austinaa.org/meetings/) 1. [Baton Rouge, LA](http://aabatonrouge.org/meetings/) 1. [Bowling Green, KY](http://bowlinggreenaa.org/meetings/) 1. [Charleston, WV](http://aawvdist1.org/wordpress/?post_type=tsml_meeting) 1. [Charlotte, NC](http://charlotteaa.org/meetings/) 1. [Continental Europe](http://alcoholics-anonymous.eu/meetings/) 1. [Corpus Christi, TX](http://www.cbiaa.org/meetings/) 1. [Davis, CA](http://aadavis.org/meetings/) 1. [DuPage County, IL](http://dist41.aa-nia.org/meetings/) 1. [East Bay, CA](http://eastbayaa.org/meetings) 1. [Elk Grove Village, IL](http://d15aa.org/d15aa.org/?post_type=meetings) 1. [Fargo, ND](http://www.fmmeetinglist.org/meetings/) 1. [Ft. Worth, TX](http://fortworthaa.org/?post_type=tsml_meeting) 1. [Greensboro, NC](http://nc23.org/meetings/) 1. [Harrisburg, PA](http://www.aaharrisburg.org/meetings/) 1. [Joliet, IL](http://aadistrict51.org/meetings/) 1. [Midlands, UK (Polish)](http://intergrupamidlands.co.uk/meetings/) 1. [Kansas](https://ks-aa.org/meetings/) 1. [Lewis County, WA](http://lewiscountyaa.org/meetings/) 1. [Long Beach, CA](https://hacoaa.org/meetings/) 1. [Maine and New Brunswick](http://csoaamaine.org/meetings/) 1. [Maui, HI](http://aamaui.org/meetings) 1. [Mesa, AZ](http://aamesaaz.org/meetings/) 1. [Miami, FL](https://aamiamidade.org/meetings) 1. [Minneapolis, MN](http://aaminneapolis.org/meetings/) 1. [Mississippi](http://www.aa-mississippi.org/meetings/) 1. [Modesto, CA](http://wp.cviaa.org/meetings/) 1. [Naples, FL](http://aanaples.org/meetings/) 1. [New Hampshire](http://nhaa.net/meetings/) 1. [New Orleans, LA](http://www.aaneworleans.org/meetings/) 1. [New Mexico](https://nm-aa.org/meetings/) 1. [New York, NY](https://www.nyintergroup.org/meetings/) 1. [Oahu, HI](http://oahucentraloffice.com/meetings/) 1. [Orlando, FL](http://cflintergroup.org/meetings/) 1. [Philadelphia, PA](http://www.aasepia.org/meetings/) 1. [Portland, OR](http://home.pdxaa.org/meetings/) 1. [Rochester, MN](http://aadistrict1.org/blog/meetings/) 1. [Sacramento, CA](http://aasacramento.org/meetings/) 1. [San Jose, CA](https://aasanjose.org/meetings) 1. [San Mateo, CA](http://aa-san-mateo.org/meetings) 1. [Santa Fe, NM](http://santafeaa.org/meetings/) 1. [Savannah, GA](http://savannahaa.com/meetings-list/) 1. [Secular AA](https://www.secularaa.org/meetings/) 1. [Southern Colorado](http://www.puebloaa.org/meetings/) 1. [Sonoma County, CA](http://www.sonomacountyaa.org/meetings/) 1. [St. Louis, MO](https://aastl.org/meetings/) 1. [State College, PA](http://www.district43.com/meetings/) 1. [Tidewater Area, VA](http://www.tidewaterintergroup.org/meetings/) 1. [Toronto, Canada](https://aatoronto.org/meetings/) 1. [Tri Valley, CA](http://trivalleyaa.org/meetings/) 1. [Topeka, KS](http://aatopeka.org/meetings/) 1. [Tulsa, OK](http://district40aa.com/meetings) 1. [Vancouver, Canada](http://www.vancouveraa.ca/meetings/) 1. [Vienna, Austria](https://www.aavienna.com/meetings/) 1. [Virginia](https://aavirginia.org/meetings/) 1. [Walnut Creek, CA](http://contracostaaa.org/meetings) 1. [Warsaw, IN](http://www.aadistrict4143.com/meetings/) 1. [Washington, DC](https://aa-dc.org/meetings) 1. [West Hawaii, HI](http://www.westhawaiiaa.org/meetings/) 1. [West-Central Wisconsin](http://www.district05.org/meetings/) 1. [Western Slope, CA](http://westernsloped22.org/meetings/) 1. [Western Kentucky](http://wkintergroup.org/meetings/) 1. [Western Washington](http://area72aa.org/meetings/) 1. [Wilmington, DE](http://ndiaa.org/meetings/) 1. [Woodstock, IL](http://aa-nia-dist11.org/meetings/) **Adult Children of Alcoholics** 1. [Southern California](http://www.socalaca.org/meetings/?d=any) 1. [Texas](http://lonestaraca.org/meetings/) **Al-Anon** 1. [Lancaster, PA](http://lanclebalanon.org/meetings/?d=any) 1. [Orange County, CA](http://ocalanon-d60.org/meetings?d=any) 1. [Pennsylvania](http://pa-al-anon.org/meetings/) **Codependents Anonymous** 1. [Los Angeles, CA](http://www.lacoda.org/) **Narcotics Anonymous** 1. [Chinook, CA](http://chinookna.org/meetings/) 1. [Maine](http://www.namaine.org/meetings/) 1. [Poland](http://anonimowinarkomani.org/meetings/) **Sex Addicts Anonymous** 1. [Indiana](http://indiana-saa.org/meetings/) [Let us know](mailto:info@meetingguide.org) if you're using this plugin and would like to be listed here. **Sexaholics Anonymous** 1. [St. Louis, MO](http://www.sastl.net/meetings/?tsml-day=any) = Notes = * The Meeting Notes field is for any non-standardized meeting info, such as Basement, or Building C * Location should be a simple place-name, eg Queen of the Valley Hospital * Address should only be the address; no "Upstairs" or "Building C" or "Near 2nd Ave" * You can fill in a very basic address and then when you tab away from that field you will see it try to standardize the address for you. If you write "1000 trancas, napa" it will replace it with "1000 Trancas St, Napa, CA 94558, USA." == Installation == Basically you can just install it and you should be good to go. For a quick walkthrough of the process, check out this screencast video: [youtube https://www.youtube.com/watch?v=Qqg1RPX-FTQ] == Frequently Asked Questions == = My meeting type isn't listed! = If it's a broadly-applicable meeting type, please [contact us](mailto:wordpress@meetingguide.org) so we can include it for you. We want to maintain consistency for the [mobile apps](https://meetingguide.org/), so not all proposals are included. If you have access to your theme's functions.php, you may add additional meeting types for your area. Simply adapt the following example to your purposes: if (function_exists('tsml_custom_types')) { tsml_custom_types(array( 'ABSI' => 'As Bill Sees It', )); } Please note a few things about custom types: 1. Be careful with the codes ("ASBI" in the above example) as this gives you the ability to replace existing types. 1. Note that custom meeting types are not imported into the Meeting Guide app. 1. They are for searching. If you can't imagine yourself searching for a meeting this way, then it's probably not a type you need. Have you ever searched for a 90-minute meeting? If not, then it's probably information that better belongs in the meeting notes. 1. Don't add a type for the default, eg 'Hour Long Meeting' or 'Non-Smoking.' If you do that, then you have to be careful about tagging every single meeting in order to make the data complete. = I don't like the new expandable regions dropdown menu! How do I remove it? = No problem, just add this CSS to your theme: div#meetings .controls ul.dropdown-menu div.expand { display: none; } div#meetings .controls ul.dropdown-menu ul.children { height: auto; } = How do I change the default search radius for location searches? = Add this to your functions.php. The value should be an existing value, ie 1, 5, 10, 25 or 50. $tsml_defaults['distance'] = 25; = How can I get the meeting list to display the full address, including city, state and country? = Add this to your functions.php. $tsml_street_only = false; = How can I have the plugin reformat the meeting list on the fly while importing it? = To uppercase the location of each meeting, for example, add this to your functions.php. if (!function_exists('tsml_import_reformat')) { function tsml_import_reformat($meetings) { //element 4 of each CSV row might be the meeting location (count starting with 0) foreach ($meetings as &$meeting) { $meeting[4] = mb_strtoupper($meeting[4]); } return $meetings; } } = Where are my meetings listed? = Your meetings will be listed on their special WordPress Archive page. Where that is depends on your Permalinks setup. The easiest way to find the link is to go to the **Meetings > Import & Settings** page and look for the link under "Where's My Info?" = How can I change some of the text on the template pages? = You can make use of the [gettext filter](https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext) to override the plugin's translation strings. For example, if you wanted to replace 'Region' with 'Province,' you could add the following to your functions.php file. function theme_override_tsml_strings($translated_text, $text, $domain) { if ($domain == '12-step-meeting-list') { switch ($translated_text) { case 'Region': return 'Province'; } } return $translated_text; } add_filter('gettext', 'theme_override_tsml_strings', 20, 3); = How can I change the default sort order on the meeting list page? = By default, the plugin sorts by day, then time, then location name. To set your own sort index, add this to your functions.php: $tsml_sort_order = 'region'; //options are name, location, address, time, or region = How can I override the meeting list or detail pages? = Copy the files from the plugin's templates directory into your theme's root directory. If you're using a theme from the Theme Directory, you may be better off creating a [Child Theme](https://codex.wordpress.org/Child_Themes). Now, you may override those pages. The archive-meetings.php file controls the meeting list page, single-meetings.php controls the meetings detail, and single-locations.php controls the location detail. = Are there any shortcodes? = Yes, you can use `[tsml_meeting_count]`, `[tsml_location_count]`, `[tsml_group_count]`, and `[tsml_region_count]` to display human-formatted counts of your entities. For example, "Our area currently comprises [tsml_meeting_count] meetings." Also `[tsml_next_meetings count="5"]` displays a small table with the next several meetings in it. Use the `count` parameter to adjust how many are displayed. This will be unstyled if you're not using bootstrap in your theme. = Are there translations to other languages? = It is translated into Polish. If you would like to volunteer to help translate another language, we would be pleased to work with you. = I entered contact information into the meeting edit page but don't see it displayed on the site. = That's right, we don't display that information by default for the sake of anonymity. To display it in your theme, you should follow the instructions above for overriding the meeting detail and location detail pages and then drop some or all of these tags in your PHP: contact_1_name?> contact_1_email?> contact_1_phone?> = Can I run this as my main website homepage? = Sure. Try this code: add_action('pre_get_posts', 'tsml_front_page'); Also check out our [One Page Meeting List](https://github.com/meeting-guide/one-page-meeting-list) theme. == Screenshots == 1. Meeting list page 1. Meeting map 1. Meeting detail page 1. Edit meeting 1. Edit location == Changelog == = 2.12.10 = * FNV import not as dependent on the number of columns = 2.12.9 = * CSS fix for mobile devices if columns have been reordered = 2.12.8 = * Now able to set the order of the columns * Adding meeting type for English per Quebec = 2.12.7 = * Version bump = 2.12.6 = * Fixing default sort = 2.12.5 = * Now able to set sort order on meetings page = 2.12.4 = * Now able to import FNV format meeting data = 2.12.3 = * Appearance improvements for the Catch Box WP theme = 2.12.2 = * New App Store widget for Meeting Guide (per NIA District 11) * CSS option for upcoming meetings widget = 2.12.1 = * Importer fix (Sunday meetings were importing as 'by appointment') * Location notes were also getting imported as meeting notes * Main map now scrollable with mouse wheel, per Austin * Detail page map now no longer scrollable with mouse wheel * Meeting admin page warning if meeting is from an external data source * CSV meeting times now in 24 hour format * Refactoring javascript on detail pages to lighten server load * Meeting detail page location name moved to location link (rather than address link) * Fixing sidebar notice formatting on import page = 2.12 = * Importing from JSON data sources * Tweak to feedback form per Philadelphia = 2.11.9 = * Group website, email, and phone fields = 2.11.8 = * Fix for title tag issue reported by Toronto = 2.11.7 = * Improved page title for meeting list page * New plugin screenshots = 2.11.6 = * SEO improvements for meeting list page * Readme code fix = 2.11.5 = * Removing code that was causing problem in IE * Fixing NYC types issue in another way * Giving more room to day column so that the word 'Wednesday' doesn't overlap on mobile * Better securing group contact information * Hopefully fixing readme formatting issue = 2.11.4 = * Fix per NYC: overriding situations where the types come out as an object, rather than an array * Removing autofocus on Search, makes the input borderless in some browsers * Increasing search field font size to prevent zooming when focusing * Overriding address issue in Pennsylvania = 2.11.3 = * Search logic fixes per Oakland = 2.11.2 = * Fixed bug causing filters to reset when no results * Fixed bug preventing settings forms from submitting on Chrome for PC = 2.11.1 = * Tweaking the button spacing on meeting feedback form = 2.11 = * Tweaking meeting types (Beginner -> Newcomer, Chips -> Birthday, Topic Discussion -> Discussion, removing Daily, adding often-requested literature types) * Expandable types list on meeting edit screen * Fallback for javascript errors on meeting edit screen