• Hi,

    I’m using WP Table Reloaded 1.6 with WP 2.9.1
    Is there any way to use tags from other plugins in a table?
    Every plyugin tag I try is just displayed as normal text instead of being parsed by the WP engine.
    I really would like to be able to use other plugins inside a table.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    what exactly are other “tags” for you?

    The plugin is capable of executing other Shortcodes within a table, so if your other plugin is using WP’s Shortcode mechanisms, it should work fine.

    Regards,
    Tobias

    Thread Starter wod

    (@wod)

    Hi

    The term shortcode is new for me, but it’s probably what I mean with tags.
    I have installed the following 2 plugins: “Star Rating for Reviews” and “Flash Video Player”.
    Both use tags/shortcodes ([rating:3.5] and [flashvideo file=videos/my-video.flv /]).
    If I use these shortcodes in a table, I end up with exactly that text in the table instead of the prased content.

    Hi,

    Shortcodes are those pieces of code that you use to add the tables to your post, i.e. [table id=1 /].

    However not everything that looks like this, really is a Shortcode in the WordPress sense. For that, a Shortcode has to be registered by a plugin using some API functions. The benefit of this is that all Shortcodes are handled equally and WordPress takes care of most things about them (like actually finding them in a post and replacing them with the content they generate).

    Now, for the two plugins you mentioned, their tags do (almost) look like Shortcodes but they aren’t. I had a look at their sourcecodes and they both use a similar but different approach.
    Therefore they are not recognized as Shortcodes by WordPress and thus are not evaluated on table contents.

    So, the best acutual solution would be to contact the plugin authors and ask them to upgrade their plugin so that it uses the WP Shortcode API.
    As both plugins were not updated in a while, I doubt that this will be happening soon, though.

    Therefore, here’s the second solution: 🙂
    It simply extends the plugins to not only check for their respective tags in posts, but also in table contents.

    Start by creating a WP-Table Reloaded Extension, with the framework from http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/extensions/

    Then paste this code into the file:

    add_filter( 'wp_table_reloaded_cell_content', 'sr_addstar' );
    add_filter( 'wp_table_reloaded_cell_content', 'FlashVideo_Parse' );

    Then activate the plugin “WP-Table Reloaded Extensions” and your tags should also be working in tables 🙂

    Best wishes,
    Tobias

    Thread Starter wod

    (@wod)

    Thanks for your excellent answer, I will look into this solution.

    Hi,

    I’m trying to get gd star rating integrated in a wp-table reloaded-table. My intention is to be able to rate each line individually.

    Using this description I received an error message while uploading. Stating that the “end of central dir record signature” couldn’t be found. Could you please advise on the first and second issue.

    Thanks!

    Hi,

    for your first question:
    Unfortunately I don’t know the GD Star Rating plugin and I don’t have the time to learn about it righ now. So, what you will need to find out is, whether that plugin supports regular WordPress Shortcodes, because those are supported without problems in WP-Table Reloaded. If the plugin does not use them, but a different kind of custom Shortcodes (like the plugins mentioned in the other posts of this thread do), you will need to find out the function that is responsible for parsing the post. Then, add a plugin filter, very similar to the one in my previous post here, but with a different function name.

    The error message you then describe seems to come from a corrupted zip file. WordPress can not successfully extract it, because it somehow got broken or damaged. Usually, it is enough to simply download the file again and try again.

    Best wishes,
    Tobias

    Hi guys,

    just fyi and to add to my previous question. I found the plugin WP-PostRatings that can be nicely integrated into the table. Even the column’s sorting handles the ratings correctly.

    Hi,

    great, thanks a lot for that feedback! Hopefully, this will be useful for others as well!

    Regards,
    Tobias

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

The topic ‘[Plugin: WP-Table Reloaded] Using normal WP tags in table’ is closed to new replies.