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

#101 2011-07-29 00:51:03

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

Re: Forum topic like Buttons!

What does that do?

Offline

 

#102 2011-07-29 03:36:57

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

Re: Forum topic like Buttons!

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 the

Code:

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!


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#103 2011-07-29 03:42:16

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

Re: Forum topic like Buttons!

I'm getting a "BAD URL" message.  hmm

Offline

 

#104 2011-07-29 04:00:33

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

Re: Forum topic like Buttons!

scimonster wrote:

I'm getting a "BAD URL" message.  hmm

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.


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#105 2011-07-29 04:03:42

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

Re: Forum topic like Buttons!

I was on the post page.

Offline

 

#106 2011-07-29 04:30:14

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

Re: Forum topic like Buttons!

scimonster wrote:

I was on the post page.

If doing what I said doesn't work I'm not sure what you can do..


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#107 2011-07-29 04:33:44

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

Re: Forum topic like Buttons!

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

 

#108 2011-07-29 04:48:31

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

Re: Forum topic like Buttons!

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  smile


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#109 2011-07-29 04:50:50

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

Re: Forum topic like Buttons!

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  smile

If you don't get around starting it before August, I could always give you a hand  big_smile   tongue

Offline

 

#110 2011-07-29 04:56:09

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

Re: Forum topic like Buttons!

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  smile

If you don't get around starting it before August, I could always give you a hand  big_smile   tongue

Well, I'm on holiday next week, so I'll probably start it this week and then you can finish it off  big_smile

I think I'm going to add post-liking today. Your favourite  smile

Last edited by RUMCHEERYPOOPOO (2011-07-29 04:56:47)


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#111 2011-07-29 05:08:50

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

Re: Forum topic like Buttons!

RUMCHEERYPOOPOO wrote:

I think I'm going to add post-liking today. Your favourite  smile

lol  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  big_smile

goodie  smile

Offline

 

#112 2011-07-29 05:46:11

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

Re: Forum topic like Buttons!

Testing: like this post...http://scratchloveit.netne.net/topicrate.php?id=852598&ret=image&type=post

edit: hmm ok
edit2: lol uploaded it to the wrong place, fixed now  big_smile  I will add a tutorial on the first post as usual.

Last edited by RUMCHEERYPOOPOO (2011-07-29 05:50:28)


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#113 2011-07-29 05:56:30

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

Re: Forum topic like Buttons!

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 now  big_smile  I will add a tutorial on the first post as usual.

Maybe different color to distinguish difference?  wink

Offline

 

#114 2011-07-29 06:02:38

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

Re: Forum topic like Buttons!

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 now  big_smile  I will add a tutorial on the first post as usual.

Maybe different color to distinguish difference?  wink

What do you recommend?


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#115 2011-07-29 06:03:48

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

Re: Forum topic like Buttons!

V2.0
Finally added Likeable posts! as requested by LS97.

Yay!

See the first post for a tutorial on how to use them.


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#116 2011-07-29 06:04:08

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

Re: Forum topic like Buttons!

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 now  big_smile  I will add a tutorial on the first post as usual.

Maybe different color to distinguish difference?  wink

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  tongue

Offline

 

#117 2011-07-29 06:07:50

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

Re: Forum topic like Buttons!

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  smile

If anyone has any suggestions, please suggest them  big_smile


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#118 2011-07-29 06:11:42

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

Re: Forum topic like Buttons!

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

 

#119 2011-07-29 06:12:54

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

Re: Forum topic like Buttons!

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/topicrate.php?id=69732&ret=image
Topic, style 2.
http://scratchloveit.netne.net/topicrate.php?id=69732&ret=image&style=2
Post, style 1.
http://scratchloveit.netne.net/topicrate.php?id=852473&ret=image&type=post
Post, style 2.
http://scratchloveit.netne.net/topicrate.php?id=852473&ret=image&style=2&type=post

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)


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#120 2011-07-29 06:56:50

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

Re: Forum topic like Buttons!

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!!  big_smile  big_smile

Offline

 

#121 2011-07-29 07:02:30

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

Re: Forum topic like Buttons!

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!!  big_smile  big_smile

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  smile


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#122 2011-07-29 07:04:38

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

Re: Forum topic like Buttons!

Happy walk then  smile

Offline

 

#123 2011-07-29 07:16:32

whizzer
Scratcher
Registered: 2008-05-27
Posts: 500+

Re: Forum topic like Buttons!

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

Code:

[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)


http://i46.tinypic.com/33df6me.png I'm whizzer0 for all things Minecraft.

Offline

 

#124 2011-07-29 07:18:46

whizzer
Scratcher
Registered: 2008-05-27
Posts: 500+

Re: Forum topic like Buttons!

RUMCHEERYPOOPOO wrote:

scimonster wrote:

I'm getting a "BAD URL" message.  hmm

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?


http://i46.tinypic.com/33df6me.png I'm whizzer0 for all things Minecraft.

Offline

 

#125 2011-07-29 07:40:57

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

Re: Forum topic like Buttons!

whizzer wrote:

RUMCHEERYPOOPOO wrote:

scimonster wrote:

I'm getting a "BAD URL" message.  hmm

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.


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

Board footer