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.
I hope this was helpful and if you have any questions, feel free to ask.
- 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, ADDPHP: [ 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
- 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.
- 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 ( ' ).
- Save the file and upload it to your site and you are all set.
- 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.
I hope this was helpful and if you have any questions, feel free to ask.
Last edited by coRpSE on Mon Oct 24, 2016 9:29 am; edited 3 times in total
Oh, i was going to ask you about that soon nice!
— GuilhermeTozzi wroteOh, i was going to ask you about that soon   nice!
SSSSSSSSuuuuuuuuuuuurrrrrrrrrrreeeeeeeeeeeee you were. lol.
— coRpSE wroteSSSSSSSSuuuuuuuuuuuurrrrrrrrrrreeeeeeeeeeeee you were. lol.
loooool :wink:
Block in the downloads has now been updated.
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.