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

#1 2011-07-27 14:58:45

TornFusion
Scratcher
Registered: 2010-09-03
Posts: 1000+

Sense New Posts?

I need an image that will update if a certain thread has new posts, like the offline/online thing. help!

Offline

 

#2 2011-07-27 15:15:54

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

Re: Sense New Posts?

Hmmm.... this is going to need a MySQL database. I can't possibly just write out the code for that, I suggest learning about PHP and MySQL yourself... It would be possible without a database though if you put the number of posts that thread had beforehand into the image URL, but then the image would need editing every time you wanted to reset it to show the new post count.

The best bet is to create a forum update notifier in Panther. I believe we shared a simple one that pops when a new post is created in a watched thread that you could adapt with the project in the sample projects folder.


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

Offline

 

#3 2011-09-13 17:35:34

cskidmsonic
Scratcher
Registered: 2011-01-22
Posts: 100+

Re: Sense New Posts?

sparks wrote:

Hmmm.... this is going to need a MySQL database. I can't possibly just write out the code for that, I suggest learning about PHP and MySQL yourself... It would be possible without a database though if you put the number of posts that thread had beforehand into the image URL, but then the image would need editing every time you wanted to reset it to show the new post count.

The best bet is to create a forum update notifier in Panther. I believe we shared a simple one that pops when a new post is created in a watched thread that you could adapt with the project in the sample projects folder.

Bump. Is there a link?

This could be added to the API.


This signature is TDD's fault... yes, I had to.

Offline

 

Board footer