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

#276 2011-07-24 00:48:23

LiquidMetal
Scratcher
Registered: 2011-06-15
Posts: 500+

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

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Whoa+cool+this+also+needs+font+edits.+%3AP&type=stack&color=control
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=EDIT:+and+some+of+the+colors+are+off.&color=control
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=EDIT2:+It+would+be+cool+if+you+could+make+a+properly+nesting+script+with+this.&color=control

Last edited by LiquidMetal (2011-07-24 00:52:49)

Offline

 

#277 2011-07-24 01:00:04

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

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

I think TheSuccessor thought that font would be good when he made it...
It was supposed to be for the Block Library site, to create the block images.

Offline

 

#278 2011-07-24 03:25:01

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

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

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=This+is+cool!+%s+%3AP&type=boolean&color=motion

Last edited by Hardmath123 (2011-07-24 03:25:31)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#279 2011-07-24 03:27:18

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

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

Offline

 

#280 2011-07-24 03:49:35

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

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

This is what should be stickied! Awesome!!  big_smile   big_smile

If the forums had a love-it, I'd click it on this thread. And I'd favourite it. I guess a bookmark is good enough though...  wink

Offline

 

#281 2011-07-24 03:55:15

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

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

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=I+wonder+what+happens+when+i+use+it+with+a+smiley+:D+%s+%3AP&type=boolean&color=motion

Last edited by ssss (2011-07-24 03:57:05)


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

Offline

 

#282 2011-07-24 03:59:12

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

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

Do people reckon I should suggest this for I-Topic'ing?


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

Offline

 

#283 2011-07-24 04:08:31

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

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

The php for this API started out pretty small but it's 257 lines long now, I think it may be time to annotate the source code since it's open source  tongue

Adding today:
project...
     -number of comments
     -number of favourite-ers
     -number of remixes

Possibly adding today:
     -optional background colour and size change for the text return system as well as
      optional font colour and size change to make the text returns better fit existing
      signatures.

LS97, Although it's not strictly an API and so would have to be counted as a side project by me, you've actually given me a good idea. What about (using MySQL) love-it and/or support buttons for forum posts? This would be a little graphic <3 or +1 with the number of current supporters/ lovers listed. Uses? Idea posts, posts detailing a project or collaberation and perhaps most usefully posts in the suggestions forum, where people usually comment with a +1 to show support.

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


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

Offline

 

#284 2011-07-24 04:13:36

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

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

sparks wrote:

LS97, Although it's not strictly an API and so would have to be counted as a side project by me, you've actually given me a good idea. What about (using MySQL) love-it and/or support buttons for forum posts? This would be a little graphic <3 or +1 with the number of current supporters/ lovers listed. Uses? Idea posts, posts detailing a project or collaberation and perhaps most usefully posts in the suggestions forum, where people usually comment with a +1 to show support.

+1 XD

And I think you mean "favouriters"  wink

Offline

 

#285 2011-07-24 04:16:59

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

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

scimonster wrote:

sparks wrote:

LS97, Although it's not strictly an API and so would have to be counted as a side project by me, you've actually given me a good idea. What about (using MySQL) love-it and/or support buttons for forum posts? This would be a little graphic <3 or +1 with the number of current supporters/ lovers listed. Uses? Idea posts, posts detailing a project or collaberation and perhaps most usefully posts in the suggestions forum, where people usually comment with a +1 to show support.

+1 XD

And I think you mean "favouriters"  wink

SUPPORT!


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

Offline

 

#286 2011-07-24 04:21:18

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

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

comp500 wrote:

scimonster wrote:

sparks wrote:

LS97, Although it's not strictly an API and so would have to be counted as a side project by me, you've actually given me a good idea. What about (using MySQL) love-it and/or support buttons for forum posts? This would be a little graphic <3 or +1 with the number of current supporters/ lovers listed. Uses? Idea posts, posts detailing a project or collaberation and perhaps most usefully posts in the suggestions forum, where people usually comment with a +1 to show support.

+1 XD

And I think you mean "favouriters"  wink

SUPPORT!

I WILL HELP!
Plus one button:
http://img195.imageshack.us/img195/5904/plusonebutton.png (put number of plus ones here)

test:   favourite this

Last edited by comp500 (2011-07-24 09:05:57)


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

Offline

 

#287 2011-07-24 05:44:22

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

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

I've pitched this thread to coolstuff for I-topic'ing. If people could go to the stickies suggestion thread and support this thread too, I would appreciate it!


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

Offline

 

#288 2011-07-24 05:53:54

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

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

my first project, http://www.blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=text&amp;user=sparks&amp;num=1 has http://www.blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=loves&amp;user=sparks&amp;num=1 love-it's and  http://www.blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=faves&amp;user=sparks&amp;num=1 favouriters! Not to mention the http://www.blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=comments&amp;user=sparks&amp;num=1 comments, http://www.blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=downloads&amp;user=sparks&amp;num=1 downloads and http://www.blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=remixes&amp;user=sparks&amp;num=1 remixes!

I'm not showing off, just pointing out that number of favouriters, remixes, downloads and comments are working!

Last edited by sparks (2011-07-24 06:04:09)


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

Offline

 

#289 2011-07-24 07:06:35

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

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

scimonster wrote:

gbear605 wrote:

IDEA  big_smile

Have a block render with either the blockspec code, or something like it.

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=We+have+one+already.+%3AP&amp;type=stack&amp;color=control

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=Do+you+think+you+could+add+it+to+the+API.php&amp;type=stack&amp;color=605605
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=or+give+out+the+source+to+that+block+renderer+page??&amp;type=stack&amp;color=605605
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=BTW,+is+there+a+Cstack+block?&amp;type=stack&amp;color=605605

Also, could you keep the font for the text based thing the same, because I think i looks kool.

Last edited by gbear605 (2011-07-24 07:13:18)


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

 

#290 2011-07-24 07:17:02

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

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

The blocks don't really need adding to the API, they work perfectly well independantly and with tinyURL you can add them to the API yourself by putting the tinylink to that image in.


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

Offline

 

#291 2011-07-24 09:20:54

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

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

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=IDEA!%20for%20the%20button,%20(plus%201)%20Because%20google%20use%20plus%201,%20Facebook:%20Like&amp;type=stack&amp;color=looks
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=and%20so%20on,%20scratch%20should%20use%20scratch%20this:&amp;type=stack&amp;color=looks
http://tinyurl.com/3nj5vzm
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=although%20i%20might%20change%20the%20block%20thing%20or%20edit%20it%20:P&amp;type=stack&amp;color=looks

Last edited by comp500 (2011-07-24 09:37:20)


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

Offline

 

#292 2011-07-24 09:38:15

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

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


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

Offline

 

#293 2011-07-24 09:48:26

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

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

http://www.blocks.scratchr.org/API.php?action=text&amp;string=a_heck_of_a_lot_of_text_return_options&amp;bgr=0&amp;textr=225&amp;height=30&amp;width=500&amp;xpos=20&amp;ypos=10&amp;size=3

I've just finished adding a very versatile control system for the text return. This can be applied to any text-as-image return from the API using additional parameters. If a special value for any parameter is not set, it will default to the black text, grey background etc.

These additional attributes are designed to make the API fit existing signatures more neatly. For example, if you wanted your project name in your sig, you could set the return image's height, width, text colour, background colour, text size and text position to best fit your sig:
http://www.blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=text&amp;user=septimusheap&amp;num=1&amp;bgg=225&amp;textr=225&amp;height=60&amp;xpos=0&amp;ypos=20

If you're worried about your sig changing width too much with the length of your current project name don't worry! I've built in a stringlimit attribute!

http://www.blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=text&amp;user=septimusheap&amp;num=1&amp;bgg=225&amp;textr=225&amp;height=60&amp;xpos=5&amp;ypos=20&amp;limitstring=15&amp;width=100

Will document full in a while. May also allow a different colour border if I can work out how so that bordered sigs will look okay. Would also like to work out how to do it with images like thumbnails of projects, bear with me!

Actually, it ocurs to me that I should work out how to give it a link to a background image... then it will fit any sig seamlessly...

Last edited by sparks (2011-07-24 09:51:14)


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

Offline

 

#294 2011-07-24 10:25:20

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

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

sparks wrote:

http://www.blocks.scratchr.org/API.php? … amp;size=3

I've just finished adding a very versatile control system for the text return. This can be applied to any text-as-image return from the API using additional parameters. If a special value for any parameter is not set, it will default to the black text, grey background etc.

These additional attributes are designed to make the API fit existing signatures more neatly. For example, if you wanted your project name in your sig, you could set the return image's height, width, text colour, background colour, text size and text position to best fit your sig:
http://www.blocks.scratchr.org/API.php? … mp;ypos=20

If you're worried about your sig changing width too much with the length of your current project name don't worry! I've built in a stringlimit attribute!

http://www.blocks.scratchr.org/API.php? … ;width=100

Will document full in a while. May also allow a different colour border if I can work out how so that bordered sigs will look okay. Would also like to work out how to do it with images like thumbnails of projects, bear with me!

Actually, it ocurs to me that I should work out how to give it a link to a background image... then it will fit any sig seamlessly...

http://www.blocks.scratchr.org/API.php?action=projects&amp;type=newest&amp;return=text&amp;user=septimusheap&amp;num=1&amp;bgg=225&amp;textr=225&amp;height=15&amp;xpos=0&amp;ypos=0
15 = the best height! BTW try clicking on it


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

Offline

 

#295 2011-07-24 10:37:28

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

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

Cool! We can do something like this:
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=My+newest+project&amp;type=reporter&amp;color=control

Last edited by rubiks_cube_guy238 (2011-07-24 10:37:43)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#296 2011-07-24 10:55:15

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

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

comp500 wrote:

http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=IDEA!%20for%20the%20button,%20(plus%201)%20Because%20google%20use%20plus%201,%20Facebook:%20Like&amp;type=stack&amp;color=looks
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=and%20so%20on,%20scratch%20should%20use%20scratch%20this:&amp;type=stack&amp;color=looks
http://tinyurl.com/3nj5vzm
http://theblocklibrary.site11.com/include/img/blocks/specparser.php?spec=although%20i%20might%20change%20the%20block%20thing%20or%20edit%20it%20:P&amp;type=stack&amp;color=looks

Nobody listens to me  tongue


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

Offline

 

#297 2011-07-24 11:04:28

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

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

I saw it, but I don't have the block. Did you use the scratch redirect? I've used it a little on here and the block library is currently trying to work out if it works too!

Text return customisation is now fully documented, take a look and try it out!

Last edited by sparks (2011-07-24 11:04:36)


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

Offline

 

#298 2011-07-24 11:07:52

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

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

sparks wrote:

I saw it, but I don't have the block. Did you use the scratch redirect? I've used it a little on here and the block library is currently trying to work out if it works too!

Text return customisation is now fully documented, take a look and try it out!

?


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

Offline

 

#299 2011-07-24 11:09:44

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

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

http://blocks.scratchr.org/API.php?user=SeptimusHeap&amp;action=projects&amp;type=newest&amp;return=image&amp;num=1

This image appears as an "image not found" image on the previous page... I wonder why...

I'll try working it below; the project still exists...

http://blocks.scratchr.org/API.php?user=eRKSToCK&amp;action=projects&amp;type=newest&amp;return=image&amp;num=1

Could my case-insensitivity system be blocking the images of users with a capital in their name?

Yup. It's stopped it working for anyone with a capital in their name... great.

Last edited by sparks (2011-07-24 11:14:32)


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

Offline

 

#300 2011-07-24 11:12:32

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

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

comp, I don't have the imageshack block so there was no point in me answering. I don't think many people do.


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

Offline

 

Board footer