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

#126 2011-07-29 07:54:34

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

Re: Forum topic like Buttons!

RUMCHEERYPOOPOO wrote:

whizzer wrote:

RUMCHEERYPOOPOO wrote:

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.

Where's 5159 come from? And I have got the topic ID!
EDIT: Page 6!

Last edited by whizzer (2011-07-29 07:54:54)


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

Offline

 

#127 2011-07-29 07:58:08

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Forum topic like Buttons!

gbear605 wrote:

Add a 'I agree' button, for yes or no question stuff.

By this do you mean similar to the love it option so you can change the text on the image to say "# agree" "Agree with this?" and "I agree with this!" ?

yes, for like scratch suggestions and stuff, or debate topics, or petitions.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#128 2011-07-29 07:58:30

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

Re: Forum topic like Buttons!

whizzer wrote:

RUMCHEERYPOOPOO wrote:

whizzer wrote:


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.

Where's 5159 come from? And I have got the topic ID!
EDIT: Page 6!

5159 is the topic id, If you followed the tutorial on the first page, then it says:

first page wrote:

First off you need to make a url tag with the url http://scratchloveit.netne.net/topicrate.php?id=TOPIC ID HERE&ret=add to find the topic id, you must first make the post, go out to the forums section your topic is in, click on your topic and you'll see in the url bar something like scratch.mit.edu/forums/viewtopic.php?id=# where # is a number, you need to copy this number and put it in the TOPIC ID HERE.


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#129 2011-07-29 08:38:50

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Forum topic like Buttons!

I love this. This is amazing. Maybe a &text= variable, like this:

http://scratchloveit.netne.net/topicrate.php?id=TOPIC ID HERE&ret=add&text1=Supporters&text2=Please_Support!


http://i46.tinypic.com/dw7zft.png

Offline

 

#130 2011-07-29 08:44:27

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

Re: Forum topic like Buttons!

SeptimusHeap wrote:

I love this. This is amazing. Maybe a &text= variable, like this:

http://scratchloveit.netne.net/topicrate.php?id=TOPIC ID HERE&ret=add&text1=Supporters&text2=Please_Support!

hehe thanks, I'll add it to the todo list.


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#131 2011-07-29 09:09:08

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Forum topic like Buttons!

Add this after style 2:

Code:

if ($_REQUEST['style'] == 3 || isset($_REQUEST['imglink']) == true) {
    $img = imagecreatefrompng ('$_REQUEST['imglink']');
    if ($_REQUEST['type'] == 'post') {
        $text_colour = imagecolorallocate($img, 0, 102, 185);
    }
    else {
        $text_colour = imagecolorallocate($img, 255, 0, 0);
    }
    $text_colour2 = imagecolorallocate($img, 1, 1, 1);
    $font = realpath('font2.ttf');
    imagettftext($img, 10, 0, 4, 14, $text_colour, $font, $string);
    imagettftext($img, 8, 0, 15, 28, $text_colour2, $font, $substring);
    $whit = imagecolorallocate($img, 255, 255, 255);
    imagecolortransparent($img, $whit);
}

May have to troubleshoot, my PHP is bad. Pretty much if style is 3 and &imglink=LINK is there, it makes the like button on the link.


http://i46.tinypic.com/dw7zft.png

Offline

 

#132 2011-07-29 09:30:38

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

Re: Forum topic like Buttons!

@rum, you might as well do it then since you've already got the MySQL set up  smile


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

Offline

 

#133 2011-07-29 10:30:19

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

Re: Forum topic like Buttons!

RUMCHEERYPOOPOO wrote:

scimonster wrote:

I was on the post page.

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

Oh, it worked now.
I'll try out the post like soon!  big_smile

Offline

 

#134 2011-07-29 10:45:37

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

Re: Forum topic like Buttons!

Sci! Fix your sig! All you need to do is decapitalise!

Code:

[img]http://blocks.scratchr.org/libstatus.php?user=scimonster&user2=sci_test&online=http://weebly.com/uploads/8/1/3/6/8136364/8026303.png&offline=http://weebly.com/uploads/8/1/3/6/8136364/2985209.png[/img]

tongue


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

Offline

 

#135 2011-07-29 10:57:52

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

Re: Forum topic like Buttons!

I know, I just haven't made the random images yet. ;P

Offline

 

#136 2011-07-29 11:27:46

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

Re: Forum topic like Buttons!

Lightnin said that my username is a bit innappropriate, so I have a new account and this one will be banned  sad . If this does happen then my username will be rookwood101.

Last edited by RUMCHEERYPOOPOO (2011-07-29 16:49:53)


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#137 2011-07-29 11:28:21

peterkap
Scratcher
Registered: 2009-01-24
Posts: 1000+

Re: Forum topic like Buttons!

It doesn't work.

Offline

 

#138 2011-07-29 11:30:24

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Forum topic like Buttons!

peterkap wrote:

It doesn't work.

Have you got any more information on your problem? As I can't help you with just that.


http://i.imgur.com/zeIZW.png

Offline

 

#139 2011-07-29 11:34:57

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Forum topic like Buttons!

RUMCHEERYPOOPOO wrote:

Lightnin said that my username is a bit innappropriate, so I might have to get a new account and this one will be banned  sad . If this does happen then my username will be rookwood101.

This is me now

I'm Rum.


http://i.imgur.com/zeIZW.png

Offline

 

#140 2011-07-29 11:36:29

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

Re: Forum topic like Buttons!

rookwood101 wrote:

RUMCHEERYPOOPOO wrote:

Lightnin said that my username is a bit innappropriate, so I might have to get a new account and this one will be banned  sad . If this does happen then my username will be rookwood101.

This is me now

I'm Rum.

It's the truth.


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#141 2011-07-29 12:15:18

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

Re: Forum topic like Buttons!

I know.
Why isn't my like counting anymore? :S

Offline

 

#142 2011-07-29 12:16:34

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

Re: Forum topic like Buttons!

awww, that's a pity. true though, dont know if it's 4 the rum or the... excretion  tongue
anyway, remember to transfer sig and projects before the final sentence!  big_smile

Offline

 

#143 2011-07-29 12:21:30

kimmy123
Scratcher
Registered: 2008-05-20
Posts: 1000+

Re: Forum topic like Buttons!

Thanks, I used it for my topic.  big_smile
http://scratch.mit.edu/forums/viewtopic.php?pid=847772

Last edited by kimmy123 (2011-07-29 12:22:22)


http://i.imgur.com/Mg3TPIE.pnghttp://i.imgur.com/rgyzXV5.pnghttp://i.imgur.com/685FKVd.pnghttp://24.media.tumblr.com/8678e33865664f328e1654109679cb92/tumblr_mm1qu3jGD71s8caito3_r1_250.gif

Offline

 

#144 2011-07-29 13:32:50

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

Re: Forum topic like Buttons!

kimmy123 wrote:

Thanks, I used it for my topic.  big_smile
http://scratch.mit.edu/forums/viewtopic.php?pid=847772

cool!

@LS97 I'm just surprised no ones noticed until now, I've had this account for 3 years  smile . I was young when I made it, that's why it's like that  hmm


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

#145 2011-07-29 13:45:32

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

Re: Forum topic like Buttons!

RUMCHEERYPOOPOO wrote:

@LS97 I'm just surprised no ones noticed until now, I've had this account for 3 years  smile . I was young when I made it, that's why it's like that  hmm

Oh OK lol  tongue
Anyway, reach 300 posts before the disaster?  wink

Offline

 

#146 2011-07-29 15:35:20

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: Forum topic like Buttons!

scimonster wrote:

RUMCHEERYPOOPOO wrote:

scimonster wrote:

I was on the post page.

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

Oh, it worked now.
I'll try out the post like soon!  big_smile

I was going to extend it to be able to do pages that had a ?pid=xxxxxx, but the API doesn't support that. Like Rum said, you need to be on a page that has ?id=xxxxx.


http://www.danasoft.com/citysign.jpg

Offline

 

#147 2011-07-29 15:44:07

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: Forum topic like Buttons!

rookwood101 wrote:

RUMCHEERYPOOPOO wrote:

Lightnin said that my username is a bit innappropriate, so I might have to get a new account and this one will be banned  sad . If this does happen then my username will be rookwood101.

This is me now

I'm Rum.

Can't the Scratch team rename you? You would keep all your projects and your post count that way!

Last edited by Sidharth (2011-07-29 15:44:18)


http://www.danasoft.com/citysign.jpg

Offline

 

#148 2011-07-29 15:52:20

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

Re: Forum topic like Buttons!

Sidharth wrote:

rookwood101 wrote:

RUMCHEERYPOOPOO wrote:

Lightnin said that my username is a bit innappropriate, so I might have to get a new account and this one will be banned  sad . If this does happen then my username will be rookwood101.

This is me now

I'm Rum.

Can't the Scratch team rename you? You would keep all your projects and your post count that way!

They can transfer the post count and projects to the new account, but I don't think they can just rename him.

Offline

 

#149 2011-07-29 15:58:26

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: Forum topic like Buttons!

LS97 wrote:

Sidharth wrote:

rookwood101 wrote:


This is me now

I'm Rum.

Can't the Scratch team rename you? You would keep all your projects and your post count that way!

They can transfer the post count and projects to the new account, but I don't think they can just rename him.

That's the same thing as renaming... almost


http://www.danasoft.com/citysign.jpg

Offline

 

#150 2011-07-29 16:50:36

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

Re: Forum topic like Buttons!

Sidharth wrote:

scimonster wrote:

RUMCHEERYPOOPOO wrote:


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

Oh, it worked now.
I'll try out the post like soon!  big_smile

I was going to extend it to be able to do pages that had a ?pid=xxxxxx, but the API doesn't support that. Like Rum said, you need to be on a page that has ?id=xxxxx.

it does now!


I AM ROOKWOOD101 NOW! (just so you know)

Offline

 

Board footer