• Resolved ncurrier

    (@ncurrier)


    Hi Tobias,

    Been using the plugin for several years now on mangameslost.com and love it. I’m having a new issue (or newly noticed) with some of the tables on the site. An example can be seen at https://www.mangameslost.com/nhl-man-games-lost-chip-tmitt-december-18-2014/

    Table 1 is correct and it is correct on other pages where I have similar data in a similar format. The javascript options work properly.

    A problem can be seen in Table 2 (problem occurs site wide where I have tables similar to Table 2) where the jquery features are not working (but are turned on in the tablepress config for that table). I also am trying to use a custom command you provided to change the sort order for some columns (i.e. “aoColumnDefs”: [ { “asSorting”: [ ‘desc’, ‘asc’ ], “aTargets”: [ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ] } ]). You can see a similar custom command works for Table 1 but not Table 2.

    This is a relatively new problem, or at least I just noticed it. Can’t figure out what has gone wrong as I’ve tried a few different fixes.

    https://www.ads-software.com/plugins/tablepress/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter ncurrier

    (@ncurrier)

    In case you need it the shortcode I use for Table 1 is
    [table id=285 datatables_counter_column=”true” row_order=”sort” row_order_sort_column=”C” row_order_sort_direction=”DESC” datatables_colvis=”true” datatables_fixedcolumns=”left” responsive=”desktop” /]

    And for Table 2 it is
    [table id=286 row_order=”sort” row_order_sort_column=”I” row_order_sort_direction=”DESC” datatables_colvis=”true” datatables_fixedcolumns=”left” responsive=”desktop” /]

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This might be related to an updated version of the DataTables jS library, which makes it necessary to update some of the used Extensions as well. Now, as those are not in the WordPress plugin directory, you will not be notified about their updates.
    Therefore, please go to https://tablepress.org/extensions/ and download all Extensions again that you are using, and update them manually.
    This might already fix the problem.

    Regards,
    Tobias

    Thread Starter ncurrier

    (@ncurrier)

    Thanks Tobias,
    I deactivated, deleted, and updated all of the extensions. A few were one version behind.
    But now I see that Table 1 (table 285 that was properly using the javascript library features) is now also no longer displaying with them, just like Table 2 and 3.
    I have Tablepress 1.5.1 installed.
    Could this be a theme issue?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks, that’s good.

    No, it’s not a theme issue, but more an issue of compatibility of the Extensions. Unfortunately, some of the ones that you use influence the same internal code, and that results in a conflict.
    Can you please try again after deactivating the Counter Column Extension?

    Regards,
    Tobias

    Thread Starter ncurrier

    (@ncurrier)

    aha.
    I deactivated the Counter Column extension and that restored Table 1, but without the first counter column filled obviously. Table 2 and 3 still had an issue with the javascript functions.
    So then I reactivated counter column extensions and deactivated the FixedColumns extension. That restored all Tables (1, 2, 3) to normal.
    Looks like I’ll not be using the FixedColumns extension in the future until it tests properly.
    Thanks Tobias for all of your hard work.
    Nathan

    Thread Starter ncurrier

    (@ncurrier)

    A follow-up question about the Responsive extension – will the row formatting of my table allow a good result using the Responsive extension? I’ve tested it without much luck.
    Paypal donation on the way!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yeah, the FixedColumns Extension’s JavaScript code (which I didn’t develop but only made available as the Extension) can sometimes cause weird issues, as it basically has to perform difficult calculations for widths and heights ??

    The Responsive Tables Extension should work fine, but it requires that the Horizontal Scrolling is turned off for the tables (as it pretty much does the same, but in a different technical way).
    If you want to keep Horizontal Scrolling, I’d recommend to use another (also different) approach to adding it. With that, you won’t need to Responsive Tables Extension either. For details, please see https://www.ads-software.com/support/topic/responsive-tables-scroll-only?replies=6#post-5511954

    And thanks so much for the donation, I really appreciate it!

    Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘some tables on page correct, others are no’ is closed to new replies.