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

#1 2011-08-23 13:12:55

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

can somebody upload this api on the web?

Code:

<?php
//makes sure there is all the info needed
if(isset($_GET['user'])&&isset($_GET['redirecturl'])&&isset($_GET['projectid'])){
/******************************************************
*********************CODE TO EXECUTE HERE WHEN PAGE IS LOADED*********************
*******************************************************/
//start redirect with the GET request
//assumes that the get info for the redirecturl is ( example )scratch.mit.edu not http://scratch.mit.edu
header('Location: http://'.$_GET['redirecturl']);
}
?>
<----made by gp1--------->

what it is going to do:
love-it.php?user=yourusernamehere&projectid=yourprojectidhere&redirecturl=scratch.mit.edu
goes to your project user=yourusernamehere&projectid=yourprojectidhere
hits love-it then, redirects to the page that u want redirecturl=scratch.mit.edu


◕‿◕

Offline

 

#2 2011-08-23 13:30:09

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

Re: can somebody upload this api on the web?

That code simply redirects the user -- it doesn't actually do anything!

Offline

 

#3 2011-08-23 14:54:34

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

Re: can somebody upload this api on the web?

I don't think that it's a good idea to use this really, I mean, I personally want to know how many people like my projects, not get them on the front page and know how many people were tricked into loving it whether they wanted to or not...

As LS97 points out, this code simply redirects you to the project, it does not add the love-it code.


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

Offline

 

#4 2011-08-23 15:16:50

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: can somebody upload this api on the web?

you know dropbox?
and I also agree with the others. i don't to see sigs spammed so i won't be sure if clicking on is safe  sad

btw, it won't work with people who have NoScript enabled (like me  wink  )

Last edited by roijac (2011-08-23 15:16:58)

Offline

 

#5 2011-08-23 15:41:49

Servine
Scratcher
Registered: 2011-03-19
Posts: 1000+

Re: can somebody upload this api on the web?

I disagree with you, flashgocrazy, however, I sometimes wish people would pay little attention to my best game ever


http://bluetetrarpg.x10.mx/usercard/?name=Servine

Offline

 

Board footer