7 coaches online • Server time: 06:18
Forum Chat
Log in
Recent Forum Topics goto Post Open [L]eague Cup - ...goto Post unable to get past &...goto Post Replays
SearchSearch 
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic
Grumeau_leMalpropre



Joined: Mar 01, 2011

Post   Posted: Mar 01, 2019 - 03:27 Reply with quote Back to top

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 Mar 13, 2019; edited 4 times in total
Grumeau_leMalpropre



Joined: Mar 01, 2011

Post   Posted: Mar 01, 2019 - 03:32 Reply with quote Back to top

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

Post   Posted: Mar 15, 2019 - 16:53 Reply with quote Back to top

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

Post   Posted: Mar 15, 2019 - 17:00 Reply with quote Back to top

I don't know any php so no help there. Smile

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.

_________________
Image
Open [L]eague Tournaments - NOW recruiting!! Old/New style skill progression! - Secret League - All Stars!
Display posts from previous:     
 Jump to:   
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic