This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2011-07-20 01:36:38

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

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.  smile
w00t!

Offline

 

#27 2011-07-20 03:31:15

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

Now you have to learn how to make PHP write text in images.  smile
http://blocks.scratchr.org/API.php?user=scimonster&action=projects&type=newest&return=title&num=1
^ http://weebly.com/uploads/8/1/3/6/8136364/6233770.png

Offline

 

#28 2011-07-20 05:12:43

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

Magnie wrote:

Well done Sparks! You don't know how much I'll want to see the code of this.  lol

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 ^.^


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#29 2011-07-20 05:18:43

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

Okay, I've managed to find two pages on the internet with promising php examples for creating images of text... looks like another day of tinkering and lots of coffee  tongue


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#30 2011-07-20 05:19:45

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

ssss wrote:

Yay!  Am adding this to the Rocket front page  smile

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?


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#31 2011-07-20 07:22:20

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

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.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#32 2011-07-20 07:31:47

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

Just saying, add a note saying that capitalization matters.  Or fix that, because that is annoying  tongue


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#33 2011-07-20 08:02:35

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

Would you prefer capitalisation to be irrelevant?


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#34 2011-07-20 08:09:59

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

Yes.

Offline

 

#35 2011-07-20 08:13:19

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

sparks wrote:

Would you prefer capitalisation to be irrelevant?

Yes


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#36 2011-07-20 08:33:36

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

It's just reading the fora's (that sounds better  neutral ) online list, making it lowercase, and comparing it to the user variables as lowercase, right?

Offline

 

#37 2011-07-20 08:51:35

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

Yup. Adding now.
sparks:http://blocks.scratchr.org/API.php?action=onlineStatus&user=sparks
SPARKS:http://blocks.scratchr.org/API.php?action=onlineStatus&user=SPARKS
spArks:http://blocks.scratchr.org/API.php?action=onlineStatus&user=spArks
sparkS:http://blocks.scratchr.org/API.php?action=onlineStatus&user=sparkS
getting there...

Last edited by sparks (2011-07-20 09:20:02)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#38 2011-07-20 09:26:17

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

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?  smile

Offline

 

#39 2011-07-20 09:29:13

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

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?  smile

It's not possible. Usernames are case-insensitive.


http://i46.tinypic.com/dw7zft.png

Offline

 

#40 2011-07-20 09:32:38

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

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?  smile

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.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#41 2011-07-20 09:36:55

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

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?  smile

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.


http://i46.tinypic.com/dw7zft.png

Offline

 

#42 2011-07-20 09:43:59

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

TheSuccessor? I could use his feedback on text images!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#43 2011-07-20 09:47:30

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

sparks wrote:

TheSuccessor? I could use his feedback on text images!

Yes. Me and him are both admins on Mod Central, so...


http://i46.tinypic.com/dw7zft.png

Offline

 

#44 2011-07-20 09:51:18

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

Great, not heard from him in quite a while!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#45 2011-07-20 09:55:42

designer45
Scratcher
Registered: 2011-01-17
Posts: 500+

Re: ITopic: self-updating images and links in posts!

How do I put it in my siggy?


http://www.uploadup.com/di-JOV6.jpg
Grr, I had no life outside of Miscellaneous. (lol jk) Click here to read my pokemon fanfiction! As of this update, jslomba has 2012 posts.

Offline

 

#46 2011-07-20 10:00:16

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

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:

[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)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#47 2011-07-20 10:02:11

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

the text thing hasn't been updated yet, see: http://blocks.scratchr.org/libstatus.ph … ;type=text


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#48 2011-07-20 10:03:32

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

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)


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

#49 2011-07-20 10:12:06

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

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.  tongue

Offline

 

#50 2011-07-20 10:17:12

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: ITopic: self-updating images and links in posts!

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.  tongue

oh  tongue


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 

Board footer