I think I heard the forums use Trechbut MT (something like that).
Last edited by scimonster (2011-07-21 08:11:57)
Offline
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)
Offline
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.
Last edited by scimonster (2011-07-21 08:15:16)
Offline
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
Don't worry, I'll look into it.
Offline
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
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?
Offline
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' />
Offline
Try one of these fonts for the : Trebuchet MS, Luxi Sans, Verdana, Arial, Helvetica, Sans-serif.
Offline
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
Offline
sparks wrote:
What are all those things?
tinyurl = shortens urls
rotesig = rotating sig image
Offline
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?
Offline
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)
Offline
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.
You're doing well!
Offline
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! I'm uploading it now (zipped)...EDIT: my other host is not working so im using mediafire
Last edited by comp500 (2011-07-21 09:18:05)
Offline
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.
Offline
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.
Offline
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
Offline
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!
Offline
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.
Offline
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
Offline