Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-10-10 18:36:06

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

JavaScript - getting username of player from the game on a page?

Would I need my own edited client to allow me to do this or can I do it how it is now?


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#2 2015-10-10 19:00:52, last edited by hummerz5 (2015-10-10 19:01:14)

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: JavaScript - getting username of player from the game on a page?

edited client hands down

sarcastic edit:
but since you don't get that, you should probably stop now.
//forums.everybodyedits.com/img/smilies/wink

Offline

#3 2015-10-10 19:13:08

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: JavaScript - getting username of player from the game on a page?

hummerz5 wrote:

edited client hands down

sarcastic edit:
but since you don't get that, you should probably stop now.
//forums.everybodyedits.com/img/smilies/wink

//forums.everybodyedits.com/img/smilies/wink


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#4 2015-10-10 23:37:07

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: JavaScript - getting username of player from the game on a page?

You could use a method Hexagon uses:
Display an identification code, let players go to a certain room (where a bot will be waiting), players tells identification code and you know what username is one what page. From there on you can also track what rooms they've been in and all that.\

big workaround though.

Offline

#5 2015-10-10 23:54:53

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: JavaScript - getting username of player from the game on a page?

^painfully big. You may as well not even bother with javascript at that point.
In fact, if you're going that route, consider using processor's implementation

That is, if he ever makes it reliable.

Then you could do authentication on a need-to-know basis... hashed cookies 'n whatnot. Or, if you don't care about security, just put a textbox + cookie combo. (ha)

Offline

#6 2015-10-11 02:03:54

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: JavaScript - getting username of player from the game on a page?

hummerz5 wrote:

^painfully big. You may as well not even bother with javascript at that point.
In fact, if you're going that route, consider using processor's implementation

That is, if he ever makes it reliable.

Then you could do authentication on a need-to-know basis... hashed cookies 'n whatnot. Or, if you don't care about security, just put a textbox + cookie combo. (ha)

I'm too lazy to update an edit for every update as soon as an update is made so I'll just have a textbox - it's nothing majorly important, just a neat feature.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#7 2015-10-11 02:07:22

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: JavaScript - getting username of player from the game on a page?

^I do want to point out that it'd be Processor's job to keep up with update... if he ever ... yeah.

ok good luck

Offline

#8 2015-10-11 21:39:01, last edited by Hexagon (2015-10-11 21:41:23)

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: JavaScript - getting username of player from the game on a page?

den3107 wrote:

You could use a method Hexagon uses:
Display an identification code, let players go to a certain room (where a bot will be waiting), players tells identification code and you know what username is one what page. From there on you can also track what rooms they've been in and all that.

That's mostly how it works. What happens is I read the XHR material from the playerio api via a chrome extension, and from there extract the username, and make sure it matches the one in the username field.

Offline

Hexagon1444595941548630

Board footer

Powered by FluxBB

[ Started around 1732453152.165 - Generated in 0.051 seconds, 14 queries executed - Memory usage: 1.46 MiB (Peak: 1.61 MiB) ]