Data reader block

I'm trying to create a mashup that will display thumbnail images and have each image link to a different url.

I used the image scraper to extract a list of all the images i want to use (i had to create such a page on my web site. meaning a page with all the thumbnails). Then connect it to the PhotoFlip block (I like the PhotoTiles better but unfortunately the PhotoFlip is the only one that has a linkUrl field).

The problem is that I have nothing to connect to the linkUrl field.

One solution might be to have the ImageScraper block extract the link that the image links to, and pass that on to the photoflip.

Another solution might be, and this would be good for many projects, is to have a data reader block that knows how to read a table, or a comma-sperated-values file (or, if i'm being really optimistic, a table within a ms access mdb file). Then I would have a table with two columns: the url of the image, and the url the image should link to. And I would connect the block that reads that table into the PhotoFlip.

So what do you say popfly team?

Can you create something like this?

PS: Any chance to add a linkUrl to the PhotoTiles. Like I said, it's way cooler than PhotoFlip....

[1443 byte] By [cowchimp] at [2008-3-7]
# 1
We are certainly looking at data parsing blocks :-). Hopefully soon.

For the image scraper fix, I've shared a block that does that : called "AnyImageScraper".

We'll add the linkUrl request for PhotoTiles to the feature list :-)

AndyS at 2007-9-26 > top of Msdn Tech,Popfly,Popfly General Discussion...
# 2

Hi Andy.

The linkURL field that the AnyImageScraper returns for each photo, is that of the main page that contains all of the photos. Meaning, the same URL I specified as an input for the getImages function.

I thought it was suppose to return the url that each specific photo links to (meaning, the link in the A HREF tag that surrounds the IMG SRC tag).

Am I doing something wrong?

I shared the project. It's called "my airsickness bags collection displayed as photo tiles".

The URL for the ImageScraper uses is http://www.cowchimp.com/mashup/mashup.htm

cowchimp at 2007-9-26 > top of Msdn Tech,Popfly,Popfly General Discussion...
# 3
Your not doing anything wrong at all the Image Scraper blocks don't check to see if they are inside an anchor (<a>, <a href="http://www.popfly.com">) tag. As you say it just returns the page from where the image was scraped from. In the future we could certainly add some checking to see if the img tag is in an a tag. Would have to look into it some more to see if the changes can be made easily.
AndyS at 2007-9-26 > top of Msdn Tech,Popfly,Popfly General Discussion...
# 4

I would like a similar thing but instead of using PhotoTiles use Virtual Earth. Basically have photos taken from Flickr that are geotagged have them display at correct location on Virtual Earth. When you click on the picture somewhere you can go over a link when you click on it it will take you to that webpage.

Any ideas?

Rich

RichardN at 2007-9-26 > top of Msdn Tech,Popfly,Popfly General Discussion...