Support » Plugin: Live Stream Badger » Show game name?

  • Resolved razor253

    (@razor253)


    Is this possible to add a game name instead of stream image?
    I analyzed the code, but I didn’t know what to change.
    Twich API is simple, I know where the game name is, but amount of code in your widget scares me 😉
    If you could help me with this, simply change the image to game name, I would be grateful 🙂

    http://wordpress.org/plugins/live-stream-badger/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tadas Krivickas

    (@tkrivickas)

    Currently it does not pull the game name from Twitch API. But if you know how to code it would be quite easy to addon. The code is well structured.
    You would need something like:

    1. LSB_Stream – add new field, e.g. gamename
    2. LSB_API_Twitch#map_results() – add mapping
    3. LSB_Stream_Status_Widget#widget() – display this field

    Simple as that. I might add it in future versions as well. Also if your patch is well written I can just include it as well 😉

    Your code structure is clear, but not for me 😛
    If you could look at this API
    the game is in [‘stream’][‘channel’][‘game’]
    I really can’t understand your code, I’m not programming completely 😉
    If you can add this, just write changes and post it here, if you don’t have much time, don’t test it, I will do it 🙂

    Plugin Author Tadas Krivickas

    (@tkrivickas)

    You can hire someone here if you are desperate http://jobs.wordpress.net/

    Your desire to help people can not be described, thanks 🙂

    Hello,

    it’s a good function for the futur.

    Thank for this update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show game name?’ is closed to new replies.