Goto page Previous  1, 2, 3  Next

● Twitch Streamers Block

Fri Feb 07, 2020 12:19 pm
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
Good to hear I guess. Would be nice to know why it wasn't working.


Expand
Sat Feb 08, 2020 7:37 am
NOOB!!!
28 Posts
Reputation: 156.6
I reloaded the block with info re-entered, and no difference. I re-entered info into Twitch account and no difference. Even went as far as to delete and re-install steaming program I use. no difference. Then it started to work..... hrm Just glad it is working again.
Sun Feb 09, 2020 10:54 am
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
Yeah, that's strange. Could have been something cached. Who knows.


 
Sat Feb 22, 2020 2:34 pm
NOOB!!!
28 Posts
Reputation: 156.6
It is back to not working again....weinen  On Twitch it shows the stream running but the block does not change from offline to online. I am heading out of state, but will have internet access to continue trying to figure this out when I can. Just a heads up


 
Thu Feb 27, 2020 9:30 am
Blabbing Noob
98 Posts
Reputation: 460.1
not working for me either shows last time streamer was live but doesnt show they are live on image


Please login to see this link
Get registered or Log in
Thu Feb 27, 2020 9:23 pm
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
Yeah, it needs a rewrite. Twitches API I believe is being changed. Unfortunately, their documentation sucks on this so it will take me a little while to get to it.


 
Fri Feb 28, 2020 6:25 am
NOOB!!!
28 Posts
Reputation: 156.6
Thanks for the response CoRpSE. I am surprised they don't supply iframe code or html code themselves to display on websites. Seems like that would help with advertising for them like gametracker does. Appreciate any help you could give on this one!


 
Fri Feb 28, 2020 11:44 am
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
Iframe wouldn't help with this. API, are basically a text file that gets updated constantly, and we call upon that and look for specific sections of that code to show, then from there we design the look and what will happen with that value. The thing is, when I built this, I was using V2 of the API, then they shut that down last year and forced everyone to upgrade to V5, but they said that was shutting down soon for a different version.

Now, that the links have changed, I need to figure out the new JSON URL's for the various information for the system as-well as the new calls they may be.


 
Thu Jun 18, 2020 7:03 pm
Original Poster
Clan Leader
Top Dog
Nuke Dev / Coder
3015 Posts
coRpSE
Currently Offline
Offline

Most Played:
This week: 77.7hrs.
Total Played: 195hrs.


  
There is life outside of the game.
Reputation: 7317.9
votes: 7
Okay, here is a fix for those of you that have the system but it's not working anymore.
It looks like I may not have to upgrade to the new helix API just yet, they just changed a bit of the krakin v5 code.

Open: public_html/includes/blocks/block-twitch_streamers.php

Find: (Around line 46)

PHP:  [ Select all ]

//Let's see if the stream is live
 
$stream = ($json['_total'] == 0) ? '' 'true'

 


Replace all that with:

PHP:  [ Select all ]

    //Let's see if the stream is live
    
$liveornot $json['streams'][0]['broadcast_platform'];
    
$stream = ($liveornot != "live") ? '' 'true'

 

Save and check.


 
Fri Jun 19, 2020 4:48 am
Blabbing Noob
98 Posts
Reputation: 460.1
thanks corpse that works great

very much appreciated


 
Goto page Previous  1, 2, 3  Next
Forums ©