sparks wrote:
I posted on the community portal, I hope that's the right place :S
EDIT: all currently supported API actions are documented.
Yeah, that's right.
w00t!
Offline
Now you have to learn how to make PHP write text in images.
http://blocks.scratchr.org/API.php?user=scimonster&action=projects&type=newest&return=title&num=1
^
Offline
Magnie wrote:
Well done Sparks! You don't know how much I'll want to see the code of this.
Magnie, the php code for the NEW API is open-source and can be found here!. It's open source so that people can learn from it and possible add to it ^.^
Offline
ssss wrote:
Yay! Am adding this to the Rocket front page
Can you make it so it shows if a user of one or another account is online? Because I use both
SSSS and wulfmaster. Do you think it could display if either is online, or both offline?
Offline
API now supports OR commands for onlineStatus for up to 4 Scratch accounts. This is done simply by adding user2, 3 and 4 to the URL. It will check any that are set though 4 is currently the max. Check out the online/offline documentation page on this thread for examples and usage.
Offline
Just saying, add a note saying that capitalization matters. Or fix that, because that is annoying
Offline
Yes.
Offline
sparks wrote:
Would you prefer capitalisation to be irrelevant?
Yes
Offline
It's just reading the fora's (that sounds better ) online list, making it lowercase, and comparing it to the user variables as lowercase, right?
Offline
But what if there are two accounts that exist with one as "Magnie" and another as "magnie"? How about you have it check if there are two accounts, then it goes to the most closely related?
Offline
Magnie wrote:
But what if there are two accounts that exist with one as "Magnie" and another as "magnie"? How about you have it check if there are two accounts, then it goes to the most closely related?
It's not possible. Usernames are case-insensitive.
Offline
Magnie wrote:
But what if there are two accounts that exist with one as "Magnie" and another as "magnie"? How about you have it check if there are two accounts, then it goes to the most closely related?
I don't think the Site allows that anyway, I will email the Scratch team and ask. For instance I don't think anyone could make a Sparks account. But the reason you stated above is why I did make it case sensitive in the first place.
Offline
sparks wrote:
Magnie wrote:
But what if there are two accounts that exist with one as "Magnie" and another as "magnie"? How about you have it check if there are two accounts, then it goes to the most closely related?
I don't think the Site allows that anyway, I will email the Scratch team and ask. For instance I don't think anyone could make a Sparks account. But the reason you stated above is why I did make it case sensitive in the first place.
They don't allow it.
Anyway, on Mod Central I posted a topic directing TS here. Hopefully he'll see it.
Offline
sparks wrote:
TheSuccessor? I could use his feedback on text images!
Yes. Me and him are both admins on Mod Central, so...
Offline
How do I put it in my siggy?
Offline
1) host the image you want to appear in your sig when you are online and the image for when you are offline.
2) replace "ONLINEIMAGEURL" and "OFFLINEIMAGEURL" with the URL's to those images in the code below:
[img]http://blocks.scratchr.org/API.php?action=onlineStatus&user=designer45&online=ONLINEIMAGEURL&offline=OFFLINEIMAGEURL[/img]
and then paste that into your sig.
Last edited by sparks (2011-07-20 10:00:37)
Offline
the text thing hasn't been updated yet, see: http://blocks.scratchr.org/libstatus.ph … ;type=text
Offline
sparks wrote:
1) host the image you want to appear in your sig when you are online and the image for when you are offline.
2) replace "ONLINEIMAGEURL" and "OFFLINEIMAGEURL" with the URL's to those images in the code below:Code:
[url]http://blocks.scratchr.org/API.php?action=onlineStatus&user=designer45&online=ONLINEIMAGEURL&offline=OFFLINEIMAGEURL[/url]and then paste that into your sig.
i can make a generator! EDIT: Doing it now!
Last edited by comp500 (2011-07-20 10:03:49)
Offline
comp500 wrote:
the text thing hasn't been updated yet, see: http://blocks.scratchr.org/libstatus.ph … ;type=text
I don't think we're using the libstatus one anymore.
Offline
scimonster wrote:
comp500 wrote:
the text thing hasn't been updated yet, see: http://blocks.scratchr.org/libstatus.ph … ;type=text
I don't think we're using the libstatus one anymore.
oh
Offline