WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP-Table-Reloaded] Auto import URGENT! (7 posts)

  1. nourishing
    Member
    Posted 1 year ago #

    Hey guys! I just wanna make this quick but is it possible to auto submit the import page as I already have the values hard-coded in it(view-import.php)

    So I was just wondering if it's possible to auto submit without clicking the import button whenever I go to the import tab.

    NEED HELP URGENTLY!

  2. nourishing
    Member
    Posted 1 year ago #

    Oh and I've tried this,

    <form id="foo"....
    input type="hidden" name="action" value="import" />
    <p class="submit">
    <input type="submit" name="submit" class="button-primary" value="<?php _e( 'Import Table', WP_TABLE_RELOADED_TEXTDOMAIN ); ?>" />
    </p>
    </form>

    function myfunc () {
    var frm = document.getElementById("foo");
    frm.submit();
    }
    window.onload = myfunc;
    </script>

    [No bumping. If it's that urgent, consider hiring someone.]
    [do not bump - the 'no bumping' rule has not changed]

  3. TobiasBg
    Member
    Posted 1 year ago #

    Hi,

    thanks for your post. I'm not really sure what you are trying to achieve, but directly manipulating WP-Table Reloaded plugin files is strictly discouraged and not recommended! This will break during a plugin update!

    Can you please describe what you are trying to do here? I can then maybe suggest the best solution.

    Regards,
    Tobias

  4. nourishing
    Member
    Posted 1 year ago #

    I'm sorry, Tobias.

    Solved and found a solution to what I wanted. Was just trying to achieve an onload event when the import page is loaded. Now all I need is for something to go to a specific URL on a daily basis. Tried using the plugin Utopia Cron or something like that but it doesn't seem to work. Any suggestions?

    Regards,
    Imran

  5. TobiasBg
    Member
    Posted 1 year ago #

    Hi Imran,

    as I said, I don't recommend this way. You will likely not only need something that goes to a specific URL on a daily basis, but something that also executes JavaScript code then.

    My assumption is that you want to automatically import a file to replace and existing table. There is a better way for that, without having to modify the plugin like this!

    Regards,
    Tobias

  6. nourishing
    Member
    Posted 1 year ago #

    And what might that be?

  7. TobiasBg
    Member
    Posted 1 year ago #

    Hi,

    that way would be a "WP-Table Reloaded Extension", i.e. a plugin for the WP-Table Reloaded plugin. I haven't yet put this on my website anywhere, but I'll be more than happy to email it to you with some instructions on how to use it.
    For that, please drop me a note via email, my address is in the main plugin file "wp-table-reloaded.php".

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Topic