?
Solved

include a flickr feed of photos in a website

Posted on 2007-07-29
3
Medium Priority
?
620 Views
Last Modified: 2013-11-19
Hello, I was curious if someone could tell me the easiest way to include the easiest way to include a flickr feed of photos in a website. I have an api key but couldnt find any easy directions to get me started. I want to include photos from other accounts as well as my own. My website is on an apache 1.3.3. run server (but Idont think this matters, just in case)

thanks in advance...
Oscar9er
0
Comment
Question by:Oscar9er
  • 2
3 Comments
 
LVL 21

Expert Comment

by:Julian Matz
ID: 19606174
Hi!

If you have Apache, I am assuming that you can run PHP on your server. The Flickr feeds are RSS, so I would personally use the php script "rss2html" from feedforall.com.

http://www.feedforall.com/download.htm

It's really easy to integrate and customise.

Take a look at that and let me know if you need any more help. I'd be glad to give you detailed instructions on how to use it.

Other people also like MagpieRSS, but I personally don't have much experience with Magpie.
0
 

Author Comment

by:Oscar9er
ID: 19607525
Hi J,

Yes would you mind too much walking me through implementing rss2html, I downloaded it but still a little confused. I dont want to use a template, I want to put it in a existing webpage (http://townblueprint.com/portfolio.com).

thanks,
-O
0
 
LVL 21

Accepted Solution

by:
Julian Matz earned 2000 total points
ID: 19608760
No problem.

First, you should change your portfolio page to php (portfolio.php)

The templates are only used to specify how you would like your feeds to display on your page(s) - e.g. Title, Description, Author, Time and Date, etc.

All you really have to do is insert the below PHP code wherever you'd like the feed to display on your page:

<?php
$XMLfilename = 'http://www.flickr.com/url-to-feed';
$limitItemDescr = 255; // Maximum number of characters in description
$max=4; // Maximum number of items to display on page
include ( 'includes/rss2html.php' ); // Relative or absolute path to the rss2html script
?>

Then just edit your template file to specify which attributes you'd like to include with the feed items - e.g. title, description, etc.

Let me know if you need any more help.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question