Twitch Status Block *UPDATE*
Select messages from # through # Forum FAQ
[/[Print]\]

HeadShot Extreme -> Nuke Blocks / Modules Support

#1: No icon Twitch Status Block *UPDATE* Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Mon Oct 17, 2016 9:06 pm
    —
Well, today, during my stream, I was informed by a clan mate of mine that the twitch status block was not working on our site. So, after the stream, I took a look into it to see if I could find out what was causing the issue and fix it. Well, it came down to Twitch API now requires a client ID. So a few changes are needed. For now, I will tell you the code edits that needs to be done, and I will be updating the block download on this site within the next few days.

  1. First off, you will need to do these 2 code edits.

    OPEN: public_html/includes/twitch_status.js

    FIND: (should be the first line pretty much)

    PHP:  [ Select all ]

    var twitchUserName 


    There is more to the line, but you have a different twitch name as me so just find that line that starts with that.

    AFTER THAT LINE, ADD


    PHP:  [ Select all ]

    var twitchClientID 'YOUR-TWITCH-CLIENT-ID' // get client ID here: https://www.twitch.tv/kraken/oauth2/clients/new 

     



    Next FIND:

    PHP:  [ Select all ]

    ?callback=?



    REPLACE WITH:

    PHP:  [ Select all ]

    ?client_id="+twitchClientID 



  2. Well, if you want the client ID for this application, you have to download the block or get your own. I have included my client_id for this script since they got back to me saying its "semi-public", which makes very little sense.



  3. With your Client ID you have now, or mine from this script, replace the YOUR-TWITCH-CLIENT-ID from the first PHP edit I had you do. DO NOT REMOVE ANY OF THE QUOTES ( ' ).


  4. Save the file and upload it to your site and you are all set.


I hope this was helpful and if you have any questions, feel free to ask.
Last edited by coRpSE on Mon Oct 24, 2016 10:29 am; edited 3 times in total

#2: No icon Re: Twitch Status Block *UPDATE* Author: GuilhermeTozzi PostPosted: Tue Oct 18, 2016 9:58 am
    —
Oh, i was going to ask you about that soon  hrm  nice!

#3: No icon Re: Twitch Status Block *UPDATE* Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Tue Oct 18, 2016 10:45 am
    —
— GuilhermeTozzi wrote
Oh, i was going to ask you about that soon  hrm  nice!


SSSSSSSSuuuuuuuuuuuurrrrrrrrrrreeeeeeeeeeeee you were. zunge zeigen lol.

#4: No icon Re: Twitch Status Block *UPDATE* Author: GuilhermeTozzi PostPosted: Thu Oct 20, 2016 11:14 am
    —
— coRpSE wrote
SSSSSSSSuuuuuuuuuuuurrrrrrrrrrreeeeeeeeeeeee you were. zunge zeigen lol.


loooool  :wink:

#5: No icon Re: Twitch Status Block *UPDATE* Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Oct 21, 2016 1:03 pm
    —
Block in the downloads has now been updated.

#6: No icon Re: Twitch Status Block *UPDATE* Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Mon Oct 24, 2016 10:28 am
    —
I updated it again to now include my Client ID. They finally got back to me saying it is "Semi public", which makes little sense to me. But instead of being a application id, they called it a client id, and said it should be included with the script, but just don't go publicly posting the id on forums. I guess they didn't really think things through when they forced this upon us.



HeadShot Extreme -> Nuke Blocks / Modules Support


output generated using printer-friendly topic mod. All times are GMT - 7 Hours

Page 1 of 1