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

#551 2011-10-03 04:43:53

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

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

Laternenpfahl wrote:

Hi! First of all, I would like to tell you how important this API is to many scratchers. Really, it is very hard to find a important topic without any of this!

However, I would really love a simple link which just shows stuff like "My newest Project, blahblah, has blahblah views, blahblah love-its, and blahblah downloads" in the style of my signature.  smile

Oh, and sparks, can I use the thing you have in your sig until then? Thanks!

That's a great idea! I'll create one that lists everything in text format, it'll only need your username (Then add optional things that let you choose which ones to show).

You're welcome to use my signature style  smile


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

Offline

 

#552 2011-10-03 10:28:51

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

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


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

Offline

 

#553 2011-10-03 12:28:02

Laternenpfahl
Scratcher
Registered: 2011-06-24
Posts: 1000+

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

Thanks!

also, how do you make multiple lines in the text?


http://i46.tinypic.com/6yd4c0.png

Offline

 

#554 2011-10-03 12:31:21

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

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

You currently can't  sad  I think I ought to develop some things like that into it when I have a moment!


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

Offline

 

#555 2011-10-06 17:37:36

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

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

Laternenpfahl wrote:

Thanks!

also, how do you make multiple lines in the text?

I was messing around with it, but couldn't quite accomplish. I thought that maybe we could use str_replace, but I have nothing to replace it with.

Actually, I just thought of a way. I'm going to try it.

Last edited by ProgrammingFreak (2011-10-06 17:37:42)

Offline

 

#556 2011-10-21 02:04:28

3D_Mario
New Scratcher
Registered: 2011-10-10
Posts: 100+

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

( (cool( (›

   [][]
   (ºº)
    )(
  /(  )\
   [][]

****

Offline

 

#557 2011-10-21 02:08:03

3D_Mario
New Scratcher
Registered: 2011-10-10
Posts: 100+

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

( (cool( (›

‹( (looc( ()

Offline

 

#558 2011-10-30 13:22:06

pokemongardevoir
Scratcher
Registered: 2009-10-18
Posts: 1000+

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

sparks wrote:

^ home
Project links, thumbs and info

Project thumnails

This API lets you show your newest projects in your sig! When you add a new project it will appear as num=1 automatically and all the other project images will slide back! For example, my newest project has this thumbnail:http://blocks.scratchr.org/API.php?user … &num=1

action value:

projects

type value:

newest

return value:

image

parameters:

user, num

Code:

[url]http://blocks.scratchr.org/API.php?user=USERNAMEHERE&action=projects&type=newest&return=image&num=NUMBER[/url]

setting num to 1 will return your newest project, setting it to 2 will return your second newest and so on.
___________________________________________________________________________________
Project links

This API lets you link to your n'th newest projects in your signature! For example, my newest project has this link: My newest project

action value:

projects

type value:

newest

return value:

link

parameters:

user, num

Code:

[url]http://blocks.scratchr.org/API.php?user=USERNAMEHERE&action=projects&type=newest&return=link&num=NUMBER[/url]

setting num to 1 will return your newest project, setting it to 2 will return your second newest and so on.
________________________________________________________________________________
if you want to create a thumbnail to go with the link to your newest project, the parameters and method are exactly the same for the link version but you put it into [ url] tags and return=link is replaced with return=image.

For example:
http://blocks.scratchr.org/API.php?user … &num=1

Code:

[url=http://blocks.scratchr.org/API.php?user=USERNAMEHERE&action=projects&type=newest&return=link&num=1][url]http://blocks.scratchr.org/API.php?user=USERNAMEHERE&action=projects&type=newest&return=image&num=1[/url][/url]

___________________________________________________________________________________
Project info
This API returns info about your num'th project as an image of the name. For example, my newest project, http://www.blocks.scratchr.org/API.php? … &num=1 has http://www.blocks.scratchr.org/API.php? … &num=1 love-it's and  http://www.blocks.scratchr.org/API.php? … &num=1 favouriters, http://www.blocks.scratchr.org/API.php? … &num=1 comments, http://www.blocks.scratchr.org/API.php? … &num=1 downloads and http://www.blocks.scratchr.org/API.php? … &num=1 remixes!

action value:

projects

type value:

newest

return value:

text, loves, faves, comments, remixes, downloads

parameters:

user, num, return

Code:

[url]http://blocks.scratchr.org/API.php?user=USERNAMEHERE&action=projects&type=newest&return=RETURNVALUE&num=NUMBER[/url]

There are several return values for this action:
text -return the project name
loves - return the number of love-it's
faves - return the number of favouriters
comments - return the number of comments
remixes - return the number of remixes
downloads - return the number of downloads

Can someone help me transfer this into HTML?


http://i48.tinypic.com/n50dt.gifhttp://tiny.cc/oj6plwhttp://tiny.cc/creepforum
My website has been approved by the Scratch Team.  (^_^)

Offline

 

#559 2011-10-30 13:33:36

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

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

pokemongardevoir wrote:

sparks wrote:

stuff he said

Can someone help me transfer this into HTML?

I'm not quite sure what  you mean


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

Offline

 

#560 2011-10-30 13:44:35

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

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

@ pokemongardeviour:

Simply replace as follows

Code:

[url=stuff]Stuff[/url]
with
<a href = "stuff">Stuff</a>

[img]stuff[/img]
with
<img src="stuff" />

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

Offline

 

#561 2011-10-30 14:11:49

Laternenpfahl
Scratcher
Registered: 2011-06-24
Posts: 1000+

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

ProgrammingFreak wrote:

Laternenpfahl wrote:

Thanks!

also, how do you make multiple lines in the text?

I was messing around with it, but couldn't quite accomplish. I thought that maybe we could use str_replace, but I have nothing to replace it with.

Actually, I just thought of a way. I'm going to try it.

Yay!


http://i46.tinypic.com/6yd4c0.png

Offline

 

#562 2011-10-30 14:55:39

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

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

\n is a new line


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

Offline

 

#563 2011-10-30 15:54:17

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

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

rookwood101 wrote:

\n is a new line

He's talking about newlines in the text-as-image system. You actually need to code in the coordinates for a new line rather than using \n  hmm


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

Offline

 

#564 2011-10-30 17:06:39

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

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

sparks wrote:

rookwood101 wrote:

\n is a new line

He's talking about newlines in the text-as-image system. You actually need to code in the coordinates for a new line rather than using \n  hmm

oh. Yeh that's annoying. I think there's a way of working out the height of letters in a font. yep you can http://php.net/manual/en/function.imagefontheight.php


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

Offline

 

#565 2011-10-31 13:55:49

pokemongardevoir
Scratcher
Registered: 2009-10-18
Posts: 1000+

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

sparks wrote:

@ pokemongardeviour:

Simply replace as follows

Code:

[url=stuff]Stuff[/url]
with
<a href = "stuff">Stuff</a>

[url]stuff[/url]
with
<img src="stuff" />

Tried that, didn't work.


http://i48.tinypic.com/n50dt.gifhttp://tiny.cc/oj6plwhttp://tiny.cc/creepforum
My website has been approved by the Scratch Team.  (^_^)

Offline

 

#566 2011-10-31 13:59:26

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

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

Odd... Give me the bbcode for what you want and I'll HTML it for you  smile


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

Offline

 

#567 2011-11-03 05:17:58

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

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

You need to change Rum to Rook and the button has to be linked to rookwood101.tk.

Offline

 

#568 2011-11-03 05:21:54

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

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

I was trying to use the custom online/offline sig, but it wouldn't display.  hmm
http://goo.gl/Xnue9
http://blocks.scratchr.org/API.php?user=scimonster&amp;user2=sci_test&amp;target=all&amp;action=onlineStatus&amp;online=http://dl.dropbox.com/u/42774013/Scimonster%20icons/Animated%20Scimonster%20sig.gif&amp;offline=http://dl.dropbox.com/u/42774013/Scimonster%20icons/Scimonster%20sig.png

Last edited by scimonster (2011-11-03 05:22:48)

Offline

 

#569 2011-11-04 16:55:05

shiguy101
Scratcher
Registered: 2010-11-17
Posts: 1000+

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

is there a newest project in gallery one?

Offline

 

#570 2011-11-04 18:02:27

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

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

shiguy101 wrote:

is there a newest project in gallery one?

I don't believe so.


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

Offline

 

#571 2011-11-06 12:38:35

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

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

bump


is there a way to find one's post count? Specifically on the tbgs?

Offline

 

#572 2011-11-06 12:43:14

shiguy101
Scratcher
Registered: 2010-11-17
Posts: 1000+

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

rookwood101 wrote:

shiguy101 wrote:

is there a newest project in gallery one?

I don't believe so.

can some one make one?

Offline

 

#573 2011-11-23 14:10:07

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

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

You should add views to project info.  big_smile

Offline

 

#574 2011-11-24 04:56:52

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

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

My newest project, http://blocks.scratchr.org/API.php?user=sparks&amp;action=projects&amp;type=newest&amp;return=text&amp;num=1 currently has http://blocks.scratchr.org/API.php?user=sparks&amp;action=projects&amp;type=newest&amp;return=views&amp;num=1 views.

Last edited by sparks (2011-11-24 05:04:39)


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

Offline

 

#575 2011-11-24 05:00:36

sci_test
Scratcher
Registered: 2011-06-22
Posts: 100+

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

Was that a test?

Also, look at my above post.  wink


[signature removed - please be respectful]
Last edited by scimonster (1970-01-01 00:00:00)

Offline

 

Board footer