Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter area43webmaster

    (@area43webmaster)

    A previous webmaster implemented tsml_import_reformat in our theme’s functions.php file … their implementation did several things:

    1) Validated the input CSV to make sure it had only expected columns
    2) Validated the type codes to make sure they only had expected type codes
    3) Formatted certain other columns we get from Area Fellowship (such as GSO #), into the “Notes” column.

    In this case — when I added values for Conference URL, the validation in the tsml_import_reformat method was choosing to ignore the row, rather than pass it through, since it had unexpected data in it.

    So TSML was not failing to import it — it was being removed before TSML had a chance to.

    Similarly, the type code validation was removing ONL, because it wasn’t in it’s own list of “recognized” type codes.

    According to their comments in the script, this was originally implemented to account for some discrepancies between type codes in Area Fellowship and TSML — or to allow for custom type codes the Area Registrar can enter into Area Fellowship that weren’t part of the community code.

    Needless to say, now that I know this exists, I will be investigating it further and hopefully removing it entirely.

    Thread Starter area43webmaster

    (@area43webmaster)

    I found and modified tsml_import_reformat method to account for the new columns, “Conference URL” and “Conference Phone”

    This is working perfectly now — no need to add the ONL type code.

    Thank you!!

    Thread Starter area43webmaster

    (@area43webmaster)

    I see a comment in the plugin to call tsml_import_reformat for New Hampshire … was that a feature added for Area 43 that’s likely killing this data for me :)?

    admin_import.php line 59

    Where do I find the theme function definitions to validate this?

    Thread Starter area43webmaster

    (@area43webmaster)

    Still not working … here is the exact CSV I’m working with — unmodified / unfiltered. The second meeting imports, the first one does not.

    Day,Number,Time,End Time,Region,Name,Location,Address,Types,District,Updated,"Conference URL","Conference Phone"
    Saturday,7,10:15AM,11:45AM,Raymond,ZOOM ONLY - TIMTEST - ONLINE,The Old Library,"1 Church Street","O,X,T,D,+,90M,ONL",9,139657,https://zoom.us/j/111111111,1-800-111-1111
    Saturday,7,10:15AM,11:45AM,Raymond,ZOOM ONLY - TIMTEST - INPRSN,The Old Library,"1 Church Street","O,X,T,D,+,90M",    9,139657
    Thread Starter area43webmaster

    (@area43webmaster)

    Yes — I obscured the real address and location for this post … but those are two lines out of my actual meeting database. Once I add a Conference URL to any row in the CSV, that row is no longer imported.

    Using plugin version 3.6.4

Viewing 5 replies - 1 through 5 (of 5 total)