Grumeau_leMalpropre
Joined: Mar 01, 2011
|
  Posted:
Mar 01, 2019 - 03:27 |
|
Hi everyone,
I made a few php scripts to help with group managing. I put the link here in case it could be useful to someone else.
•calendrier.php writes bbcode for a nicer tournament schedule with picons and stuff. From "https://fumbbl.com/api/tournament/schedule/#####"
it uses two 'sub-function' scripts:
• stuntyPiconJBM.php builds an associative array with stunty rosters and picons from "https://fumbbl.com/api/roster/get/##/xml" and to be stored locally.
• teamsInfo.php takes all teams of given group and builds an array. From "https://fumbbl.com/xml:group?id=####&op=members"
the ouput is pasted in group info for this result
the code is here on github |
Last edited by Grumeau_leMalpropre on %b %13, %2019 - %20:%Mar; edited 4 times in total |
|
Grumeau_leMalpropre
Joined: Mar 01, 2011
|
  Posted:
Mar 01, 2019 - 03:32 |
|
i'm by no means a programmer, i did it partly to learn some php. So if you have a look and have some comments, they're all welcome. |
|
|
Grumeau_leMalpropre
Joined: Mar 01, 2011
|
  Posted:
Mar 15, 2019 - 16:53 |
|
ok, i'd like to push it a step further and add a few to lines to fetch group info, modify it and repost it.
Any clues about that, and what to avoid in terms of interaction with the server ?
I was thinking to go with fsocketopen() and fwrite(), would that work ? |
|
|
koadah
Joined: Mar 30, 2005
|
  Posted:
Mar 15, 2019 - 17:00 |
|
I don't know any php so no help there.
The obvious thing is don't be making loads of different requests to the server for every little thing.
If you cannot see any way around that, speak to Christer. He is very good at adding things to the api to help people out. |
_________________
New teams. Secret League or Official. Always recruiting! |
|