Subpage under development, new version coming soon!
Asunto: Sokker Tools by Geston
you cant get to junior graph json file from server-side script without beeing authenticated. Only authenticated owner of junior can see that data.
This is why I want to do it at client-side. And I was trying to do if without any "steps", I was thinking at first that I can request json file from client-side js script, but I get authentication error that way aswell. This is normal behavior - sokker server denies access to json files if it comes from any script, doesnt metter it is client-side script from authenticated user browser.
There is a way - probably - using ajax and I will try. If I achieve my goal it will be just two steps: 1. load juniors list, 2. choose junior. Thats all without copy+paste any code and additional tabs.
This is why I want to do it at client-side. And I was trying to do if without any "steps", I was thinking at first that I can request json file from client-side js script, but I get authentication error that way aswell. This is normal behavior - sokker server denies access to json files if it comes from any script, doesnt metter it is client-side script from authenticated user browser.
There is a way - probably - using ajax and I will try. If I achieve my goal it will be just two steps: 1. load juniors list, 2. choose junior. Thats all without copy+paste any code and additional tabs.
the reason why access is denied is that there is no parameter for the team and only from the session they can know for which team you want data
you need a valid PHPSESSID=xxxxxxxxxx to pass it in the header so the only way to get it is to log in..
so you can request whit list your tool so multiple users can login and those that trust you can do the auto check with login
and yes can use ajax to login abd return to next call the session cookie
curl --location -g --request GET 'https://sokker.org/api/junior?filter[limit]=100' \
--header 'Cookie: PHPSESSID=xxxxxx; _html_rtl=0; conf=2158441274; hide_promotion=1; lang=en; lang_ID=2'
you need a valid PHPSESSID=xxxxxxxxxx to pass it in the header so the only way to get it is to log in..
so you can request whit list your tool so multiple users can login and those that trust you can do the auto check with login
and yes can use ajax to login abd return to next call the session cookie
curl --location -g --request GET 'https://sokker.org/api/junior?filter[limit]=100' \
--header 'Cookie: PHPSESSID=xxxxxx; _html_rtl=0; conf=2158441274; hide_promotion=1; lang=en; lang_ID=2'
Focusing now on visual side, some changes done:
- talent value on graph
- name and age of junior
- dark background
- talent value on graph
- name and age of junior
- dark background
That's what i thought. I did not see the graph on your website, neither after having copied it :
[img ]https://i.imgur.com/EBkNPZf.png[/img]
[img ]https://i.imgur.com/EBkNPZf.png[/img]
Fantastic tool Geston!!! It showed me how bad my youth players are in my academy :p
(editado)
(editado)
What did you think?
I know there are some small bugs to fix but in general it works.
(editado)
I know there are some small bugs to fix but in general it works.
(editado)
Will inestigate it at evening.
Make sure you refreshed files - shift + f5
Make sure you refreshed files - shift + f5
Ctrl + F5, doesn't help :P
Also checked on virtual machine, same problem, a bit different error stack
Also checked on virtual machine, same problem, a bit different error stack
Yea i will deal with it later.
That's what I don't like when code is working on one browser but fails on another :x
That's what I don't like when code is working on one browser but fails on another :x
No problem, take your time, you are doing great job for community as well as Juytt who had also built a similar tool years ago now for french users.