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

#126 2011-07-21 08:04:54

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

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

Yes, sep, I've added and documented it! Read a few posts up from this one!

It's literally the post below the one you quoted!

Last edited by sparks (2011-07-21 08:05:52)


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

Offline

 

#127 2011-07-21 08:11:29

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

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

I think I heard the forums use Trechbut MT (something like that).

Last edited by scimonster (2011-07-21 08:11:57)

Offline

 

#128 2011-07-21 08:13:06

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

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

sparks wrote:

My 5 newest friends:
http://blocks.scratchr.org/API.php?acti … &num=1http://blocks.scratchr.org/API.php?acti … &num=2http://blocks.scratchr.org/API.php?acti … &num=3http://blocks.scratchr.org/API.php?acti … &num=4http://blocks.scratchr.org/API.php?acti … &num=5

Well links and thumbs work, thanks sep, but it looks like images aren't regulated by the site at all!

Interestingly if you don't set num to anything, it will display your newest friend, rather than taking num as '0' and failing!

Cool, so what's wrong? Can't you just use the _sm.png thing?


I could edit the code more...

Last edited by SeptimusHeap (2011-07-21 08:14:30)


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

Offline

 

#129 2011-07-21 08:15:07

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

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

SeptimusHeap wrote:

sparks wrote:

My 5 newest friends:
http://blocks.scratchr.org/API.php?acti … &num=1http://blocks.scratchr.org/API.php?acti … &num=2http://blocks.scratchr.org/API.php?acti … &num=3http://blocks.scratchr.org/API.php?acti … &num=4http://blocks.scratchr.org/API.php?acti … &num=5

Well links and thumbs work, thanks sep, but it looks like images aren't regulated by the site at all!

Interestingly if you don't set num to anything, it will display your newest friend, rather than taking num as '0' and failing!

Cool, so what's wrong? Can't you just use the _sm.png thing?


I could edit the code more...

_sm doesn't really work for user icons.  wink

Last edited by scimonster (2011-07-21 08:15:16)

Offline

 

#130 2011-07-21 08:16:36

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

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

API source code wrote:

echo file_get_contents('http://scratch.mit.edu/static/icons/buddy/' . substr($page, $placeholder, $endplaceholder - $placeholder) . '_sm.png');

It already does request the _sm.png  tongue

Don't worry, I'll look into it.

http://blocks.scratchr.org/API.php?action=text&string=I'm_Working_on_this_atm_:)


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

Offline

 

#131 2011-07-21 08:20:18

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

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

sparks wrote:

API source code wrote:

echo file_get_contents('http://scratch.mit.edu/static/icons/buddy/' . substr($page, $placeholder, $endplaceholder - $placeholder) . '_sm.png');

It already does request the _sm.png  tongue

Don't worry, I'll look into it.

http://blocks.scratchr.org/API.php?acti … his_atm_:)

Odd, how does the image show small in the friends list?


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

Offline

 

#132 2011-07-21 08:21:50

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

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

the Scratch team are probably using HTML resizing for the display on the comments and the mystuff page. Something along the lines of <img src='imagelink' width = '40px' height = '40px' />


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

Offline

 

#133 2011-07-21 08:25:50

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

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

Try one of these fonts for the http://blocks.scratchr.org/API.php?action=text&amp;string=text_string: Trebuchet MS, Luxi Sans, Verdana, Arial, Helvetica, Sans-serif.

Offline

 

#134 2011-07-21 08:33:50

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

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

sparks wrote:

the Scratch team are probably using HTML resizing for the display on the comments and the mystuff page. Something along the lines of <img src='imagelink' width = '40px' height = '40px' />

Aah.

Anyway, good idea approaching:

tinyurl + online/offline API + newest project link + rotasig

Multiple online pics, multiple offline pics  big_smile


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

Offline

 

#135 2011-07-21 08:46:50

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

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

What are all those things?


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

Offline

 

#136 2011-07-21 08:48:26

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

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

sparks wrote:

What are all those things?

tinyurl =  shortens urls
rotesig = rotating sig image


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

Offline

 

#137 2011-07-21 08:53:38

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

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

sparks wrote:

http://blocks.scratchr.org/API.php?acti … ook_nicer.

We're getting somewhere. Black font, white bg.

font colour and bg colour is set in the code using rgb, 0,0,0 being black, 255,255,255 being white, so how to get a transparent background I don't know.

RGBA?


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

Offline

 

#138 2011-07-21 08:56:28

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

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

give me credit for the generator thing when i post it plz...


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

Offline

 

#139 2011-07-21 08:58:31

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

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

hmmm... I have been thinking that the URL's are getting a bit long to fit all the conditions. An option, I though would be to have presets. so for example online/offline square which is usually http://www.blocks.scratchr.org/API.php?action=onlineStatus&user=sparks&type=square

could be http://www.blocks.scratchr.org/API.php?pre=1&user=sparks

This link should lead to google if I am offline and the Scratch site if I am online....

And it does!

Comp500, of course you will be given credit for the generator, it's very good!

Last edited by sparks (2011-07-21 09:00:52)


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

Offline

 

#140 2011-07-21 09:04:29

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

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

sparks wrote:

hmmm... I have been thinking that the URL's are getting a bit long to fit all the conditions. An option, I though would be to have presets. so for example online/offline square which is usually http://www.blocks.scratchr.org/API.php?action=onlineStatus&user=sparks&type=square

could be http://www.blocks.scratchr.org/API.php?pre=1&user=sparks

This link should lead to google if I am offline and the Scratch site if I am online....

And it does!

Comp500, of course you will be given credit for the generator, it's very good!

LOL you linked to Google.co.uk, not the regular Google.com.  tongue
You're doing well!

Offline

 

#141 2011-07-21 09:10:48

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

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

Google.com automatically redirects to the google specific to your country and I live in the UK. I can't remember who requested changing links but there they are!


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

Offline

 

#142 2011-07-21 09:16:20

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

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

sparks wrote:

hmmm... I have been thinking that the URL's are getting a bit long to fit all the conditions. An option, I though would be to have presets. so for example online/offline square which is usually http://www.blocks.scratchr.org/API.php?action=onlineStatus&user=sparks&type=square

could be http://www.blocks.scratchr.org/API.php?pre=1&user=sparks

This link should lead to google if I am offline and the Scratch site if I am online....

And it does!

Comp500, of course you will be given credit for the generator, it's very good!

Good!  tongue  I'm uploading it now (zipped)...EDIT:  sad  my other host is not working so im using mediafire

Last edited by comp500 (2011-07-21 09:18:05)


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

Offline

 

#143 2011-07-21 09:17:51

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

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

Would you like me to host it on the blocks.scratch domain or would you prefer to host it yourself to make changes?


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

Offline

 

#144 2011-07-21 09:19:10

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

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

sparks wrote:

Would you like me to host it on the blocks.scratch domain or would you prefer to host it yourself to make changes?

you can host it, because 1, there arent many good hosts out there and 2. i dont wanna mess around with hosting.


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

Offline

 

#145 2011-07-21 09:20:22

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

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

Sparks, you should add a rotating signature host thing, because rotasig is broken. Just make it allow you to put in a few images in the url, and make it choose a random one, like http://blocks.scratchr.org/API.php?user=SeptimusHeap&action=rotationStatus&img1=BLAH&img2=BLAH&img3=BLAH

etc.


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

Offline

 

#146 2011-07-21 09:21:35

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

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

comp500 wrote:

sparks wrote:

Would you like me to host it on the blocks.scratch domain or would you prefer to host it yourself to make changes?

you can host it, because 1, there arent many good hosts out there and 2. i dont wanna mess around with hosting.

Here we go! http://www.mediafire.com/?1a9wvz7lzfrokdn


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

Offline

 

#147 2011-07-21 09:24:40

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

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

Rotating sig sounds easy and useful! How many different URL's should I allow? 10? (Since I'm doing this, I may as well make it a random URL displayer too!)

@comp, downloading now!


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

Offline

 

#148 2011-07-21 09:27:12

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

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

sparks wrote:

Rotating sig sounds easy and useful! How many different URL's should I allow? 10? (Since I'm doing this, I may as well make it a random URL displayer too!)

@comp, downloading now!

10.

Then if you wanted itn your sig you could use tinyurl.


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

Offline

 

#149 2011-07-21 09:27:29

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

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

sparks wrote:

Rotating sig sounds easy and useful! How many different URL's should I allow? 10? (Since I'm doing this, I may as well make it a random URL displayer too!)

@comp, downloading now!

I can add this api (if u make it) to the generator when uve finished it


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

Offline

 

#150 2011-07-21 09:29:31

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

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

Sounds good, are the new "friend as image" and "friend as link" supported?


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

Offline

 

Board footer