• Resolved Trex2303

    (@trex2303)


    Is there a way to add other info about a twitch user? Adding info about the game they are playing?

    I have a page setup, that will display if they are offline, and if they are online and it will show “LIVE” but I want to add (when they are live) “Playing: gamename”

    is it possible to do that with whats already there, or would I need to try and add a bit of my own coding ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Nicolas Bernier

    (@nicolasbernier)

    Hi

    From version 1.4.x you can create HTML elements that are dynamically updated with your stream info

    Try this:
    <span data-twitch-channel="hearthstonefr" data-twitch-data="playingHTML"></span>

    and this:
    <span data-twitch-channel="hearthstonefr" data-twitch-data="stream-game"></span>

    This is a test I did with channel hearthstonefr, change the channel name by yours.

    Thread Starter Trex2303

    (@trex2303)

    Oh, thanks! That works perfectly. Is there a “doc” file or a “readme” that has all the different scripts that can be used?

    Plugin Author Nicolas Bernier

    (@nicolasbernier)

    Unfortunately, not at the moment.

    Have a look at the sticky post https://ww.wp.xz.cn/support/topic/1-4-x-update/

    There are more examples, you can also update some HTML attributes with the data provided by the plugin. To see the available data, inspect the JSON object returned by admin-ajax.php

    Thread Starter Trex2303

    (@trex2303)

    Okay thanks.

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

The topic ‘Add more info?’ is closed to new replies.