Welcome to the [HSX] website!

Been Gaming since 2003

Community Driven Site

Gaming, Web Development, and Support

  

 
Main Menu
 
DFG
 Home
 Join our Clan
 [HSX] Roster
 Forums
 News
 Downloads
 News Letter
 Video tutorials
 Supporters
 Uploads
 F.A.Q
· FAQ
· Docs
· Forums FAQ
 [HS] Timeline
 Site Map
 Write a Review
 Image Repo
 WhoIs
 Twitch ID Finder
 Logout
DFG
DFG DFG DFG

 
[HSX] Donations
 
DFG
Total Donators
Total:
$0.00
Goal:
$30.00
Difference:
$30.00
DFG
DFG DFG DFG

 
Theme Management
 
DFG
DFG
DFG DFG DFG

 
Whos Been
 
DFG
 EmeraldDragon
 2 hours ago
 PatPgtips
 8 hours ago
 coRpSE
 10 hours ago
 fire
 13 hours ago
 bairdboy
 1 day ago
 Lonestar
 1 day ago
 Bulldog1
 1 day ago
 TheGhost
 1 day ago
 Grmm
 2 days ago
 2xTaz
 4 days ago
DFG
DFG DFG DFG

 
Survey
 
DFG What is your favorite game to play ATM?

WarThunder
World of Tanks
H1Z1
MechWarrior Online
ARK
WarFace
SWTOR
BattleField serier
COD Series
Diablo
Armored Warfare



Results
Polls

Votes 1528
Comments: 0
DFG
DFG DFG DFG

 
Honey Pot
 
DFG
Bots in the pot!
We have [2623] bots stopped!
HeadShotDomain
DFG
DFG DFG DFG

     
DFG
 
Forum Index Members Search Usergroups
Ranks Staff Statistics Forum FAQ
Board Rules Edit your profile Login, Check Messages Log in
 

Twitch Status Block *UPDATE*
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post Forum Index Nuke Blocks / Modules Support
View previous topic View next topic
PostPosted: Mon Oct 17, 2016 9:06 pm Reply with quote
coRpSE
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.


Expand


 Last edited by coRpSE on Mon Oct 24, 2016 10:29 am; edited 3 times in total

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2451
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 7.6hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

PostPosted: Tue Oct 18, 2016 9:58 am Reply with quote
GuilhermeTozzi
Oh, i was going to ask you about that soon  grübel  nice!

NOOB!!!

Groups NOOB!!!
Posts 38
Joined Mar 08, 2016
Status Offline
View user's profile Send GuilhermeTozzi a private message Find all posts by GuilhermeTozzi

PostPosted: Tue Oct 18, 2016 10:45 am Reply with quote
coRpSE
— GuilhermeTozzi wrote
Oh, i was going to ask you about that soon  grübel  nice!


SSSSSSSSuuuuuuuuuuuurrrrrrrrrrreeeeeeeeeeeee you were. zunge zeigen lol.


 

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2451
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 7.6hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

 
PostPosted: Thu Oct 20, 2016 11:14 am Reply with quote
GuilhermeTozzi
— coRpSE wrote
SSSSSSSSuuuuuuuuuuuurrrrrrrrrrreeeeeeeeeeeee you were. zunge zeigen lol.


loooool  :wink:


 

NOOB!!!

Groups NOOB!!!
Posts 38
Joined Mar 08, 2016
Status Offline
View user's profile Send GuilhermeTozzi a private message Find all posts by GuilhermeTozzi

PostPosted: Fri Oct 21, 2016 1:03 pm Reply with quote
coRpSE
Block in the downloads has now been updated.


 

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2451
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 7.6hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

PostPosted: Mon Oct 24, 2016 10:28 am Reply with quote
coRpSE
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.


 

Top Dog
Nuke Dev / Coder
Clan Leader
Groups Top Dog
Nuke Dev / Coder
Posts 2451
Joined Jan 12, 2012
Status Offline
View user's profile Send coRpSE a private message Visit user's website
coRpSE
Currently Offline
Offline

Most Played:
This week: 7.6hrs.
Total Played: 9.3hrs.


  
Are you really committed?
Find all posts by coRpSE

 
Display posts from previous:
Post new topic Reply to topic printer-friendly view List users that have viewed this topic Thank Post All times are UTC - 7 Hours [DST enabled]
Page 1 of 1


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2019 phpBB Group
DFG
DFG DFG DFG
Forums ©
Copyright © HeadShotDomain 2016 By: coRpSE
SimpleBlack V2 By: Killigan
Powered By: Evolution-Xtreme