Here is a great tutorial for getting Flickr pics into Joomla. It uses the free extension from Flickr4j. For an example of what it looks like working see my Imology website

This is tutorial has been created from instructions from other Joomla users and is not entirely my work.

1. Subscribe to Flickr

Subscribe to flickr and create an account.

2. Generate API Key

Generate an API key.

3. Install library Bot

Install the phpflickr library bot

4. Configure Bot settings

In the bot settings add your API key and username. IMPORTANT - Make sure you use your flickr log-in name not your email address e.g. cdmcdermott not me@yahoo.co.uk.
You can find your flickr username by logging in to Flickr, it will say “logged in as: [username]” at the top of the screen. This is the username you need to provide to flickr4j. Without it, you will receive errors basically saying the user is unknown

5. Install Extensions

Install the component, other bots and modules; publish the modules and bots.

6. Test the extensions work

I have used the module to display my latest pictures which have been added to my flickr account again see Imology for an example.

If you still get a php error message it may be that you need to change your error settings in configuration.php to simple. These will hide these simple system error messages.

This extension works tremendously well if you get the settings correct. Remember the key is getting your correct flickr username !

If you need any more help give me a shout !

Trackback This Post | Subscribe to the comments through RSS Feed

104 Responses to “Tutorial: Flickr photographs in Joomla”

Great tutorial that extension rocks !

Thanks great tutorial

[…] Original post by Chris McDermott BLOG […]

great plugin for joomla, however do you know if it is possible to show not only sets and photosteam but also collections?

thanks a lot!

Hi Viktor

the component allows sets, photostream and your favorites, however I don’t think you can use collections

Cheers

Hi Sandor,

You are correct “bot_flickr4j_lib” must be installed first otherwise you run into errors. As you installed the component first I would suggest you uninstall them all and then reinstall the bot first. Remember also to copy the following code just above -tag:

/mambots/flickr4j/lightbox/js/prototype.js”>
/mambots/flickr4j/lightbox/js/scriptaculous.js?load=effects”>
/mambots/flickr4j/lightbox/js/lightbox.js”>
/mambots/flickr4j/lightbox/css/lightbox.css” rel=”stylesheet” type=”text/css”/>

Hope that helps

chris

Chris,

I did that.
I inserted the code just above in the template-html. That is correct,right?
Or should it be somewhere else

Sandor

I meant just above the “”-tag

the / head -tag

I’m unable to make thr plugin works. Install mambot/plugin “bot_flickr4j_lib”. Give the right username-APkey-Cache like official website says. It test it using “bot_flickr4j_photo” in right way but it doesn’t show any image and not says any error but:

Error: Unknown property ‘filter’. Declaration dropped.
Source File: …/css/lightbox.css
Line: 80

Error: Error in parsing value for property ‘display’. Declaration dropped.
Source File: …/css/lightbox.css
Line: 95

Can anyone help me?

Thx, Monty!!!

Chris,

Anymore ideas?

Thanks!!

Hi Chris,

This just a silly question..
How to generate the API key? :D

Thanks

Hi!

I have a problem, and hope that you could help me.

Where must I add the code lines? I don’t know the file that I must modify. Could you tell me the filename, please?

Thanks.

Xtian!

Hi Libe,

I have created tutorial for how to generate an api key

Hope this helps

Chris

Hi Xtian

The file you are looking for is index.php.

It will be found in your templates folder

e.g. /htdocs/templates/js_lightfast/index.php

You need to copy the code above the / head -tag

Sandor,

Your posts are causing problems on the blog for some reason so I email you rather than post on here

Chris

Hi… again!

I just add the lines on my template index.php file, but I don’t know how to use the bot, because when i go to the configuration menu (components/flickr4j menu) i just see the name of the bot, and nothing else.

However, if i put the code {flickr4j_photo id=’xxx’ size=’0|1|2|3′} the photos appear on my site, but don’t enlarge when i clic on them. I use Firefox, and the only change when i clic mi photos is a grey color on my background, and apparently, the photo enlarged behind my site. When i use IExplore i just clic and a new page with my photo appear.

How can i solve that? Any ideas?

Thanks again.

Chris,

I think that is because I used the head-tag in one of the mails to explain my problem.
I posted three messages but they all were missing the tag.

My apologies.

Xtian,
If you go to the template-manager, you can access the html-file from there. You can also access the css-file from there.
Good luck!

Greetings,
Sandor

Hi Xtian

Can you give me your web address and i’ll have a look. Also which template are you using, I know some people have experienced problems with slimbox and smoothgallery not working in certain templates, this extension uses these.

Finally have you configured the bot correctly with your flickr username and api key, and published the bot ?

chris

No problem Sandor

Have you mailed already, because I have received nothing yet.
Just checking, no rush.

Hi Sandor

No I had to delete your last post as it wasn’t displaying properly, so dont have the details of the error message you are now getting. Can you email the error message with details again to my email address rather than post on here. My address is below

chris@mcdermotts.org.uk

Thanks

Chris

Hi!

I publish a section on my page with some photos. http://medicinausach.wesped.es//index.php?option=com_content&task=view&id=47&Itemid=1

There, when i clic on the photos, the background changes. The template i’m using is “rhuk_solarflare_ii”, the default template of my joomla install.

Thanks a lot for your help.

Xtian!

Hi Xtian

That looks like a problem with slimbox and smoothgallery not kicking in. What should happen is when you click on a picture the picture is brought to the forefront and the rest of your website is dimmed in the background.

Did you install, configure and publish the bot_flickr4j_lib first - this must be installed before any other flickr4j plugin ?

chris

Chris,

Quick question.
The code should be copied into the Site-Template and not into the Admin-Template, right?

tnx,
Sandor

Hi,
I am having trouble specifying sets through my Flickr4j extension. I enter set names separated by commas in the “comma separated list of sets” within the parameters for this component. But I get the message “The Flickr API returned error code #1: Photoset not found” when I click on the Sets thumbnail on my website. Any help is greatly appreciated!

Sandor,

Yes code should be copied into site-template mate

chris

Hi Ilya

which module are you using pics or cloud ?

thanks

chris

Chris,

It looks like I am using the pics module.

Thanks,
ILya

Hi,

I’ve followed the install guide step by step and am getting the error below:-

Notice: Undefined index: rsp in -Removed Url- /phpFlickr/phpFlickr.php on line 234

I know im using the right Username, any ideas on the error?

Ta

Shenn

Hello,

Just wanted to repost my issue in case it was overlooked. I am using the pics module and am having trouble specifying sets in Flickr4j. I enter set names separated by commas in the “comma separated list of sets” within the parameters for the Flickr4j component. But I get the message “The Flickr API returned error code #1: Photoset not found” when I click on the Sets (all sets) thumbnail on my website.

Thank you,
Ilya

Hi Chris,
Thank you for the tutorial.

I have been tring to get this to work with Joomla 1.5. It clearly isn’t compatible yet, but I have modified it slightly. Unfortunately I now get an error message “The Flickr API returned error code #100: Invalid API Key (Key not found)” I wondered if you where familiar with this / how we might be able to get round it.

Thanks,
Martin

RE: Configure Bot settings
“In the bot settings add your API key and username.”

Q: What are the steps for accessing the
bot settings? Where do I input the Flickr username and API key?

Admin > Mambots > Site Mombots > flickr4j_photo

I only see these fields:

Mambot Details
Name:
Folder: content
Mambot file: flickr4j_photo.php
Mambot Order: 1 (flickr4j_photo)
Access Level: Public
Published: Yes
Description: replaces {flickr4j_photo id=’xxx’ size=’0|1|2|3′} with the corresponding photo
Parameters:

I’m getting the same issue as Ilya - everything is installed correctly (as far as i’m aware) but i seem to be getting:

The Flickr API returned error code #1: Photoset not found

I’d love some help or suggestions. Is it anything to do with Caching perhaps?

Adam

Check that < ?PHP mosMainbody () ?> is included in your template as this will tell the system where to put the pictures

hope that helps

chris

Ilya

Looks like your getting the same error as adam, you could also confirm that the < ?PHP mosMainbody () ?> is specified in your sites template, so it knows where to put the pictures

cheers

chris

p.s. apologies for delay in replying - im soooooooooo busy at the moment !

Martin

confirm you are using the correct API key. Follow this guide to make sure your using that correct one.

How to find your API key

If anyone is still struggling with this plugin why not try this until you can get the flickr4j fixed.

http://pictobrowser.com/

This is a great flash based utility which you can use to embed your flickr photographs into your website or blog.

When i install the component, just after the install of the bot, i create my link from the main menu, but the menu return error :

Photostream

Warning: Invalid argument supplied for foreach()
in /home/sites/artisyou.com/www/components/
com_flickr4j/flickr4j.html.php on line 43

Warning: Invalid argument supplied for foreach()
in /home/sites/artisyou.com/www/components/
com_flickr4j/flickr4j.html.php on line 49
Sets

Can you help me ?

Nicolas.

Hi Nicolas,

Did you install and publish the phpflickr library bot first ?

chris

Hi there, thanks for the great service you are providing us all. :)

I got to install it fine, but can’t figure out the ids to put on both photo and set bots. I’ve tried the numbers on the flick url from a pic or set, to no avail. Can you give me some guidance, please?

Cheers

Cass

For the flickr4j latest pics module, the image won’t display. This is the path of the image (displays as X): http://static.flickr.com//__s.jpg

Any idea why the image doesn’t show up?

Thanks,
Jackie

I also have the same problem as Nicolas.
I’m recieving the following errors when I go to the link i created:
Warning: Invalid argument supplied for foreach() in
/home/nshofadmin/domains/nshof.org/public_html
/components/com_flickr4j/flickr4j.html.php on line 43

Warning: Invalid argument supplied for foreach() in
/home/nshofadmin/domains/nshof.org/public_html
/components/com_flickr4j/flickr4j.html.php on line 49

Your tutorial was so helpful and the installation was an apparent success. I am having one issue–the next and previous labels are not showing up when viewing the photos in the lightbox. You can click where the label should be, and the next or previous photo comes up.

The nextlabel.gif and prevlabel.gif are in this directory: mambots/flickr4j/lightbox/images

Does anything come to mind?

Hi Chris,

First of all thanks for the tutorial! I have the same problem as Nicolas. Problems with the sets on line 43 and 49 in the flickr4j.html.php file.

It has to do with this code:
foreach ($sets[’photoset’] as $set) {

Can you help me with that, I did install the library bot first.

Thank you in advance,

Anthonie

Hello,

After installation the configuration screen for the component is empty. I expected some fields here, correct?
Also the tags to show either a set or a photo do not work. Rhew username is correct (it showed an error before when the name was not correct).
Any suggestions?

Hi. I know this must be really simple to figure out, but I still haven’t figgured this out:

“The Flickr API returned error code #1: User not found”

Help? Cheers,
Pedro

I GIVE UP!
All elements installed in prescribed way. Stil many issues.

Cloud works fine, Pics fine - i.e. clicking on the thumb photos brings the lightbox presentation of the image - but no Prev - Next functionality.

All other elements i.e. _set and _photo display the thumbs but hang browsers (IE7 an FF) in attemept to display lightbox.

Sadly I must stop trying - poor documentation and visible lack of support by developer drives me to the competition. Pity as it looked like a promising Extension

I downloaded the bots, component and modules. I installed the bots first,
published the lib first then the others, then installed and published the components and modules.

I generated and input the API key into the relevant areas in the
flickr4j_lib bot and into the modules. There were no options available for the component.

I then went to my website and I see that the pics module is displaying
only a row of small rectangles. When I click one of them a small white
square pops up in the centre of the screen with a spinning pinwheel.
I have to refresh the page to get rid of this.

The cloud module displays this error:

Warning: Invalid argument supplied for foreach() in /home/thenewbr
/public_html/modules/mod_flickr4j_cloud.php on line 107
Warning: Wrong parameter count for max() in /home/thenewbr/
public_html/modules/mod_flickr4j_cloud.php on line 115
Warning: Invalid argument supplied for foreach() in /home/thenewbr/
public_html/modules/mod_flickr4j_cloud.php on line 154

I have 2 groups and 3 sets set to be open to the public on Flickr.

What did I do wrong and how can I fix this? I am working on very limited time
and will have to uninstall this and use something else if I can’t get it to work ASAP.

ADDITIONAL:

I did also add the following lines of code to my template head code, just before the tag:


/mambots/flickr4j/lightbox/js/prototype.js”>
/mambots/flickr4j/lightbox/js/scriptaculous.js?load=effects”>
/mambots/flickr4j/lightbox/js/lightbox.js”>
/mambots/flickr4j/lightbox/css/lightbox.css” rel=”stylesheet” type=”text/css”/>

Ilya:

Don’t write set name but set ID: it’s the number
from the link to the specific set on your photos page ex:

http://www.flickr.com/photos/xxxxxxxx@xxx/
sets/XXXXXXXXXXXXX/

The big X’s is the ID of the set.

To get the set ID:
1. Go to Flickr and click on your set
2. Look at the address in the URL.
The string of numbers at the end after “/sets/” is the set number. e.g.

http://www.flickr.com/photos
/11011376@N05/sets/1234567890/
The 1234567890 is the set id.

Hope this helps.

Thanks for the clear information in the tutorial.

But I have still problems. I have followed the instructions, installed it for several times ,but still no photo’s to see on the website. I get no errormessage, so I think it’s the connection to Flickr.

The component is installed, but I see only the title of the component, no links or menu.

I tried all suggestions posted in the blog, but still no result. Probably a small problem i overlooked.
Any Suggestions ?

Thanks,
Jan

I had the same problems as Nickolas (above),
and did install the lib bot first.
Any ideas why I would be getting these errors:

Warning: Invalid argument supplied for foreach() in
/home/kelleyco/public_html/components/com_flickr4j
/flickr4j.html.php on line 43

Warning: Invalid argument supplied for foreach() in
/home/kelleyco/public_html/components/com_flickr4j
/flickr4j.html.php on line 49

Please let me know if you need any additional info for diagnosis. Thanks! - Stephanie

Hi Chris,

Thank you so much for this tutorial. It helped! But one problem - everything works just fine - I get my images, etc. But when you click on them the lightbox function doesn’t work. Is there another component, mambot or module that I need to install??

Thanks!!

Hillary

Hi Star, I’m having the same problem with lightbox loading but nothing shows up and then I have to hit refresh to get the site back. Have you discovered any solutions?

I am having the foreach() issue also.

Warning: Invalid argument supplied for foreach()
in /home/kelleyco/public_html/components/com_flickr4j
/flickr4j.html.php on line 43

Warning: Invalid argument supplied for foreach()
in /home/kelleyco/public_html/components/com_flickr4j
/flickr4j.html.php on line 49

No idea what I’m doing wrong here.

Can anyone provide any insight on this issue?

I HAVE FOUND THE SOLUTION! SEE:
http://altendorf.enemy.org/en/newsflashes/newsflash
/flickr4j—fixes-and-modifications.html

You need to upgrade your installation of phpFlickr
in Flickr4J to the latest version.

Uninstall the component part of the flickr4j, and replace the
phpflickr folder in the installation foler with the newer version.
Then before you reinstall, edit the flickr4j.php file in
the component and change line 69-70 as follows:
It should be this to begin with:

// get the nsid of the specified username
$nsid = $f->people_findByUsername($username);

Paste over it with this:
// get the nsid of the specified username
//$nsid = $f->people_findByUsername($username);
$nsidarray = $f->people_findByUsername($username);
$nsid = $nsidarray[’id’];

AND IT WORKS!!!!!! HOORAY!!!!!!

Hi All

Apologies for lack of communication I have been busy of late and haven’t had the time to devote to answering questions.

Its been good to see people helping each other out though.

I know this might not be a solution for some people but I had a wee play about with Flogr - this is a wee php script that integrates really nicely with flickr and allows you to display your flickr photographs on your webpage. Simply download the required files, edit them as per the instructions and then upload them into a folder on your web server and there you have it a simple way to display your flickr photos on your website - it even pulls in comments on flickr photographs.

I like it ! If anyone wants to see it in action have a look here www.mcdermotts.org.uk/photographs

chris

http://code.google.com/p/flogr/

I am getting multiple errors on my page http://stevemoyerfitness.com/index.php?option=com_flickr4j&Itemid=27

I did my best to follow the instructions but I am afraid I got off track somewhere. Any ideas as to what I did wrong?

I’d really appreciate any help!!

Thanks,
Shely

I’m having the same problem as Hillary and Jellocat… Everything works fine except lightbox. The white box pops up, but the background doesn’t dim, nor does anything show up… Then the page has to be refreshed to make the white box go away.

Any idea as to why lightbox isn’t working properly?

(Yes, I did add the code provided to the template above the closing head tag.)

Ok, so, in response to my own last comment, somehow I managed to stumble upon a fix to my problem at least (I think).

I replaced the effects.js and scriptaculous.js files that came with the flickr4j bot with the ones from the lightbox download (http://www.huddletogether.com/projects/lightbox2) and suddenly things started working. :o

Hi Chris, I tried your solutions but had no luck. Altendorf.enemy.org appears to be down right now,
but I worked through your instructions. I downloaded the latest version of PHPflickr from https://sourceforge.net/project/showfiles.php?group_id=139987

I then extracted the flickr4j_lib bot and replaced the phpflickr files in the archive and rezipped them.
I then edited flickr4j.php as you said. I uninstalled all the component and mambot, and then reinstalled everything.
I’m continuing to get the “Warning: Invalid argument supplied for foreach() in C:\home\__StagingSites\teal.2gen.net\website\docs\
components\com_flickr4j\flickr4j.html.php on line 43″ errors.

Does anyone know what’s going on? Flick4j was working perfectly earlier this week and appears to have died with no reason.

I have a fix for this!!!!
————————-
Warning: Invalid argument supplied for foreach()
in /home/kelleyco/public_html/components/com_flickr4j
/flickr4j.html.php on line 43

Warning: Invalid argument supplied for foreach()
in /home/kelleyco/public_html/components/com_flickr4j
/flickr4j.html.php on line 49
————————-

You MUST have TWO photos assigned to a SET in Flickr!!! If you are only testing with one photo in Flickr, you will get this error, as soon as you post another photo, it will work! It would seem there needs to be some kind of error checking so it will not require two photos!

Best Regards,
Chris Pletz
IowaStudio
www.iowastudio.com

I’m having the same problem as Pedro and must be missing somehing simple. I get the following error:

“The Flickr API returned error code #1: User not found”

I have created the API per the link instruction above. Not sure where the share secret goes, but I put the API key in and my user name. Any help would be great.

Tom

I have two questions:

1) Is there a way to have sets always display no matter what? I changed up the code so it displays sets then when you click on a set the sets disappear and the set’s photos appear. I placed the lightbox functionality on these images. Problem is I don’t want the sets to be removed from the screen I want them to stay there and the photos to populate underneath. Is there a way to do this in the flickr4j.html.php file?

2) Is there a way to display private photos from flickr to Joomla?

I figured out question #1. Simply under case “sets” in the flickr4j.php file under “else if(!isset)$Photo))” copy the “if(!isset($Set)){” information and paste it above “HTML_flickr4j::displaySet($f, $Set, $Page);”

As for question #2 I am still working on a solution.

If anyone can point me in the right direction that would be great. I’ve been playing with the Flickr API settings I just don’t know where to place the arguments for flickr.photos.search
-Mike

Tom,

If you want me to take a look at it I can. Just shoot me an email and we can further discuss. I battled many problems with this and eventually got everything to work.

Chris
cp@iowastudio.co

FYI - I’ve since started using EasyGallery. It’s much better I think! I don’t believe it use to be free, but now it is!

http://www.joomla-addons.org/option,com_docman/task,cat_view/gid,32/Itemid,161.html

Reinstalled multiple times. Has anyone encountered this Error message:

Fatal error: Cannot redeclare class net_url in /home/budds2/public_html/mambots/flickr4j/phpFlickr/PEAR/Net/URL.php on line 40

Any assistance is very much appreciated.

Hi
I am have a problem that is very similar to one of the postings in this thread. If I inset the codelines in my template php file, clicking on an flickr image results in a box opening, but only showing a white space, no picture.

Without the code it works, but in a primitive way. Clicking on an image makes the image open in a new browser window with white background.

I am using a rockttheme template with the “rokzoom” bot enable. Could it be a conflict that makes the code lines result in errors?

I get the

The Flickr API returned error code #97: Missing signature

error… any idea ?

kind regards

Theo

Hi Chris,

Everything is working fine for me except when I click on a pic the box pops up but doesn’t show any picture.

Anything wrong with the installation?

another problem im facing is that since I put the plugin, the header for all my modules get off a little bit. But once I unpublish the flickr4j_lib module.. it looks fine.

Thnx Chris

I’m also having this problem, tried everyhting mentioned previously. Upgrader, changed the code, tried putting more photos on flickr and still get

“Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\joomla15\components\com_flickr4j\flickr4j.html.php on line 43

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\joomla15\components\com_flickr4j\flickr4j.html.php on line 49″

Line 43 says- foreach ($sets[’photoset’] as $set) {

Line 49 says- foreach ($sets[’photoset’] as $set) {

Anymore suggestions as to what to do?

Cheers

Craig

P.S. i’m running my own server on an old desktop computer so the problem could be there rather than the code

I am wondering why the flickr4j does not update sets when edits are made from Flickr. For example, if a person adds or deletes an image, the small thumbnails show the ‘no picture available’ sign. If the images are re-arranged, the old arrangement stays and if titles are changed they do not show up. Any idea why this would be?

hi Chris,

Did you get the plugin to work in Joomla 1.5.3 ?

Marcel

Craig,

Do you have multiple sets defined, if so make sure you have two pictures under each one. You may also want to start from scratch, not sure how much has changed since you experience the problem, but you may have more then just this problem now. :)

Chris

I still recommend this, I haven’t had one problem with it. This was a nightmare for me so I ended up just seeking another alternative solution. And Easy Gallery does just that.

http://www.joomla-addons.org/option,com_docman/task,cat_view/gid,32/Itemid,161.html

For a demo visit: www.brinkerlake.com and become a registered user. There will be a link at the top!

Cheers.

I have flick4j working properly with one exception. If I add a photo to a set, it never gets updated on my website. The only way I can get it to update the photo count is to make a new set in flickr and post a new set ID. Has anyone seen this, know a working around or what I’m doing wrong?

My problem with Easy Gallery is that I need the files to be stored on a different host, be it flickr or other ftp space I have. I can’t seem to figure out how to get easy gallery to use my other ftp space.

Hello,

I’m trying to install the library for flickr4j (flickr4j_lib) on Joomla 1.5. However, after the installation, these came up:

—————

Library for flickr4j
The library that is needed for the flickr4j addons

Includes:

* phpFlickr
* lightbox2

Installation:
Add the following lines to your template, above closing -tag:

/mambots/flickr4j/lightbox/js/prototype.js”>
/mambots/flickr4j/lightbox/js/scriptaculous.js?load=effects”>
/mambots/flickr4j/lightbox/js/lightbox.js”>
/mambots/flickr4j/lightbox/css/lightbox.css” rel=”stylesheet” type=”text/css”/>

Publish the flickr4j_lib plugin
—————

And finally when I tried to load the page, this message came up:

Warning: require_once(/home/anndxlcf/public_html/joomla15/mambots/flickr4j/phpFlickr/phpFlickr.php) [function.require-once]: failed to open stream: No such file or directory in /home/anndxlcf/public_html/joomla15/components/com_flickr4j/flickr4j.php on line 120

Fatal error: require_once() [function.require]: Failed opening required ‘/home/anndxlcf/public_html/joomla15/mambots/flickr4j/phpFlickr/phpFlickr.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/anndxlcf/public_html/joomla15/components/com_flickr4j/flickr4j.php on line 120

—————–

I tried troubleshooting it but wasn’t able to fix it. Please help.

Motogirl, i found a solution for the problem you had:
edit the /home/budds2/public_html/mambots/flickr4j/phpFlickr/PEAR/Net/URL.php, go to line 211, (delete the = null from $url and $usebrackets), it has to be like this:

function Net_URL($url, $useBrackets)

Save, and ready to go!

I can’t get any photo descriptions to display when I put a set in an article in joomla 1.0.15
Is it supposed to show the descriptions/captions ?

I also get the
————————-
Warning: Invalid argument supplied for foreach()
in /home/kelleyco/public_html/components/com_flickr4j
/flickr4j.html.php on line 43

Warning: Invalid argument supplied for foreach()
in /home/kelleyco/public_html/components/com_flickr4j
/flickr4j.html.php on line 49
————————-

errors when I try to use a menu option to link to the component… it shows the sets thumbnails, but when you click on the set it says it can’t find it… even though the same setid works in the article mambot…

Thanks
Vida

OK so this is weird. I have on my front page the flickr4j pics module. My user name is in that, and it works fine on the front end.

Flickr4jcould however comes up with: Warning: Invalid argument supplied for foreach() in /home/handm4/public_html/upcountryquiltersguild/modules/mod_flickr4j_cloud.php on line 107

Warning: Wrong parameter count for max() in /home/handm4/public_html/upcountryquiltersguild/modules/mod_flickr4j_cloud.php on line 115

Warning: Invalid argument supplied for foreach() in /home/handm4/public_html/upcountryquiltersguild/modules/mod_flickr4j_cloud.php on line 154

ok, then I have made a link to the component com_flickr4j in my main menu and come up with this error: The Flickr API returned error code #1: User not found

Same user name as the module that works.

HELP!!!!

I’ve set it all right, now it shows the thumbnails in my joomla content, but when I click on a thumbnail, the lightbox come out, but it remains all white, neither the picture or the “next” or “previous” or “close” buttons appears.
Can you help me? thanks!

Joomla Picasa 2.0 stable!

http://forum.joomla.org/viewtopic.php?f=46&t=256952

After having to rebuild gallery2 for the 2nd I am looking for a simpler way to have pics on this website. I stumbled across this, but cannot seem to get it to work. I keep getting the following error: “The Flickr API returned error code #1: Photoset not found”

Any adivce for clearing this up?

Thanks

Mike

testing flickr plugin but can’t get it to work.. get

Warning: main(/home/sievingn/public_html/mambots/flickr4j/phpFlick/phpFlickr.php…………….

so swapped ‘mambots’ folder to ‘plugins’ as there’s no mambots folder

now get this

The Flickr API returned error code #100: Invalid API Key (Key not found)

though I’ve put in api key in plugin and then put it in phpFlickr.php on line 46 as it wasn’t there

run out of ideas now!

Hi,

I followed your tutorial and when I test the componenet I get the error of the following kind in this url: http://www.captionpower.com/index.php?option=com_flickr4j&Itemid=27

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/lib/php/PEAR.php) is not within the allowed path(s): (’.:/proc/uptime:/tmp:/home:/usr/local/lib/php:/usr/home:/usr/local/bin/’) in /home/makeu11/public_html/captionpower/mambots/flickr4j/phpFlickr/PEAR/HTTP/Request.php on line 46

Warning: main(PEAR.php) [function.main]: failed to open stream: Operation not permitted in /home/makeu11/public_html/captionpower/mambots/flickr4j/phpFlickr/PEAR/HTTP/Request.php on line 46

Fatal error: main() [function.require]: Failed opening required ‘PEAR.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php:/home/makeu11/public_html/captionpower/mambots/flickr4j/phpFlickr/PEAR’) in /home/makeu11/public_html/captionpower/mambots/flickr4j/phpFlickr/PEAR/HTTP/Request.php on line 46

Can you please tell me what I am doing wrong?

THANKS

None helps anymore in this website…. :(
I asked a question on 24th of August, never answered.

hi,

first of all thanks for a great tutorial and i now have flickr4j running on my site. but i was wondering is there a way of making the lightbox/slimbox display bigger?

Hi Victor,

have you looked in the file /home/makeu11/public_html/captionpower/mambots/flickr4j/phpFlickr/PEAR/HTTP/Request.php

I think there is a wrong path in it.

HOW TO DISPLAY PRIVATE PICTURES TUTORIAL:

1.) Install as normal follow the instructions as Chris outlined; Except replace the API generation step with the steps outline at http://phpflickr.com/tools/auth/

Make sure you follow the instructions step by step its important to set the callback url to: http://phpflickr.com/tools/auth/auth.php

2.) The phpflickr website will give you a few lines of php code after you authorize the API within the actual flickr website.

3.) You will have to edit the php file for the Mambot you will be using in my case flickr4j_set.

The file is
>/mambots/content/flickr4j_set.php OR
>/mambots/content/flickr4j_pic.php

4.) Comment the line
$f = new phpFlickr($flickrapikey); (should be line 68)
by putting a # symbol in front of it. If something goes wrong you can just remove lines you have added and remove the pound symbol. Add the 2 lines from the phpflickr website output just below your commented line.

That should be it, oh and just a tip, I have noticed recently added/moved/updated pictures aren’t available to the API for 5-10 minutes. This includes any you move from public to private, so be patient.

NOTE: phpflickr.com is the API code base for flickr4j so no need to worry about the validity of the site.

I am getting the “The Flickr API returned error code #100: Invalid API Key (Key not found)” error for some reason. I have checked and double checked all of my files and i am using the correct API Key and Secret.

What do you recommend?

Hi Chris,
You are very kind to share your knowledge and expertise. I really want to use Flickr to share photos of my little town in Northeastern Pennsylvania but I’m getting an odd error message when I try to edit the flickr4j_lib mambot. I’m a super administrator but when I click either on the name of the file or select it and click edit I get a Restricted Access pop-up and the file then becomes locked. Do you have any idea how I can fix this? I’ve searched everywhere and can’t find what setting I should change. I’m definitely a super administrator with all the permissions but I can’t edit the file.
Thanks in advance
Kathy Schwartz
Jim Thorpe, PA
kathymschwartz(at)gmail.com

Hi there, I am having the same problem as ‘Kai’ after following the tutorial I load my site and the following error shows up.

Warning: require_once(/home/content/b/o/s/bostechaustral/html/includes/domit/xml_saxy_lite_parser.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/b/o/s/bostechaustral/html/plugins/content/flickr4j_photo.php on line 29

Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/b/o/s/bostechaustral/html/includes/domit/xml_saxy_lite_parser.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/b/o/s/bostechaustral/html/plugins/content/flickr4j_photo.php on line 29

Your help is appreciated.

Marty

Dear all,

I’m trying to get flickr4j to work on my website. Installed the lib, added the lines in template (index.php) and installed the component.

When i open the fotolink i’m getting this error. Anyone an idea?

Warning: require_once(/home/dyabt01/domains/mysite.nl/public_html/mambots/flickr4j/phpFlickr/phpFlickr.php) [function.require-once]: failed to open stream: No such file or directory in /home/dyabt01/domains/mysite.nl/public_html/components/com_flickr4j/flickr4j.php on line 120

Fatal error: require_once() [function.require]: Failed opening required ‘/home/dyabt01/domains/mysite.nl/public_html/mambots/flickr4j/phpFlickr/phpFlickr.php’ (include_path=’.:/usr/local/lib/php’) in /home/dyabt01/domains/mysite.nl/public_html/components/com_flickr4j/flickr4j.php on line 120

To all those having the ‘invalid photo ID error’… I solved this on my site by simply emptying the jos_flickr4jcache table.

If displaying single photos using the flickr4j pics module, when the photo is clicked it displays the correct ‘title’ information. However when you display an entire set and an image is clicked it displays the title as the original name of the file regardless of whether it has been changed in flickr. How can I get the title to display properly when viewing sets enlarged?

I have spent over a week playing with this. I do have php and javascript experience, and it looks as though it should work properly, however it is not.

Thanks for any help!!

nevermind on my last question. It had to do with caching. I changed the cache time to ‘1′ temporarily on the flickr4j_lib mambot and now it works fine. thanks for posting such helpful information regardless!

Hi,
we also started getting the bug described above:

Warning: Invalid argument supplied for foreach() in /public_html/pt/mambots/content/flickr4j_set.php on line 73

We tried upgrading the phpFlickr to the latest version (of the phpFlickr folder in /mambots/flickr4j ).
We tried uninstalling and reinstalling the flickr4j component.

The error persists.

Is there a solution after all for this??

Please help we have loads of pages using this (great until now) plugin.

thanks.

Hi,
we also started getting the bug described above:

Warning: Invalid argument supplied for foreach() in /public_html/pt/mambots/content/flickr4j_set.php on line 73

We tried upgrading the phpFlickr to the latest version (of the phpFlickr folder in /mambots/flickr4j ).
We tried uninstalling and reinstalling the flickr4j component.

The error persists.

We are using Joomla! 1.0.15 Stable.

»» After all, is there a solution for this??

Please help we have loads of pages using this (great until now) plugin.

thanks.

I’ve installed the component the richt way and changed in de Flickr4j.php mambots 2 plugins an then i get this

The Flickr API returned error code #100: Invalid API Key (Key has invalid format)

Hel me PLS

Something to say?

Bad Behavior has blocked 442 access attempts in the last 7 days.