TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 728
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 514
  • Total: 515
  • @rjen

[Block] Code to display image RSS feeds from Flickr, Picasa and Photobucket

Started by PeterLawrence, November 23, 2008, 10:19:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

futuro

thanks peter... no more error... but, now (sorry) donÃ,´t take any photo

No Photos Found

i use my own rss flickr and your example and nothing.

PeterLawrence

How did you fix the error? What happens if you try a different RSS feed?

futuro

the error was the php.ini

if I try a different RSS... nothing... always "no photos found"

i need some additional mod? :S

PeterLawrence

Not sure what the problem is here, since the test script I provided worked on my system.
Have you tried to directly specify the url in the PhotoRSSFeed statement?
For example take it out of the for loop and see what happens..

$photofeed = new PhotoRSSFeed('http://api.flickr.com/services/feeds/groups_pool.gne?id=986935@N20&lang=es-us&format=rss_200');
$photofeed -> outputTable(3);

Otherwise I can only suggest that you add a few output statements (echo) in the code to trace the problem.



futuro

try another... perhaps this errors...


Warning: DOMDocument::load() [domdocument.load]: URL file-access is disabled in the server configuration in *** on line 29

Warning: DOMDocument::load(***) [domdocument.load]: failed to open stream: no suitable wrapper could be found in *** on line 29

Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity "***" in *** on line 29

PeterLawrence

Sorry jbernable but it looks like your service provider has disabled this functionality. Note the phpFlickr mod uses a different method to access RSS feeds which does not seem to be blocked by your server's set up.

I don't know if this is of any use to you, but I've posted some block code on the SMF forum site which uses phpFlick to display random images from a Flickr.
See http://www.simplemachines.org/community/index.php?topic=274558.msg1814677#msg1814677

It should be possible to modify that block code to get the images from a group rather than an account using the phpFlickr functions I mentioned in a previous post.

If I get the time in the next couple of weeks I may write the code for you, but I think you may have the skills to do it your self.


PeterLawrence

jbernable if you look at the phpFlickr site there is some example php code for displaying user groups which you may find useful
see http://phpflickr.com/examples/a-users-groups/source/

This website is proudly hosted on Crocweb Cloud Website Hosting.