Hmm, most people use sigs to talk about themselves, advertise something they've done, or advertise something a specific Scratcher has done that they liked. I think a few people might have a "unseen project of the day" sort of thing going but there isn't much call for it...
Offline
sparks wrote:
Hmm, most people use sigs to talk about themselves, advertise something they've done, or advertise something a specific Scratcher has done that they liked. I think a few people might have a "unseen project of the day" sort of thing going but there isn't much call for it...
Hmm... Well, I could do random project or user, but, I guess...
Offline
sparks wrote:
LiquidMetal wrote:
Now that you have started working on the text thing, can you work towards my original request?
LiquidMetal wrote:
Can you make the link say what the project is called, instead of "my newest project."
That is exactly what I'm developing the text editor for! I'm trying to get it to look right at first as it will look odd http://www.blocks.scratchr.org/API.php? … derscores. Once it's done though, I think all the current API's will have a text feature added, e.g. online message, offline message, newest project name(s) newest friend name(s), random text.
Ahh, but you are having trouble with this, and the text will automatically update, so why not do it now? I understand it is useful to have a set queue though, and not to be working on too many things at once.
Offline
Can't you just have a image of "I_am" then "offline" then "_at_the_moment"?
Offline
are you still stuck on converting '_' to ' ' ?
I'll work on that for you if you want.
Offline
hello12345678910 wrote:
Can't you just have a image of "I_am" then "offline" then "_at_the_moment"?
I can, but I want people to be able to choose ANY message they want for the message.
Offline
RUMCHEERYPOOPOO wrote:
are you still stuck on converting '_' to ' ' ?
I'll work on that for you if you want.
Yup. Here's what I tried:
$string = $_GET['string']; $parser = ''; while ($count < strlen($_GET['string'])){ if(substr($string, $count, 1) == '_'){ $parser = $parser . ' '; } else{ $parser = $parser . (substr($string, $count, 1)); } $count ++; }
Offline
sparks wrote:
RUMCHEERYPOOPOO wrote:
are you still stuck on converting '_' to ' ' ?
I'll work on that for you if you want.Yup. Here's what I tried:
Code:
$string = $_GET['string']; $parser = ''; while ($count < strlen($_GET['string'])){ if(substr($string, $count, 1) == '_'){ $parser = $parser . ' '; } else{ $parser = $parser . (substr($string, $count, 1)); } $count ++; }
You do know there is a parse command in PHP.
Offline
SeptimusHeap wrote:
check the conversation
I just replied.
Last edited by SeptimusHeap (2011-07-22 17:38:06)
Offline
I'm glad I got the cogs working
Offline
Well don't worry, I didn't know about the strrpos. Php is a wonderous language full of many different functions, you're only going to find out how and what they are by reading things or people telling you.
Offline
my newest project is called . Click the name to go there!
take 1: :Hallelujah:hey%2
take 2: Hallelujah:
take 3: Hallelujah
testing with different name:
(my second newest project)
YES! It works!
[img]http://blocks.scratchr.org/API.php?user=USERNAME&action=projects&type=newest&return=text&num=NUMBER[/img]
here's the new code snippet, also viewable in the second post:
if($_GET['return'] == 'text'){ $project = substr($page, $placeholder, $endplaceholder - $placeholder); $page = ltrim(file_get_contents('http://scratch.mit.edu/api/getprojectinfobyid/' . $project)); $text = strpos($page, ':', 1); $text ++; $text = substr($page, $text, strpos($page, ':', $text + 1) - 7); $text = str_replace("%20","_",$text); echo file_get_contents('http://www.blocks.scratchr.org/textrender.php?string=' . $text); }
Oh, note, there may be problems with projects with a : in the name...
Last edited by sparks (2011-07-22 19:10:43)
Offline
^ the page I draw the name from can also give me loveit, num_favoriters, remixer, remixes, numberOfSprites, totalScripts, numberofcomments and numberofdownloads!
Comments, downloads, loves and faves all being something people would want!
Offline
LiquidMetal wrote:
comp500, could you make your generator have an option for both image and link? So I can link to a separate place with the o/o separate images?
?
Offline
Offline
SeptimusHeap wrote:
sparks wrote:
Hmm, most people use sigs to talk about themselves, advertise something they've done, or advertise something a specific Scratcher has done that they liked. I think a few people might have a "unseen project of the day" sort of thing going but there isn't much call for it...
Hmm... Well, I could do random project or user, but, I guess...
IDEA!
If the project hasn't got many views, it is shown!
ANOTHER IDEA!
Adverts! What we need is a thing like this:
My generator requests ?action=returnAdSpotCode
Then it puts the code into the url so it looks like this: ?adSpotCode=AA000&action=returnAdImg
Which returns an image for the ad,
then the link for the ad is ?adSpotCode=AA000&action=returnAdLink
so when the user goes to ?adSpotCode=AA000&action=returnAdLink (clicks on the ad) it will take them to the page for the ad.
Because there is a code for the ad spot, the api will know which ad page to direct the user to
Last edited by comp500 (2011-07-23 04:30:35)
Offline
But what would be in the adverts?
Offline