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

#101 2011-07-20 20:29:42

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

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

SeptimusHeap wrote:

gbear605 wrote:

LiquidMetal wrote:


We want black on nothing, not white on black, but its a good start. Did you ever figure out spaces?

I guess I was unclear there.  What I mean is, for example (though why anyone would do this example I don't know), while I am online, I have a block that says LiquidMetal, linking to my user page, and while I am offline, there is the block library logo, linking to the block library.  How would I do that?

The different links thing is impossible on these forums, unless the scratchteam edited the forums.  As for black on nothing, that should be fairly easy.

It is possible, look at the newest project link part.



Anyway remind sparks of the code I wrote if he gets on...

Ah, I see, it would be a redirect.  Now that I see that, it would be quite easy for sparks to add, but just wait for him.


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

 

#102 2011-07-20 20:32:41

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

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

gbear605 wrote:

SeptimusHeap wrote:

gbear605 wrote:


The different links thing is impossible on these forums, unless the scratchteam edited the forums.  As for black on nothing, that should be fairly easy.

It is possible, look at the newest project link part.



Anyway remind sparks of the code I wrote if he gets on...

Ah, I see, it would be a redirect.  Now that I see that, it would be quite easy for sparks to add, but just wait for him.

I have to go and I want him to use my code  tongue


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

Offline

 

#103 2011-07-20 20:38:19

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

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

http://blocks.scratchr.org/API.php?action=text&string=Awesomeness_is_pwn.__You_must_see_my_siggie+_and_this_is_a_way_to_hide_text

Quote that and check it out  big_smile   Adding a plus sign hides all the text after that, so it is a way to hide hidden messages.  big_smile

Last edited by gbear605 (2011-07-21 07:56:01)


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

 

#104 2011-07-20 21:13:40

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

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

EDIT: I can't get the text thing to work.

Last edited by LiquidMetal (2011-07-20 21:14:18)

Offline

 

#105 2011-07-21 01:01:29

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

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

LiquidMetal wrote:

sparks wrote:

http://scratch.mit.edu/forums/viewtopic.php?pid=840055#p840055

Your online and offline images can be hosted anywhere and don't need to be in the same place.

We want black on nothing, not white on black, but its a good start. Did you ever figure out spaces?

I guess I was unclear there.  What I mean is, for example (though why anyone would do this example I don't know), while I am online, I have a block that says LiquidMetal, linking to my user page, and while I am offline, there is the block library logo, linking to the block library.  How would I do that?

I just did it, but it doesn't display the page when you click on it properly.  hmm

http://blocks.scratchr.org/API.php?user=LiquidMetal&action=onlineStatus&online=http://i.imgur.com/HaWA4.gif&offline=http://i51.tinypic.com/24v6zh2.jpg

Offline

 

#106 2011-07-21 01:20:04

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

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

The multiple users does allow custom sigs, right? Not just the default images.
It's not working for me.  hmm

Offline

 

#107 2011-07-21 03:00:16

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

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

sparks wrote:

The generator looks great! I'd love to host it on the thread on the condition that you make the code for that page open-source! I want to keep the entire API editable and open  smile

Can I suggest that you can choose where you want it? So if you check Scratch forums it will add [ img] or [ url] on either end and if you choose website it will put the path within an <img> or <a>?

OK! or infact BBCode and HTML?


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

Offline

 

#108 2011-07-21 03:36:41

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

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

comp500 wrote:

sparks wrote:

The generator looks great! I'd love to host it on the thread on the condition that you make the code for that page open-source! I want to keep the entire API editable and open  smile

Can I suggest that you can choose where you want it? So if you check Scratch forums it will add [ img] or [ url] on either end and if you choose website it will put the path within an <img> or <a>?

OK! or infact BBCode and HTML?

Done, but I will submit it later because i g2g. bye!


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

Offline

 

#109 2011-07-21 06:12:56

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

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

Wow. A LOT has happened while I was asleep!

Alright, let's see...

Sep, your user code looks brilliant, it looks like you just edited the projects section of the API but I really like it! I'll go ahead and add it in in a moment, then we can test it  big_smile

LiquidMetal wrote:

We want black on nothing, not white on black, but its a good start. Did you ever figure out spaces?

I guess I was unclear there.  What I mean is, for example (though why anyone would do this example I don't know), while I am online, I have a block that says LiquidMetal, linking to my user page, and while I am offline, there is the block library logo, linking to the block library.  How would I do that?

Oh I see! That is totally possible, I hadn't thought of allowing two different links for online and offline, only images are supported at the moment but I can add links very quickly! The reason it's still black and white and blocky is because that was attempt #1 and I left shortly after posting it so haven't had the time to improve it. That'll be coming soon. I have no idea how to get the background to be clear, but it is a PNG so it should be possible...

Anyway, liquid, stop demanding stuff unless you make it yourself. Sparks is 18. He can manage, he just doesn't have the time...

Quite the opposite here, I'm afraid, please do keep demanding, or at least suggesting new features you think will be useful to the API, it helps make it more useful and versatile!

@gbear605 - I will soon be removing the text API you're currently using as it's just for testing so it will disappear from your sig in a bit, you may want to change it!

gbear605 wrote:

Adding a plus sign hides all the text after that, so it is a way to hide hidden messages.

Oh dear, a while back I suggested that Scratchers should be able to leave hidden notes to themselves in frequently edited posts (like the block library) and they weren't keen on the dangers of it, I may have to stop the hidden message glitch as they'll be on my back otherwise :S

scimonster wrote:

The multiple users does allow custom sigs, right? Not just the default images.

Odd.... it should work for all of the supported sections under the action "onlineStatus".

Sorry for the lengthly post there!


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

Offline

 

#110 2011-07-21 06:21:12

robinp
Scratcher
Registered: 2009-01-29
Posts: 53

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

sparks? Can you give me the link to vote for you to be a community moderator?

See my sig!


http://blocks.scratchr.org/API.php?user=robinp&amp;action=onlineStatus&amp;online=http://mag.racked.eu/cimage/i57.1/Achievement+get%21/ONLINE!%21/mca.png&amp;offline=http://mag.racked.eu/cimage/i57.1/Achievement+get%21/OFFLINE!%21/mca.png

Offline

 

#111 2011-07-21 06:43:50

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

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

Hey robinp, there is no "vote for sparks" page, there is one page where Scratchers may list the four candidates in order or preference! The link is http://scratch.mit.edu/elections/vote but that will show as a 404 page not found unless between the hours of 11:00am and 11:00pm eastern time. Thanks for voting for me  smile


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

Offline

 

#112 2011-07-21 06:57:24

robinp
Scratcher
Registered: 2009-01-29
Posts: 53

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

sparks wrote:

Hey robinp, there is no "vote for sparks" page, there is one page where Scratchers may list the four candidates in order or preference! The link is http://scratch.mit.edu/elections/vote but that will show as a 404 page not found unless between the hours of 11:00am and 11:00pm eastern time. Thanks for voting for me  smile

is eastern time in the UK or where because I live in Ireland!


http://blocks.scratchr.org/API.php?user=robinp&amp;action=onlineStatus&amp;online=http://mag.racked.eu/cimage/i57.1/Achievement+get%21/ONLINE!%21/mca.png&amp;offline=http://mag.racked.eu/cimage/i57.1/Achievement+get%21/OFFLINE!%21/mca.png

Offline

 

#113 2011-07-21 07:12:13

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

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

That's 3pm to 3am in Ireland, I believe... it may be four.


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

Offline

 

#114 2011-07-21 07:13:28

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

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

robinp wrote:

sparks wrote:

Hey robinp, there is no "vote for sparks" page, there is one page where Scratchers may list the four candidates in order or preference! The link is http://scratch.mit.edu/elections/vote but that will show as a 404 page not found unless between the hours of 11:00am and 11:00pm eastern time. Thanks for voting for me  smile

is eastern time in the UK or where because I live in Ireland!

-5 from GMT.  wink

sparks wrote:

@gbear605 - I will soon be removing the text API you're currently using as it's just for testing so it will disappear from your sig in a bit, you may want to change it!

And veggieman001.

Offline

 

#115 2011-07-21 07:22:17

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

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

My 5 newest friends:
http://blocks.scratchr.org/API.php?action=friends&amp;user=sparks&amp;type=newest&amp;return=image&amp;num=1http://blocks.scratchr.org/API.php?action=friends&amp;user=sparks&amp;type=newest&amp;return=image&amp;num=2http://blocks.scratchr.org/API.php?action=friends&amp;user=sparks&amp;type=newest&amp;return=image&amp;num=3http://blocks.scratchr.org/API.php?action=friends&amp;user=sparks&amp;type=newest&amp;return=image&amp;num=4http://blocks.scratchr.org/API.php?action=friends&amp;user=sparks&amp;type=newest&amp;return=image&amp;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!

Last edited by sparks (2011-07-21 07:42:31)


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

Offline

 

#116 2011-07-21 07:23:51

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

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

I think this needs some sort of php image resize to happen before the image is returned, I mean, ordinarily you could just use <img src = 'link' width='40px' height = '40px' /> but that's not going to work here....


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

Offline

 

#117 2011-07-21 07:26:19

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

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

http://blocks.scratchr.org/API.php?action=text&amp;string=i'm_going_to_try_and_make_this_look_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.

Last edited by sparks (2011-07-21 07:31:21)


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

Offline

 

#118 2011-07-21 07:42:12

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

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

Offline

 

#119 2011-07-21 07:43:23

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

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

Outdated link...

Last edited by scimonster (2011-07-21 07:43:43)

Offline

 

#120 2011-07-21 07:50:40

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

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

Good spot  smile

Documented the new "friend thumbs" and "friend links" section of the API.


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

Offline

 

#121 2011-07-21 07:53:21

gbear605
Scratcher
Registered: 2008-03-06
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.

We should just use whatever the background color is for the forums for now.

BTW, please leave the text api part in.

Last edited by gbear605 (2011-07-21 07:57:51)


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

 

#122 2011-07-21 07:59:10

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

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

gbear605 wrote:

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.

We should just use whatever the background color is for the forums for now.

BTW, please leave the text api part in.

I'm working out the RBG value of the fora now...
I suppose I can leave it in, would people find it useful? I don't think I'll document it but it can be a hidden extra, people can see it in the code  tongue


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

Offline

 

#123 2011-07-21 08:00:08

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

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

sparks wrote:

gbear605 wrote:

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.

We should just use whatever the background color is for the forums for now.

BTW, please leave the text api part in.

I'm working out the RBG value of the fora now...
I suppose I can leave it in, would people find it useful? I don't think I'll document it but it can be a hidden extra, people can see it in the code  tongue

I would use it, if nothing else but for looking cool  tongue

Though could you fix spaces??

Last edited by gbear605 (2011-07-21 08:00:54)


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

 

#124 2011-07-21 08:03:43

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=I_think_I've_got_it!
Does anyone know which font the fora use?

Last edited by sparks (2011-07-21 08:04:13)


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

Offline

 

#125 2011-07-21 08:04:10

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

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

sparks wrote:

That's 3pm to 3am in Ireland, I believe... it may be four.

Did you see my code I wrote for you  big_smile


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

Offline

 

Board footer