WordPress.org

Ready to get started?Download WordPress

Forums

WP-Table Reloaded
[resolved] WP-Table Reloaded 1.9.1: "DataTables+TableTools" Options Broken in WP 3.1.1 (41 posts)

  1. Clark
    Member
    Posted 3 years ago #

    I'm using WP-Table Reloaded 1.9.1 and WP 3.1.1, and the DataTables+TableTools options have no effect on the front side of the table. The table looks as though DataTables+TableTools are turned off regardless of what I select on the backend.

    See here: http://www.financialtaskforce.org/about/allied-orgs/

    This table should be sortable by column, it should be searchable, and the TableTools options should be activated. However, none of those options are working.

    Thanks!

  2. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    this seems to be coming from your theme, which is loading an old version of the jQuery JavaScript library (namely 1.2.6), while WordPress already loads version 1.4.4. Due to that, there's a JavaScript conflict, as the old version is messing things up.

    To confirm this, can you temporarily switch to the WordPress Default Theme (Twenty Ten) and test if the sorting works there?

    Regards,
    Tobias

  3. Clark
    Member
    Posted 3 years ago #

    Hi Tobias,

    That fixed it! I upgraded to jQuery 1.4.4 and it works now.

    Thanks for the help,
    Clark

  4. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Clark,

    thanks for the confirmation! Great to hear that it works now!

    You should actually not need to manually load version 1.4.4 of the jQuery library, as it is already being loaded - there's no need to have it twice.

    Best wishes,
    Tobias

  5. Clark
    Member
    Posted 3 years ago #

    You're right. I apparently don't need to load it. Thanks for the heads-up.

    Clark

    p.s. 1 suggestion that would be nice for whenever you release a new update - it'd be really great if columns disregarded html when sorting themselves alphabetically.

    As you can see in the table on my site - I've hyperlinked all of the names of the organizations, and if someone sorts by the organization column, the result is not alphabetical. Thanks!

  6. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Clark,

    you can achieve the disregarding of HTML in the sorting by setting a manual option for the DataTables JavaScript library (see http://datatables.net/usage/columns).

    Just add

    "aoColumnDefs": [ { "sType": "html", "aTargets": [ 0 ] } ]

    to the "Custom Commands" textfield in the "DataTables JavaScript Features" section on the "Edit" screen of your table.
    (The 0 refers to the first column of your table, so if you change the table structure, you'll need to change that.)

    Regards,
    Tobias

  7. Clark
    Member
    Posted 3 years ago #

    That's fantastic! Thanks Tobias. That was the only part of the plugin that really annoyed me, so now it's perfect. It's a great plugin.

    Best,
    Clark

  8. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Clark,

    awesome! Nice to hear that :-)

    Best wishes,
    Tobias

  9. mike1985
    Member
    Posted 3 years ago #

    Hi Tobias,

    I'm having the same problem: my tabletools are not working anymore, but how can I set WordPress so, that the latest (required) jquery version loads?

    Thanks!

    Mike

  10. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Mike,

    WordPress usually loads the required version automatically, it's usually other plugins that ship with their own (older) version of jQuery that break this.
    Can you provide the URL to the page with your table? Then I'll take a look if this really is the case for your table.

    Regards,
    Tobias

  11. mike1985
    Member
    Posted 3 years ago #

    The table on this page:

    http://bit.ly/eaHxg2

  12. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Mike,

    oh, that table :-)
    But wasn't this workind nicely yesterday?

    I can't find any additional jQuery libs being loaded, so that is definitely not the issue.
    There's however no script issue as well, so my assumption is that this is caused by some invalid HTML.
    If you check your site with http://validator.w3.org, you will see that there are a few mistakes, which you should fix.

    If the script is then still not working, I suggest that you ask in the DataTables forums at http://www.datatables.net, as I don't really see why this is not working :-(

    Regards,
    Tobias

  13. mike1985
    Member
    Posted 3 years ago #

    Tobias,

    I've tried almost everything but nothing will work... I don't understand, I've resetted al my tweaks but still no result!

    Maybe you can take a look for me in de admin?

    Thanks!

    Mike

  14. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Mike,

    taking a look in the admin area won't help, because this is entirely a JavaScript problem on the frontend.
    I really suggest that you try to get help from the DataTables developer in their forums.

    Regards,
    Tobias

  15. mike1985
    Member
    Posted 3 years ago #

    The problem was with the cufon option in the theme!

    When this is turned off, the tabletools not worked.

  16. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Mike,

    awesome! Great that you found the setting that is responsible for this!

    Best wishes,
    Tobias

  17. Alex2103
    Member
    Posted 3 years ago #

    Good time of the day
    I with Russia and english weakly know so use the translator strictly problem with sorting, searching for on table as I have sustained таже problem as beside cgascoigne prompt what update get old version jQuery in my subject wp?
    Beside me too WP 3.1.1

  18. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Alex,

    I'm really sorry, but unfortunately I don't understand that automatic translation :-(
    Can you maybe get a friend to help and translate?

    Thanks,
    Tobias

  19. Alex2103
    Member
    Posted 3 years ago #

    Dear Tobias,

    I have the same problem as cgascoigne. please tell me where I can update in my theme jQuery because in the default theme it works good

  20. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Alex,

    thanks for that description!

    Keep in mind that this does not necessarily have to be a jQuery problem, but could also be something else.
    Can you therefore post the URL to the page with your table, I will then try to find the reason.

    Regards,
    Tobias

  21. Alex2103
    Member
    Posted 3 years ago #

  22. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    thanks for the link.

    It looks like your new theme does not have a call to wp_footer(); in its footer.php file. There needs to be something like

    <?php wp_footer(); ?>

    right before the closing HTML </body> tag.
    Can you check that?

    Regards,
    Tobias

  23. Alex2103
    Member
    Posted 3 years ago #

    I not powerfully understand in php If I you come file footer.php will be able to help?

  24. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    yes, please copy it into http://www.pastie.org and post the URL here.

    Tobias

  25. Alex2103
    Member
    Posted 3 years ago #

  26. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    ok, thanks for that.
    I'm a little bit confused that there is no </body> tag in there. Likely, that is in your theme's index.php file.

    That does not really matter however, so please add

    <?php wp_footer(); ?>

    in a new line to the end of the footer.php.

    Regards,
    Tobias

  27. Alex2103
    Member
    Posted 3 years ago #

    thank you enormous Tobias for help With you pleasantly to communicate!

  28. Alex2103
    Member
    Posted 3 years ago #

    there is else small problem.
    The Table in Firefox 4.0 little is shifted (but in rest Web browse orderly!)
    http://bsm-celinstroi.ru/prajs-list/
    as this possible correct?

  29. TobiasBg
    Member
    Plugin Author

    Posted 3 years ago #

    Hi,

    the table looks the same for me in Firefox 4 and Chrome 12.

    It is however a little bit to wide, but this is coming from the length of the content. For example, the row 106 has a large text that make the table wide.
    You will either need to reduce the content length, or change your theme so that the area for the content on a page is bigger.

    Best wishes,
    Tobias

  30. Alex2103
    Member
    Posted 3 years ago #

    thank you for answer I have sustained!
    There is else question but possible in your plugins to realize openings a croup goods as in Excel with price Presses + and is opened group goods that separate categories possible was open

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic