If it’s a broadly-applicable meeting type, please ask us in the support forum. We must maintain consistency for the mobile apps, so not all proposals are accepted.
If you have access to your theme’s functions.php, you may add additional meeting types or rename existing ones. Simply adapt the following example to your purposes:
if (function_exists('tsml_custom_types')) {
tsml_custom_types(array(
'XYZ' => 'My Custom Type',
));
}
Please note a few things about custom types:
- Once you’ve added the type, you will see it under ‘More’ on the Meeting edit screen. It will show up in the dropdown once you use it on a meeting.
- Be careful with the codes (“XYZ” in the above example) as this gives you the ability to replace existing types.
- Note that custom meeting types are not imported into the Meeting Guide app.
- 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.
- 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.
It depends on your Permalinks setup. The easiest way to find the link is to go to the Dashboard > Meetings > Import & Settings page and look for it under “Where’s My Info?”
We get our geocoding positions from Google (this true even if your maps are by Mapbox). Google is correct an amazing amount of the time, but not always. If you need to add a custom location, add this to your theme’s functions.php.
Note you can add multiple entries to the array below.
if (function_exists('tsml_custom_types')) {
tsml_custom_addresses(array(
'5 Avenue Anatole France, 75007 Paris, France' => array(
'formatted_address' => '5 Avenue Anatole France, 75007 Paris, France',
'city' => 'Paris',
'latitude' => 48.858372,
'longitude' => 2.294481,
),
));
}
No problem, just add this CSS to your theme:
div#tsml #meetings .controls ul.dropdown-menu div.expand { display: none; }
div#tsml #meetings .controls ul.dropdown-menu ul.children { height: auto; }
The easiest way is to link to that view straight from your navigation. Usually that looks like /meetings/?tsml-day=any
, but it can vary depending on your settings.
If you’d prefer to keep the default address, you could add this code to your theme’s functions.php instead:
$tsml_defaults['day'] = null;
Add this to your theme’s functions.php. The value should be an existing value, ie 1, 5, 10, 25 or 50.
$tsml_defaults['distance'] = 25;
Add this to your theme’s functions.php.
$tsml_street_only = false;
Add this to your theme’s functions.php. Feel free to change the order or column names (eg ‘Region’) but keep the keys the same (eg ‘region’).
$tsml_columns = array(
'region' => 'Region',
'time' => 'Time',
'distance' => 'Distance',
'name' => 'Name',
'location' => 'Location',
'address' => 'Address',
'types' => 'Types'
);
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_by = 'region'; //options are name, location, address, time, or region
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. 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.
Please note these pages will evolve over time. If you override, you will someday experience website errors after an update. If that happens, please update your theme’s copy of the plugin pages.
To see types in the meeting list, one way to do it is to add some CSS to your theme which will make a types column visible.
@media screen and (min-width: 768px) {
div#tsml #meetings .types { display: table-cell !important; }
}
One drawback of this approach is that it shows all the meeting types, and you might not want all of them to be displayed over and over in the meeting list.
Another approach is to adjust which meeting types are “flagged” in the meeting names, by default for most programs this is /Men and /Women. To adjust this, find the meeting type code for each type you want to show and include it in your theme’s functions.php like this:
if (function_exists('tsml_custom_flags')) {
tsml_custom_flags(array('M', 'W', 'O', 'C'));
}
The code above will add “Open” and “Closed” flags to the meeting name.
Yes, with CSS. Rows that have meeting notes will have a ‘notes’ class. To add an asterisk, for example, try this:
div#tsml tr.notes a:after { content: "*"; }
If you don’t mind some PHP programming, then yes! Create a function called tsml_import_reformat
, and use it to
reformat your incoming data to the standard format
if (!function_exists('tsml_import_reformat')) {
function tsml_import_reformat($meetings) {
//your code goes here
return $meetings;
}
}
You can make use of the gettext filter to override the plugin’s translation strings. For example, if you wanted to replace ‘Region’ with ‘City,’ 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 'City';
}
}
return $translated_text;
}
add_filter('gettext', 'theme_override_tsml_strings', 20, 3);
Save it as a draft by editing the meeting’s Status.
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.
Additionally, you can use [tsml_types_list]
and [tsml_regions_list]
to output linked lists to your meeting finder.
It is translated into Polish. If you would like to volunteer to help translate another language, we would be pleased to work with you.
That’s right, we don’t display that information by default for the sake of anonymity. To display it in your theme, go to Import & Settings and set the Meeting/Group Contacts dropdown to “public.”
Sure. Try adding this code to your theme’s functions.php:
add_action('pre_get_posts', 'tsml_front_page');
Also check out our One Page Meeting List theme.
No, there’s not a good way to do this at this time. All meetings currently need to have a geographic location.
Some sites have used a general geographic area, such as a city name, but this isn’t a very good solution, because a map
pin will still show up for these meetings and people will try to get directions to them.
Yes, try setting the $tsml_slug variable in your functions.php.
$tsml_slug = 'schedule';
To apply these changes, you must go to Settings > Permalinks and click “Save Changes”