• Hi,
    I have a question/problem with tablepress. I created a table and everything looks great and works fine but I′d need some extra features and as I′m not a developer I don′t know to handle this topic.
    I hope somebody could help me.

    I want every time I add a new row that a sound appears and my table should be instantly refreshed so that the visitors see immediately the new row without refresh the page.

    Is this possible? Or have anybody an idea!

    Thanks and best regards,
    tobiasreaper

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

    thanks for your post, and sorry for the trouble.

    Sorry, this is not directly possible.
    You could take a look at https://tablepress.org/extensions/table-ajax-refresh/ which can re-load a table after a certain time interval. Maybe that helps as a starting point for a custom solution.

    Regards,
    Tobias

    Thread Starter tobiasreaper

    (@tobiasreaper)

    Hi Tobias,

    great thank you! That will help me a lot!
    Any idea how I can play a little mp3 data everytime i add a new row?
    I′ve seen you also developed a plugin which allows to execute a PHP code in table cells. Would it be possible to add following code in a new added row

    <?php
    $file=’example.mp3′;
    echo “<embed src =\”$file\” hidden=\”true\” autostart=\”true\”></embed>”;
    ?>

    in order to play the sound? Or add this string somewhere in your tablepress.php?

    You would help me so much!
    best regards
    tobiasreaper

    Hi,

    sorry, I can’t really help with that. You might to look into JavaScript some more to achieve this.

    From that code example, you should not need PHP though. You could simply put the relevant <embed> HTML code into the new table row somewhere. (Of course, if you want this to be added automatically, you could use PHP in some of the table plugin filter hooks that modify the HTML output.)

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin:Tablepress] modifications/ sound appears’ is closed to new replies.