sci_test wrote:
I'm online but my main account's sig is still showing the offline one.
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.
Offline
Well, I'm adding the random sig thing too, so I'll make sure to fix it in the new one.
Offline
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 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!
Offline
I agree, it would be awesome, but the file restriction you mentioned says no.
Offline
How could an image file do that?
Offline
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!!!!!!
Offline
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.
Offline
same. i really hate it how the more things u download, the longer u have to wait before u can download something else.
Offline
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.
Offline
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.
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
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
Offline
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...
Offline
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?
Offline
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.
Offline
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
Offline
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
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
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)
Offline
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 It sounds like a nice idea! Contact me if you need any help
Offline
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 soonYou 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 It sounds like a nice idea! Contact me if you need any help
I just feel a bit evil doing it
Offline
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 soonYou 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 It sounds like a nice idea! Contact me if you need any help
I just feel a bit evil doing it
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/
Offline
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!
Offline