ztizzlegaming / CSGOWinBig

Open-source Counter-Strike: Global Offensive jackpot betting website.
MIT License
173 stars 105 forks source link

Fixed the steam login, stuck on loading now :/ #41

Open imhaxxy opened 9 years ago

imhaxxy commented 9 years ago

http://glhfskins.net78.net/

My site is finally allowing me to login through steam without any problems with directing me to index.php .

Yet now...my jackpot bit and the chat is loading. I have literally spent 2-3 days trying to fix this and I seriously cannot find a way anymore.

pls help 4 cookie ;-;

Edit: I tried /php/login-status.php and it comes back up with "{"success":1,"data":{"loginStatus":0,"userInfo":null,"tradeToken":null,"info":{"gamesPlayedToday":0,"moneyWonToday":0,"biggestPotToday":0,"biggestPotEver":null}}}"

So I'm going to guess that the connection with the database is there. Yet still my actual "jackpot" bit and the chat is still loading. Here's a image: https://gyazo.com/36480d54ca793096fb24fe084e322cac

I'm also using 000webhost if that has anything to do with this issue :/

TheAnthonyNL commented 9 years ago

Check the chrome console for errors... i assume there is an issues in script.js to fix this: replace

var serverMostRecentID = parseInt(chat[chat.length - 1]['id'], 10);         

with

if(chat.length != 0)
            {
                var serverMostRecentID = parseInt(chat[chat.length - 1]['id'], 10);
                }else{
                var serverMostRecentID = 0;
            }
imhaxxy commented 9 years ago

After editing that line, the steam login button dissapears, and everything else, as if it lost connection with the database. Yet still after php/status we come up with success.

TheAnthonyNL commented 9 years ago

Lol ... that should not happen

imhaxxy commented 9 years ago

I'm sorry Anthony...but it did :/ Anyway we can speak through steam?