Azərbaycan dili Bahasa Indonesia Bosanski Català Čeština Dansk Deutsch Eesti English Español Français Galego Hrvatski Italiano Latviešu Lietuvių Magyar Malti Mакедонски Nederlands Norsk Polski Português Português BR Românã Slovenčina Srpski Suomi Svenska Tiếng Việt Türkçe Ελληνικά Български Русский Українська Հայերեն ქართული ენა 中文
Subpage under development, new version coming soon!

Asunto: Sokker Tools by Geston

2023-02-17 16:53:38
Thanks but there is better way. I will temporary (or not) implement simple form on my page to convert that data.
2023-02-17 17:13:40
great idea thanks a lot :)
2023-02-17 17:20:23
But users will still have to copy junior id from Reject button (if it is there, don't remember and cant check it from phone) and use it with that link to /api to get json, right?
2023-02-17 17:21:58
with this data 7 6 7 7 6 7 7
the tool gives me 0 talent its obvious relay bad one but should it be 7 or something
2023-02-17 17:30:45
i get it from the edit link for notes but did not check on mobile it is safer i do not want to reject my youths :) but i think that's for plus user
2023-02-17 17:39:49
The whole possibility to get it is for plus user
2023-02-17 18:04:24
well not only can someone with no plus to test this https://sokker.org/xml/juniors.xml
2023-02-17 18:05:11
its just "way-around" solution, ID is still there (reject link). But there is for sure (should be) api with list of juniors (and IDs) in academy.
And yes, such parser function just for plus members.
2023-02-17 19:07:32
it obviously has to be /api/junior
2023-02-17 19:10:16
Yup, but by default it shows just 20 rows (thanks to Mikoos)

https://sokker.org/api/junior?filter[limit]=100
2023-02-21 02:51:03
UPDATED
1. You can see now in Youth Talent Calculator a link where you can get easy any of your junior progress data
2. "Parser" leads you in 4 steps through json files, last step redirects you back to calculator
3. Calculator displays data automatically
4. Since now it doesn't matter if you separates values with spaces or commas

TODO
1. drawing label to canvas with value of calculated talent and maybe players name aswell (if taken from json file)
2. predicting progress in further weeks (based on weeks left from json file?)
3. generating bb-code with image, text and url

Waiting for your feedback, thanks!
-
(editado)
2023-02-21 12:29:26
juytt para Geston
The "4 steps json" is not user friendly (lot of pages open n the end) but a really nice start and good feature ;-)
2023-02-21 12:56:29
Geston para juytt
It is already something and still better than rewriting.
I will make another approach to this features user-friendly side, I just want to avoid using user login and password and taking data via api-login.
(editado)
2023-02-21 23:15:43
Geston para juytt
Small change done to make it a bit more user-friendly.

It is still just opening json files in new tabs, but!:
- 3 steps (instead of 4 before)
- after third step parser comes back to list of juniors (no need to make step 1 all over again)
2023-02-22 13:42:30
juytt para Geston
When you get juniors ID, and copy+paste the json : it is not possible to get all data/talent at onces ? (in other words : a server side script can access to a "junior graph id json" ?) it would reduce steps without auth login...
2023-02-22 13:59:13
Geston para juytt
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.