Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author brianwarea24

    (@brianwarea24)

    Hey @chip902, I’m not aware of anything you can put in the URL to do this, maybe @tech2serve knows of a way to do that. However, if I understand your question correctly, you may be able to do it by adding a couple lines of CSS, probably under customize appearance part of your theme.

    
    #tsml #meetings .results table tbody tr.type-tc {display:none;}
    #tsml #meetings .results table tbody tr.type-onl {display:table-row;}

    All your meetings are still on the page, but the CSS is telling the browser not to display them. A couple downsides of this are that the background colors don’t alternate correctly, and this will hide the Loc temp closed meetings on all meeting listings from the tsml plugin.

    Plugin Author brianwarea24

    (@brianwarea24)

    I looked in the Meeting Guide App, and found a couple of the LOH meetings. I then clicked on these meetings, and clicked the “View Web Page” button. This took me to the meeting page on a neighboring city’s intergroup site. What this means is that the Meeting Guide App is getting it’s information about these meetings from that neighboring site, not from your site.

    I think you have at least 3 courses of action you can take:

    • If that neighboring site is getting a feed from your site, then you should ask them to refresh the feed from your site, which will update their site, and the meetings will show closed in Meeting Guide in a few hours.
    • If they are not getting a feed from you, you can ask them to manually mark the meetings as Temporary Closure. The update of the 12 Step Meeting List plugin that was released today will help them do that easier.
    • You could contact GSO, and ask them to switch these meetings from the other site to your site. If they do that, then your changes would go into Meeting Guide.
    • This reply was modified 6 years, 2 months ago by brianwarea24.
    Plugin Author brianwarea24

    (@brianwarea24)

    Your Intergroup will need to give you the URL. Here’s how they would generate a URL for you.

    • Go to Dashboard in WordPress
    • Select “Import & Settings” under Meetings
    • In the right-hand column scroll down to “Authorized Apps”
    • Put the District Name in the textbox and click Add
    • Scroll down to “Authorized Apps” again
    • Right click on the link for your district, and select Copy Link Location
    • Paste this URL into an email message to you

    I prefer generating a new URL for each place that’s using my feed as described. Helps me remember who is using it.

    Plugin Author brianwarea24

    (@brianwarea24)

    @octotoot Thanks, glad to share how I did that!

    It’s a two step process. First step was to change the meeting types that are “flagged” in the meeting name as described in the FAQ, under the question “Can I see types in the meeting list?” The code I added to the theme’s functions.php file included all the types our site uses:

    
    // Added for 12 Step Meeting Guide plugin
    if (function_exists('tsml_custom_flags')) {
                    tsml_custom_flags(array('M', 'W', 'O', 'C', '11', '12x12', 'B', 'DR', 'D', 'GR', 'LS', 'LGBTQ', 'BE', 'SP', 'BA', 'SM'));
    }
    

    Next, I customized the theme to add some additional CSS:

    
    tbody#meetings_tbody small{font-size:0.6em !important; display:none;}
    tbody#meetings_tbody small:after{content:")";}
    tbody#meetings_tbody small:before{content:"(" !important;}
    div#tsml div#meetings div.results:before {content:"* Closed meetings are for people who want to quit drinking. Anyone is welcome at Open meetings.";font-size:0.65em; padding:5px 0 20px 15px;}
    
    div#tsml #meetings .types { display: table-cell !important; font-size:0.6em; }
    div#tsml #meetings .types:before { content:"("; }
    div#tsml #meetings .types:after { content:")"; }
    @media screen and (min-width: 768px) {
        div#tsml #meetings .types { display:none !important; }
        tbody#meetings_tbody small{display:block;}
    }
    
    Plugin Author brianwarea24

    (@brianwarea24)

    Is your time zone set correctly under Settings->general? For example, on that setting page on my test server, it says:

    Universal time is 2019-12-12 23:39:02. Local time is 2019-12-12 17:39:02

    Is it showing the correct local time for you?

    Plugin Author brianwarea24

    (@brianwarea24)

    Add the following code to your theme’s functions.php file.

    if (function_exists('tsml_custom_types')) {
        tsml_custom_types(array(
            'LGBTQ' => 'LGBTQ+',
        ));
    }

    This is just replacing a meeting type, as is mentioned in the FAQ under My meeting type isn’t listed

    I think the functions.php will get overwritten when your theme updates. If you’re worried about that, you could make a subtheme, then add this code to the subtheme.

    Plugin Author brianwarea24

    (@brianwarea24)

    When you select a different day, time, or region, you are actually clicking on a link to a new page. Just that the page is using styles to make a these lists of links look like a dropdown lists.

    I’m wondering, at the times when it doesn’t refresh, if you don’t make another selection, does it eventually refresh, and if so, how long does that take? In other words, does it not refresh at all, or does it just take longer than expected to refresh?

    Plugin Author brianwarea24

    (@brianwarea24)

    When I looked at your link, it appear you’ve figured out a way to do it, which is great. However, I wanted to share a way I added some text to https://www.aacentraliowa.org/meetings. I did this through CSS by adding:

    div#tsml div#meetings div.results:before {content:"* Closed meetings are for people who want to quit drinking. Anyone is welcome at Open meetings.";font-size:0.65em; padding:5px 0 20px 15px;}

    Using this method though CSS, I did not find a way to include html tags, such as hyperlinks, it’s just straight text.

    • This reply was modified 6 years, 6 months ago by brianwarea24.
    Plugin Author brianwarea24

    (@brianwarea24)

    Close… but not quite. @ldigioia is talking about about Meeting Guide, and yes, it should hand the duplicates. The meetings should only appear once in Meeting Guide.

    However, area in this case, would have duplicates because it’s getting meetings from both intergroup sites. My assumption, of course, is area, district, and the 2 intergroup sites are all WordPress sites running this plugin.

    It’s on my todo list to work on the the way feeds are handled in the plugin, to try to reduce the possibility of duplicate meetings. However, like most people, my “in my spare time” time is limited 🙂

    Plugin Author brianwarea24

    (@brianwarea24)

    That’s also the way I understand how Meeting Guide works.

    However, if you are feeding meetings from a WordPress site using the 12 Step Meeting List plugin into another WordPress site, then it does not filter out duplicates.

    For example, the Area website in Area 24 keeps a list of meetings in the area. When I brought up a site for District 3 in Area 24, I had the webmaster delete all the meetings for my district from the Area site. Then he set up a “Data Source” to pull the District 3 meetings into his site through this feed. Then, when I make a change to a meeting, I email him, and he clicks the button to refresh the data source, which pulls in my changes.

    Both the Area feed, and the District feed, are provided to the Meeting Guide app, and both feeds contain all the meetings from my district. Meeting Guide takes some meetings from the district site, and some from the area site. It doesn’t make a big difference which feed they take the information from, because both have the same information for these meetings.

    One other thing to note, if the Area webmaster tries to edit a meeting from my district on the Area site, he will get a message on the top of the edit screen saying the information for that meeting is coming from a data source, and the next time he refreshes the feed, it will override his changes. Therefore, any changes to the meetings have to be initiated on the District site.

    Plugin Author brianwarea24

    (@brianwarea24)

    If I’m reading this thread correctly, then it sounds like what you’re trying to do is take information from 2 different WordPress sites that are using the 12 Step Meeting Plugin, and import their meeting information into your site, which is is not using WordPress.

    If you have access to one of those WordPress sites, you could add a new “test” meeting on that site. For this test meeting, add something in every field you think you may need. Then look at the JSON feed generated by the plugin, and find your test meeting. This would tell you the format you’ll receive from the plugin. Once you have that, you can delete the test meeting again.

    Plugin Author brianwarea24

    (@brianwarea24)

    I think the following css code addresses the 5 questions about styling the Meeting Widget. I see you have some existing styles which may override these, so these should be last in your list of styles.

    .tsml-widget-upcoming td {padding-top:0; padding-bottom:0; text-align:left;}
    .tsml-widget-upcoming td.region {display:none; }
    .tsml-widget-upcoming td.name a {color:#cc0000; font-size:1.2em; text-decoration:underline;}
    .tsml-widget-upcoming td.name a:hover {text-decoration:none;}
    .tsml-widget-upcoming tr {padding:0; margin:0;}
    .tsml-widget-upcoming p a:before {content:"View All Meetings"; visibility:visible; font-weight:700; }
    .tsml-widget-upcoming p a {visibility:hidden;}
    

    BTW, I think future questions might require an on-site visit 🙂

    Plugin Author brianwarea24

    (@brianwarea24)

    I think I have answers for most of your questions, however, I’m not able to get into your site to see if I’m looking at the same thing on my test site. Can you post the URL to the page(s) you’d like me to look at, and the view password?

    Plugin Author brianwarea24

    (@brianwarea24)

    Try putting this code in the functions.php file in your theme

    $tsml_programs['da']['abbr'] = 'UA'; //Override the initials in the browser tab

    This may have to be redone when the theme updates, but it’s only one line to change.

    • This reply was modified 6 years, 6 months ago by brianwarea24.
    Plugin Author brianwarea24

    (@brianwarea24)

    Looks like the FAQ has the wrong variable name. Try this instead, in the functions.php file of your theme:

    $tsml_sort_by = 'region'; //options are name, location, address, time, or region

    • This reply was modified 6 years, 6 months ago by brianwarea24.
Viewing 15 replies - 1 through 15 (of 18 total)