What does that do?
Offline
Sidharth wrote:
Hey, I wrote a bookmarklet to generate code for a simple like/unlike box. Works on the main forums ONLY.
Code:
javascript: function aFuNcTiOn() { var teststring = document.location.href; if (teststring.substr(0, 47) == 'http://scratch.mit.edu/forums/viewtopic.php?id=') { var topicID = /(\d)+/gi.exec(teststring)[0]; var BBCODE = '[url=http://scratchloveit.netne.net/topicrate.php?id=' + topicID + '&ret=add][url]http://scratchloveit.netne.net/topicrate.php?id=' + topicID + '&ret=image[/url][/url]'; var NENENENE = prompt('BBCode: Press Ctrl(cmd on Mac)-c, then Ctrl(cmd on Mac)-v to paste it', BBCODE); } else { alert('BAD URL!'); } } aFuNcTiOn();WARNING!! THIS WILL NOT ALWAYS WORK!
Put all that in one line and copy/paste into the
URL field of a bookmark or your browser address bar (Yes, including theCode:
javascript:).
Currently only tested on Google Chrome, because I really don't want to wait for the other browsers to load.
Google Chrome > Firefox > Opera > Safari > Internet Explorer
I will test this out later when I can get to my computer, but it looks really useful, I might even add it to the first post!
Offline
I'm getting a "BAD URL" message.
Offline
scimonster wrote:
I'm getting a "BAD URL" message.
![]()
probably because your not on a topic page.
The way you can tell it's a topic page is this:
What the url shouldn't look like:
What the url should look like:
The number after the url won't always be that, it's only true of this topic. You can get to the topic page by going to the advanced topics forum and clicking on the link to the topic from there.
Offline
I was on the post page.
Offline
scimonster wrote:
I was on the post page.
If doing what I said doesn't work I'm not sure what you can do..
Offline
OK, I know you have a pretty long to-do list already, but what about adding a list of individual supporters?
You would need to make it not too graphically great, since the height should be variable depending on the number of supporters.
This would require associating Scratcher ID numbers instead of IP's, and somehow bringing the users onto a login page to verify the ID and then adding the support. Maybe once they logged in once you could keep their IP. It's a very long and hard project which I would certainly attempt if I was back at home.
Offline
LS97 wrote:
OK, I know you have a pretty long to-do list already, but what about adding a list of individual supporters?
You would need to make it not too graphically great, since the height should be variable depending on the number of supporters.
This would require associating Scratcher ID numbers instead of IP's, and somehow bringing the users onto a login page to verify the ID and then adding the support. Maybe once they logged in once you could keep their IP. It's a very long and hard project which I would certainly attempt if I was back at home.
I think I would have this as a seperate option, until I knew it fully worked but great idea, adding to todo list
Offline
RUMCHEERYPOOPOO wrote:
LS97 wrote:
OK, I know you have a pretty long to-do list already, but what about adding a list of individual supporters?
You would need to make it not too graphically great, since the height should be variable depending on the number of supporters.
This would require associating Scratcher ID numbers instead of IP's, and somehow bringing the users onto a login page to verify the ID and then adding the support. Maybe once they logged in once you could keep their IP. It's a very long and hard project which I would certainly attempt if I was back at home.I think I would have this as a seperate option, until I knew it fully worked but great idea, adding to todo list
![]()
If you don't get around starting it before August, I could always give you a hand
Offline
LS97 wrote:
RUMCHEERYPOOPOO wrote:
LS97 wrote:
OK, I know you have a pretty long to-do list already, but what about adding a list of individual supporters?
You would need to make it not too graphically great, since the height should be variable depending on the number of supporters.
This would require associating Scratcher ID numbers instead of IP's, and somehow bringing the users onto a login page to verify the ID and then adding the support. Maybe once they logged in once you could keep their IP. It's a very long and hard project which I would certainly attempt if I was back at home.I think I would have this as a seperate option, until I knew it fully worked but great idea, adding to todo list
![]()
If you don't get around starting it before August, I could always give you a hand
![]()
![]()
Well, I'm on holiday next week, so I'll probably start it this week and then you can finish it off
I think I'm going to add post-liking today. Your favourite
Last edited by RUMCHEERYPOOPOO (2011-07-29 04:56:47)
Offline
RUMCHEERYPOOPOO wrote:
I think I'm going to add post-liking today. Your favourite
![]()
yay!
RUMCHEERYPOOPOO wrote:
Well, I'm on holiday next week, so I'll probably start it this week and then you can finish it off
![]()
goodie
Offline
Testing: like this post...
edit: hmm ok
edit2: lol uploaded it to the wrong place, fixed now
I will add a tutorial on the first post as usual.
Last edited by RUMCHEERYPOOPOO (2011-07-29 05:50:28)
Offline
RUMCHEERYPOOPOO wrote:
Testing: like this post...http://scratchloveit.netne.net/topicrat … ;type=post
edit: hmm ok
edit2: lol uploaded it to the wrong place, fixed nowI will add a tutorial on the first post as usual.
Maybe different color to distinguish difference?
Offline
LS97 wrote:
RUMCHEERYPOOPOO wrote:
Testing: like this post...http://scratchloveit.netne.net/topicrat … ;type=post
edit: hmm ok
edit2: lol uploaded it to the wrong place, fixed nowI will add a tutorial on the first post as usual.
Maybe different color to distinguish difference?
![]()
What do you recommend?
Offline
V2.0
Finally added Likeable posts! as requested by LS97.
Yay!
See the first post for a tutorial on how to use them.
Offline
RUMCHEERYPOOPOO wrote:
LS97 wrote:
RUMCHEERYPOOPOO wrote:
Testing: like this post...http://scratchloveit.netne.net/topicrat … ;type=post
edit: hmm ok
edit2: lol uploaded it to the wrong place, fixed nowI will add a tutorial on the first post as usual.
Maybe different color to distinguish difference?
![]()
What do you recommend?
I don't know.
Funny how I'm working with colors right this moment (adding color support to FireScript, Firedust's really good programming language) and don't know what to suggest to you
Offline
I think it needs an "all encompassing" colour for the topics and a "small sectional" colour for the posts. But I can't think what either of those colours are
If anyone has any suggestions, please suggest them
Offline
Hmmm... thinking about it, I think the best color for the posts would be the same color as the top bar (#0066B9). █████████
For the topic, maybe white is fine (also since people are already used to it a bit).
Last edited by LS97 (2011-07-29 06:12:09)
Offline
LS97 wrote:
Hmmm... thinking about it, I think the best color for the posts would be the same color as the top bar (#0066B9). █████████
For the topic, maybe white is fine (also since people are already used to it a bit).
good idea! I'll test it out.
Edit: right, I did it. Now to test them out:
Topic, style 1.
Topic, style 2.
Post, style 1.
Post, style 2.
Edit: woo they work! do you think I should make the text on the post style 1 white?
Last edited by RUMCHEERYPOOPOO (2011-07-29 06:34:18)
Offline
RUMCHEERYPOOPOO wrote:
LS97 wrote:
Hmmm... thinking about it, I think the best color for the posts would be the same color as the top bar (#0066B9). █████████
For the topic, maybe white is fine (also since people are already used to it a bit).good idea! I'll test it out.
Edit: right, I did it. Now to test them out:
Topic, style 1.
http://scratchloveit.netne.net/topicrat … ;ret=image
Topic, style 2.
http://scratchloveit.netne.net/topicrat … mp;style=2
Post, style 1.
http://scratchloveit.netne.net/topicrat … ;type=post
Post, style 2.
http://scratchloveit.netne.net/topicrat … ;type=post
Edit: woo they work! do you think I should make the text on the post style 1 white?
Yes, white. Great!!
Offline
LS97 wrote:
RUMCHEERYPOOPOO wrote:
LS97 wrote:
Hmmm... thinking about it, I think the best color for the posts would be the same color as the top bar (#0066B9). █████████
For the topic, maybe white is fine (also since people are already used to it a bit).good idea! I'll test it out.
Edit: right, I did it. Now to test them out:
Topic, style 1.
http://scratchloveit.netne.net/topicrat … ;ret=image
Topic, style 2.
http://scratchloveit.netne.net/topicrat … mp;style=2
Post, style 1.
http://scratchloveit.netne.net/topicrat … ;type=post
Post, style 2.
http://scratchloveit.netne.net/topicrat … ;type=post
Edit: woo they work! do you think I should make the text on the post style 1 white?Yes, white. Great!!
![]()
![]()
I'll work on it later, shouldn't be hard. I'm having a nice break right now from coding AKA a nice long walk
Offline
Happy walk then
Offline
RUMCHEERYPOOPOO wrote:
And concerning the text-like, it would still be an image, but yes I could do it in the style of the scratch forums, so it looks like it's normal text.
That's what I meant.
RUMCHEERYPOOPOO wrote:
Yes, what code did you use for the tbg forums like button?
I used:
Oh wait, I deleted after it didn't work. I will try again.
EDIT: Here it is, and the url is http://scratch.mit.edu/tbgforums/viewto … pid=317489
[url=http://scratchloveit.netne.net/topicrate.php?id=317489&ret=add&forum=tbg][img]http://scratchloveit.netne.net/topicrate.php?id=317489&ret=image&forum=tbg[/img][/url]
The error is "Error: id not found"
Last edited by whizzer (2011-07-29 07:25:08)
Offline
RUMCHEERYPOOPOO wrote:
scimonster wrote:
I'm getting a "BAD URL" message.
![]()
probably because your not on a topic page.
The way you can tell it's a topic page is this:
What the url shouldn't look like:
http://i54.tinypic.com/ay3xcm.jpg
What the url should look like:
http://i52.tinypic.com/fonjw8.jpg
The number after the url won't always be that, it's only true of this topic. You can get to the topic page by going to the advanced topics forum and clicking on the link to the topic from there.
What on earth is that browser? Firefox? A mashed up version of Chrome?
Offline
whizzer wrote:
RUMCHEERYPOOPOO wrote:
scimonster wrote:
I'm getting a "BAD URL" message.
![]()
probably because your not on a topic page.
The way you can tell it's a topic page is this:
What the url shouldn't look like:
http://i54.tinypic.com/ay3xcm.jpg
What the url should look like:
http://i52.tinypic.com/fonjw8.jpg
The number after the url won't always be that, it's only true of this topic. You can get to the topic page by going to the advanced topics forum and clicking on the link to the topic from there.What on earth is that browser? Firefox? A mashed up version of Chrome?
Firefox 5. And the reason why your thing isn't working is that you need to either: put &type=post onto the end of both the image URL and the link URL, or you need to change the Id to the topic I'd rather than the post id.
I suggest topic as that's what it is, in which case you need to put 5159 as the id.
Offline