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

#326 2011-07-25 04:52:20

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

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

sci_test wrote:

I'm online but my main account's sig is still showing the offline one.  hmm

That's because you've still got Scimonster capitalised in the URL for the sci_test sig. I'm afraid that the project search itself does not work if everything is lowercase so case-insensitivity for usernames is sadly impossible.

For those of you using Firefox who use Megaupload and all those sites that leave you waiting before you can download something, by the way, I highly recommend the firefox addon Skipscreen which cancels the wait and clicks the download button for you!

I think I shall attempt the "action=projects&type=least" today. I think being able to advertise your projects with the least views or loves or whatever may be quite appealing to some.


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

Offline

 

#327 2011-07-25 04:58:44

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

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

Well, I'm adding the random sig thing too, so I'll make sure to fix it in the new one.

Offline

 

#328 2011-07-25 05:02:34

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

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

Cool! I'm working on a signature that advertises some of the API's features in a while, but I'm waiting until I can work out how to stamp text returns onto existing images in order to allow sigs to hold user info.

Can anyone think of a way the API could be applied to user images? You know, the http://scratch.mit.edu/static/icons/buddy/183006_med.png?t=2011-03-28+12%3A55%3A06 icon image on the main site? It only takes files so I was at a bit of a loss... a rotating user image would be pretty cool!


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

Offline

 

#329 2011-07-25 05:08:03

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

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

I agree, it would be awesome, but the file restriction you mentioned says no.  sad

Offline

 

#330 2011-07-25 05:13:36

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

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

Mmm, I think the API would somehow have to be inside or be accessed by an image file to work. I've never heard of that working anywhere else before...


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

Offline

 

#331 2011-07-25 05:14:55

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

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

How could an image file do that?

Offline

 

#332 2011-07-25 05:45:15

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

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

I have no idea...

What I'm finding really annoying with php is that there's no way of doing letters (a) to (b) of [ ]. You can only do letters (a) to a+(b) of [ ]. This means a load of calculating how far ahead you want b to be each time!!!!!! http://candycats2006.bravehost.com/2madsmilies9.gif


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

Offline

 

#333 2011-07-25 05:50:36

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

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

sparks wrote:

For those of you using Firefox who use Megaupload and all those sites that leave you waiting before you can download something, by the way, I highly recommend the firefox addon Skipscreen which cancels the wait and clicks the download button for you!

awesome. this works for chrome too.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#334 2011-07-25 05:51:25

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

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

That's interesting to know! It certainly is a very useful tool, I got so fed up with waiting for downloads to start.

Last edited by sparks (2011-07-25 05:51:41)


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

Offline

 

#335 2011-07-25 05:58:05

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

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

same. i really hate it how the more things u download, the longer u have to wait before u can download something else.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#336 2011-07-25 06:00:16

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

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

Out of interest, then, do all firefox addons automatically work with chrome or is it up to the developer to bring out a chrome version?


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

Offline

 

#337 2011-07-25 06:02:29

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

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

it is up to the developer to make versions for different browsers. the website for Skipscreen automatically detects your browser info and displays the correct page.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#338 2011-07-25 06:21:05

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

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

Useful to know, thank  you  smile


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

Offline

 

#339 2011-07-25 17:20:38

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

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

I read through the last 2 pages of the thread, and came up with a few points to share with you:

First, the feature I would use the most would be a post counter which hasn't been made yet (that I know of). It would be pretty useful!

Second, I've had many past experiences with really annoying long URLs. Your tinyURL method by comp500 doesn't work too well -- You should try to automate the process by automatically sending a POST form via JS to a site like tiny.cc with the GET values included to return the shortened value (or at least link to the page).

If that sounded really confusing, here's a simpler diagram:
*******************
Button on comp500's form to shorten URL
    \/
Sends a POST form to tiny.cc with entire URL
    \/
Gets the value of that page (via JS)
    \/
Returns back the BBCode/HTML/URL as previously selected, with the tiny-ed URL included.
*******************

Last but not least, custom text for the on/off-line would be appreciated.  wink

Oh, and I forgot to say, the +1 thing seems like a good idea, but is this a suggestion or something you would inject into the source? I don't understand...

Offline

 

#340 2011-07-25 18:45:13

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

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

Thanks for the feedback, LS97!

number of posts is a good idea, it should be working in a few hours (I'm getting some sleep first) providing I don't run into any odd problems.

There is already a custom online/offline text part to the API though last time I checked it always returned the offline text for some unexplained reason, I'll take another look tomorrow!

action=onlinestatus&type=customtext


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

Offline

 

#341 2011-07-26 02:44:00

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

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

why are the images so big?


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#342 2011-07-26 04:28:25

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

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

nathanprocks wrote:

why are the images so big?

do you mean the user profile images? Because Scratch does not resize them upon upload and I have yet to work out how to resize them with PHP before they are returned.... At some point in the future all thumbnails will hopefully be optionally resizeable. Ordinarily I would resize them using the resize attributes in <img>tags but Scratch does not seem to accept a page as an image if there's even the slightest bit of HTML on it...


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

Offline

 

#343 2011-07-26 05:01:30

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

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

Hmmm, I can't find anywhere on the fora or the Scratch API that shows the number of posts of each user... The way it's looking the post counter would need the user name and a link to a page on which they have posted... Anyone seen anywhere that shows the number of person (n)'s posts other than beside the posts?


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

Offline

 

#344 2011-07-26 05:49:05

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

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

sparks wrote:

nathanprocks wrote:

why are the images so big?

do you mean the user profile images? Because Scratch does not resize them upon upload and I have yet to work out how to resize them with PHP before they are returned.... At some point in the future all thumbnails will hopefully be optionally resizeable. Ordinarily I would resize them using the resize attributes in <img>tags but Scratch does not seem to accept a page as an image if there's even the slightest bit of HTML on it...

stange... it shows the right size now. i mean on the first page, some images such as the custom online/offline image showed almost half the size of the screen.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#345 2011-07-26 05:53:42

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

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

I forgot to talk about the +1. This idea is still being turned around in my head and people are welcome to make suggestions!

Firstly, it wouldn't be part of the API as it will be storing AND returning, I'd have to ask the Scratch team's permission to use one of their databases for that one, or move it to one of my own sites' databases.

Secondly, I imagine it as a small piece of code that a Scratcher can place in one of their posts, say an image tag to show the number of supports, and what is being supported, then an URL tag to take the clicker to a php page that adds their "support" to the count.

Ideally I would ask the Scratch team to add two little pieces of code to the forums, one that lets me send the scratcher name you are currently logged into the forums with to the support page so that you only get one support per Scratcher (rather than IP based support). And a second that lets the page redirect back to the page or post with the support button on it.

I would suggest that maybe a few default graphic settings could be selectable, so button colour and what the button shows, and then allow people to customise the button a little in the future, such as adding their own text to the button etc.

It may be possible to actually get a text return showing the names of all supporting Scratchers, which would work very well for polls

Uses for this would probably be for suggestions that scratchers make, rather than the the current posting of "+1 I support". It is advantageous to that system in that the number of supports can quickly be seen on the first post - don't supports would be an option but have the same negative points as a dislike button (perhapse an optional?). It's uses with polls would be neat too, if the image could return a list of all supporting Scratchers then users would no longer have to update the first post to show the number of poll supporters.

erm... wow, I'm losing any sort of structure in this post but suggestions, ideas, thoughts, all welcome  smile


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

Offline

 

#346 2011-07-26 06:13:04

RUMCHEERYPOOPOO
Scratcher
Registered: 2008-12-23
Posts: 100+

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

sparks wrote:

I forgot to talk about the +1. This idea is still being turned around in my head and people are welcome to make suggestions!

Firstly, it wouldn't be part of the API as it will be storing AND returning, I'd have to ask the Scratch team's permission to use one of their databases for that one, or move it to one of my own sites' databases.

Secondly, I imagine it as a small piece of code that a Scratcher can place in one of their posts, say an image tag to show the number of supports, and what is being supported, then an URL tag to take the clicker to a php page that adds their "support" to the count.

Ideally I would ask the Scratch team to add two little pieces of code to the forums, one that lets me send the scratcher name you are currently logged into the forums with to the support page so that you only get one support per Scratcher (rather than IP based support). And a second that lets the page redirect back to the page or post with the support button on it.

I would suggest that maybe a few default graphic settings could be selectable, so button colour and what the button shows, and then allow people to customise the button a little in the future, such as adding their own text to the button etc.

It may be possible to actually get a text return showing the names of all supporting Scratchers, which would work very well for polls

Uses for this would probably be for suggestions that scratchers make, rather than the the current posting of "+1 I support". It is advantageous to that system in that the number of supports can quickly be seen on the first post - don't supports would be an option but have the same negative points as a dislike button (perhapse an optional?). It's uses with polls would be neat too, if the image could return a list of all supporting Scratchers then users would no longer have to update the first post to show the number of poll supporters.

erm... wow, I'm losing any sort of structure in this post but suggestions, ideas, thoughts, all welcome  smile

I'm working on something a little like the above, where you can 'like' a topic (no relation to facebook don't worry) all the post author has to do is put in a url with the topic id in it (check the url when you click on a topic: scratch.mit.edu/forums/topic.php?id=12345) so like as follows: http://scratchliketopic.com/index.php?id=12345&ret=image would return an image (this is not the real address just an example.) I currently have a working, check if this topic exists and I am just working on the mysql database stuff. It will store the user's ip (if that's alright with the scratch team) in a list along with the topic id.

It will show an image that says '(no.) likes' and a user can click on it to like the post.

Here it is so far where it just puts in 1 like whatever the id is but it only works with a valid id http://scratchloveit.netne.net/topicrate.php?id=12345&amp;ret=image

Edit: it also uses your text rendering code sparks so I'll release the source soon

Last edited by RUMCHEERYPOOPOO (2011-07-26 06:13:46)


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#347 2011-07-26 06:19:31

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

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

RUMCHEERYPOOPOO wrote:

I'm working on something a little like the above, where you can 'like' a topic (no relation to facebook don't worry) all the post author has to do is put in a url with the topic id in it (check the url when you click on a topic: scratch.mit.edu/forums/topic.php?id=12345) so like as follows: http://scratchliketopic.com/index.php?id=12345&ret=image would return an image (this is not the real address just an example.) I currently have a working, check if this topic exists and I am just working on the mysql database stuff. It will store the user's ip (if that's alright with the scratch team) in a list along with the topic id.

It will show an image that says '(no.) likes' and a user can click on it to like the post.

Here it is so far where it just puts in 1 like whatever the id is but it only works with a valid id http://scratchloveit.netne.net/topicrat … ;ret=image

Edit: it also uses your text rendering code sparks so I'll release the source soon

You won't need the Scratch team's permission to pull IP's any more than sigpoll, that dragon egg hatching thing or any other separate applications like that  smile  It sounds like a nice idea! Contact me if you need any help  wink


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

Offline

 

#348 2011-07-26 06:35:36

RUMCHEERYPOOPOO
Scratcher
Registered: 2008-12-23
Posts: 100+

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

sparks wrote:

RUMCHEERYPOOPOO wrote:

I'm working on something a little like the above, where you can 'like' a topic (no relation to facebook don't worry) all the post author has to do is put in a url with the topic id in it (check the url when you click on a topic: scratch.mit.edu/forums/topic.php?id=12345) so like as follows: http://scratchliketopic.com/index.php?id=12345&ret=image would return an image (this is not the real address just an example.) I currently have a working, check if this topic exists and I am just working on the mysql database stuff. It will store the user's ip (if that's alright with the scratch team) in a list along with the topic id.

It will show an image that says '(no.) likes' and a user can click on it to like the post.

Here it is so far where it just puts in 1 like whatever the id is but it only works with a valid id http://scratchloveit.netne.net/topicrat … ;ret=image

Edit: it also uses your text rendering code sparks so I'll release the source soon

You won't need the Scratch team's permission to pull IP's any more than sigpoll, that dragon egg hatching thing or any other separate applications like that  smile  It sounds like a nice idea! Contact me if you need any help  wink

I just feel a bit evil doing it  smile


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#349 2011-07-26 06:56:38

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

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

RUMCHEERYPOOPOO wrote:

sparks wrote:

RUMCHEERYPOOPOO wrote:

I'm working on something a little like the above, where you can 'like' a topic (no relation to facebook don't worry) all the post author has to do is put in a url with the topic id in it (check the url when you click on a topic: scratch.mit.edu/forums/topic.php?id=12345) so like as follows: http://scratchliketopic.com/index.php?id=12345&ret=image would return an image (this is not the real address just an example.) I currently have a working, check if this topic exists and I am just working on the mysql database stuff. It will store the user's ip (if that's alright with the scratch team) in a list along with the topic id.

It will show an image that says '(no.) likes' and a user can click on it to like the post.

Here it is so far where it just puts in 1 like whatever the id is but it only works with a valid id http://scratchloveit.netne.net/topicrat … ;ret=image

Edit: it also uses your text rendering code sparks so I'll release the source soon

You won't need the Scratch team's permission to pull IP's any more than sigpoll, that dragon egg hatching thing or any other separate applications like that  smile  It sounds like a nice idea! Contact me if you need any help  wink

I just feel a bit evil doing it  smile

Taking the IP? I know what you mean, but then IP's are pulled everywhere, google, most sites. I usually release a privacy policy on the website in question and detail what information I collect and what I do with it. Then put something along the lines of 'for infomation on what we store, please read out privacy policy'

If you want, you're welcome to copy and edit the privacy statement I wrote for the block library here: http://blocks.scratchr.org/privacyPolicy.php/


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

Offline

 

#350 2011-07-26 07:18:21

RUMCHEERYPOOPOO
Scratcher
Registered: 2008-12-23
Posts: 100+

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

cool thanks, I've now done the bit that checks the mysql table, and it works! I just have to make it so people can add a like!


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

Board footer