sparks wrote:
Links yes, titles not for a while if ever as it's changing text...
Couldn't you do the thing like the block building? Where you input your username, it finds that projects title, and it writes it out? (Read my last post on the other page, too.)
Last edited by SeptimusHeap (2011-07-19 11:24:38)
Offline
sparks wrote:
Links yes, titles not for a while if ever as it's changing text...
Like, from the project page. Find <h2 id="project_title>.
And how do I do the link?
Last edited by scimonster (2011-07-19 11:25:46)
Offline
That's the thing, I may have to ask TheSucessor about that as it's more complicated. Remember that Scratch will only take images this way, not text, though images of text obviously works.
hopefully My newest project
or linked image:
EDIT: woo! First try! quote me for the code, it's the same as image but rather than return=image you put return=link
Last edited by sparks (2011-07-19 11:37:21)
Offline
sparks wrote:
That's the thing, I may have to ask TheSucessor about that as it's more complicated. Remember that Scratch will only take images this way, not text, though images of text obviously works.
hopefully My newest project
or linked image:
http://blocks.scratchr.org/API.php?user … &num=1
Sweet! I think you'll get a future in programming no problem
Offline
SeptimusHeap wrote:
sparks wrote:
I'm calling it forum API. Too undramatic for your tastes, sep?
![]()
It is a little unfortunate that you can't layer or border images... It's probably possible, I mean, TheSuccessor built http://theblocklibrary.site11.com/inclu … olor=looks. Bordering would probably require something similar but that's out of my depth.Yeah
![]()
Lol, but if you make the title interesting it will get more views. Maybe... Hmm, how do I make APIs sound exciting...
Yeah, well, you need better names
Offline
sparks wrote:
Yeah, the problem is that plenty of people don't know what API is... self-updating images and links in posts is a little wordy but is perhaps a little more exciting-sounding....
What's API? xD
Anyway...does the random projects feature work yet? And if so, how do I use it in my sig?
Offline
cpumaster930 wrote:
sparks wrote:
Yeah, the problem is that plenty of people don't know what API is... self-updating images and links in posts is a little wordy but is perhaps a little more exciting-sounding....
What's API? xD
Anyway...does the random projects feature work yet? And if so, how do I use it in my sig?![]()
Not yet, no. I will be able to get random project images OR random project links to work but because they're random and the API processes the image and the link seperately, you can't have both without the link leading to a different random project to the image :S
if you scroll up a bit you can see linked images though
Last edited by sparks (2011-07-19 12:07:09)
Offline
sparks wrote:
That's the thing, I may have to ask TheSucessor about that as it's more complicated. Remember that Scratch will only take images this way, not text, though images of text obviously works.
hopefully My newest project
or linked image:
http://blocks.scratchr.org/API.php?user … &num=1
EDIT: woo! First try! quote me for the code, it's the same as image but rather than return=image you put return=link
A challenge for you: Make the link say what the project is called, instead of "my newest project."
Nice thread.
EDIT: Also could you make it be able to do any project? like second newest?
Last edited by LiquidMetal (2011-07-19 12:10:27)
Offline
LiquidMetal wrote:
A challenge for you: Make the link say what the project is called, instead of "my newest project."
Nice thread.
EDIT: Also could you make it be able to do any project? like second newest?
Yes, any project can be shown, you type the number into the url so 1 will by your newest, 10 will be 10th newest etc
I can't make the API display text on the Scratch fora because Scratch won't take text from external sources, only images!
Offline
sparks wrote:
LiquidMetal wrote:
A challenge for you: Make the link say what the project is called, instead of "my newest project."
Nice thread.
EDIT: Also could you make it be able to do any project? like second newest?Yes, any project can be shown, you type the number into the url so 1 will by your newest, 10 will be 10th newest etc
![]()
I can't make the API display text on the Scratch fora because Scratch won't take text from external sources, only images!
So have an image with the text that is read from the title.
Offline
scimonster wrote:
sparks wrote:
LiquidMetal wrote:
A challenge for you: Make the link say what the project is called, instead of "my newest project."
Nice thread.
EDIT: Also could you make it be able to do any project? like second newest?Yes, any project can be shown, you type the number into the url so 1 will by your newest, 10 will be 10th newest etc
![]()
I can't make the API display text on the Scratch fora because Scratch won't take text from external sources, only images!So have an image with the text that is read from the title.
![]()
It's not that easy...
Offline
sparks wrote:
comp500 wrote:
cool! but can u make the background properly transparent on the text one?
If you like, yes. I'll do that now, it's a good point as quoting will look a little odd.
yay! cos one of my forum posts looks wierd. XD
Offline
comp500 wrote:
sparks wrote:
comp500 wrote:
cool! but can u make the background properly transparent on the text one?
If you like, yes. I'll do that now, it's a good point as quoting will look a little odd.
yay! cos one of my forum posts looks wierd. XD
and ive added it to my sig!
Offline
sparks wrote:
Cool! It looks a little odd half covering your name though!
yeah, nvm anyway idea:
why not use header() in php then it works even better like:
header("image/gif")Offline
offline is done: 
It's a little black. I'll try shading it a little lighter! The price of removing the background is, I'm afraid going to be that it does not look exactly like the other text anymore.
Last edited by sparks (2011-07-19 15:11:19)
Offline
comp500 wrote:
sparks wrote:
Cool! It looks a little odd half covering your name though!
yeah, nvm anyway idea:
why not use header() in php then it works even better like:Code:
header("image/gif")
Because header() does not accept variables for the URL. Otherwise I would have, it's a lot faster!
Offline
sparks wrote:
offline is done: http://www.blocks.scratchr.org/offlineText.gif
It's a little black. I'll try shading it a little lighter! The price of removing the background is, I'm afraid going to be that it does not look exactly like the other text anymore.
Seems pretty good to me. :3
Offline
sparks wrote:
offline is done: http://www.blocks.scratchr.org/offlineText.gif
It's a little black. I'll try shading it a little lighter! The price of removing the background is, I'm afraid going to be that it does not look exactly like the other text anymore.
OK!
Offline
sparks wrote:
comp500 wrote:
sparks wrote:
Cool! It looks a little odd half covering your name though!
yeah, nvm anyway idea:
why not use header() in php then it works even better like:Code:
header("image/gif")Because header() does not accept variables for the URL. Otherwise I would have, it's a lot faster!
ok!
test: online offline
Offline