News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Flickr Gallery Browser

Started by PJLawrence, December 31, 2008, 08:06:29 AM

Previous topic - Next topic

PJLawrence

Link to Mod

*******************************
Flickr Gallery Browser Mod Version 0.3
*******************************

This mod allows you to browse public sets of a Flickr Gallery as part of your SMF forum.

Note before using this mod you'll need to obtain a Flickr API key from http://www.flickr.com/services/api/key.gne

When installed this mod places a Flickr Gallery menu item on the default forum theme.
Before you can view your selected Flickr Sets you need to go the Flickr Galley Browser admin settings which can be found...
In SMF  1.1 admin options are found in the Features and Settings admin page under "Layout and Options".
In SMF 2.0 admin options are found under Miscellaneous in Configuration, Modifications of your admin panel.

Once in the admin settings enter your Flickr API Key and user name in the relevant text boxes. Make sure that there is no spaces after the username or API Key when entering them into the relevant text boxes.

Other admin options include...
1) An optional default "Set". Leave blank if you wish, by default, to list the public sets.
2) The ability to restrict this gallery browser to display just the default "set".
3) Control over the number of images to display per a row.
4) The option to enable either database or file caching.

For more information about Flickr, check out www.flickr.com.

The Flirkr Gallery Browser should work with any theme.
However, if you're not using the default theme under SMF1 you may need to add a 'Flickr Gallery' button, index.php?action=flickrgallerybrowser, to your theme.

Disclaimer: This mod is provided "as is" without express or implied warranty.

Credits...

  • This mods uses the Highslide JS view. The Highslide JS is licensed under a Creative Commons Attribution-NonCommercial 2.5 License. This means you need the author's permission to use Highslide JS on commercial websites. http://highslide.com/#licence
  • phpFlickr is distributed under the GNU Lesser General Public license. (see http://phpflickr.com/)
  • PEAR - PHP Extension and Application Repository (http://pear.php.net/) is distributed under the PHP License 3.0 (http://www.php.net/license/3_0.txt).
  • Flickr is a trademark of Yahoo! Inc. This product uses the Flickr API but is not endorsed or certified by Flickr.

Changelog...
   0.1 - 14th Novement, 2008 (First release)
   0.2 - 21st Novement, 2008 (File cache option added)
   0.3 - 9th December, 2008 (Database caching option added)
   
SMF Versions: 1.1.6, 1.1.7 and 2.0 Beta 4

Sabre™

Thanks for another great mod mate :)
Would having the settings for a user to display their Flickr images in their profile, be a big job?
I was looking into options such as the gallery mod etc, and figured if the admin can do this(with this mod) why shouldnt I let users do the same in their own profile.
Having as many images for as many users from their flickr, picasa, image shack etc folders, would be pretty good. With a dropdown to select which album to view of course. It also saves them reuploading to your server if they already have it at one of the others.  Convenient.
But, I cannot even comprehend the complexity if any of such a task, and Im merely throwing an idea out there.

Cheers mate, always enjoy your additions

regards
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


PJLawrence

This was something I was thinking about doing, but I'm not sure when I'll get around to it since I don't currently require this feature for my forum. You can add a flickr/picasa link to a person's profile via the Custom Profile Field Mod. Hence if you can add a link to a person's profile you should be able to display the contents or recently uploaded images of their flickr/picasa account as well.

jbernabe

Hi

excellent job!

but... one question... How I can use this mod for a group? Thanks
visitame en www.jbernabe.com

PJLawrence

Sorry this mod does not currently support Flickr groups.
However, groups are supported by phpFlickr so in theory this mod could be extended include this functionality.
Possibly something I could add for the next release.

However, if you know a bit of PHP you can do it yourself by modifying the function  getFlickrPhotos, in flickrgallerybrowser.php, to use the groups_pools_getPhotos phpFlickr function rather than photosets_getPhotos. Also replace photosets_getInfo with groups_getInfo. Plus other code changes to pass and handle the group ID instead of a set ID.

jbernabe

thanks lawrence...

Im not very good with PHP... but I trying...

Can anyone help me with this problem? thanks
visitame en www.jbernabe.com

PJLawrence

If you are looking for help in developing a new or modifying an existing mod then you can always ask in either the SMF Coding Discussion or Mod Requests boards.
I can even provide input on how to write the php function which gets the group photos from flickr. It's just that I can't see me being able to get time to develop this mod further in the next 6 months or so due to work commitments.
I find it quite easy/quick to develop new code. The problem is checking it, testing it and then doing all the other work with is required to turn it into a mod which is ready for release to the general public.

If someone wants to take one of my mods and change it and then upload it to the smf mod site that's ok with me.

jbernabe

thanks lawrence, i will to try it.
visitame en www.jbernabe.com

smldmr

Hello, this mod is very interessting. I would like to use it but i get this error, if i clck on the "Flickr Gallery" link.

"Fatal error: require_once() [function.require]: Failed opening required 'HTTP/Request.php' (include_path='.:') in ----phpFlickr/phpFlickr.php on line 90"

What is the problem here?

I use smf 2.0 RC1 with standard theme and no other mod is installed (is test forum). I have a Flickr-API key.

PJLawrence

smldmr, the Request.php file should reside in the following sub-directory Sources\phpFlickr\PEAR\HTTP of your smf installation. If it's missing you may need to re-install this mod.

smldmr

the file is there, but the mod looks for it in wrong directory (without PEAR). If i edit the phpFlickr so that it find the request.php, then i get one other error (again is some directorys missing).

I will re-install it.

nodent

How do I increase the image size?

The "Expand to actual size" don't work?

Also if the ablum has to many pictures in it, it hangs.

Thank you

chrishicks

I installed this on my test board and it installed just fine with no errors. I setup my API key/user ID in the settings but when I go to the flickr gallery it just says "no sets found". I'm sure it's something simple that I'm overlooking so can someone share what I'm missing to get this working?

Hiver101

Quote from: chrishicks on March 10, 2009, 04:27:32 PM
I installed this on my test board and it installed just fine with no errors. I setup my API key/user ID in the settings but when I go to the flickr gallery it just says "no sets found". I'm sure it's something simple that I'm overlooking so can someone share what I'm missing to get this working?

i'm getting the same message.

i already have the key, what else should i set? i don't know what should i put in "Default Flickr Set Only" and "Default Flickr Set"

please help

3wasef

#14
I am getting this:
Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of getFlickrPhotos(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in \forum\Sources\flickrgallerybrowser.php on line 329

at top of the forum page!!! ???

any help please

note: I am using SMF 1.1.8

lextalionis

Quote from: nodent on March 10, 2009, 11:03:09 AM
How do I increase the image size?

The "Expand to actual size" don't work?

Also if the ablum has to many pictures in it, it hangs.

Thank you

This happens to me too...otherwise nice mod!

-Roy

spiffypix

I'm getting the same message as well.  Do I put a link in the set box or just the name?

help!

DareDevil1990

#17
can i also add multiple account? because one account can hold only 100MB of pcitures unless u upgrade it to pro :D

and when i click on any photo in gallery
this is the max size i get
http://i44.tinypic.com/34shxlj.jpg

how do we make it full size.

metzbgsu

I had to parse this mod as I'm getting some other errors while trying to install any mods via SMF.  I followed everything and double checked it all, but flickrgalleryinstall.php won't run.  The page just comes up blank when I get there.  Any advice for this?

metzbgsu

I guess I could explain what my problem is better.  After I parsed the mod, I have no options in the admin panel to enter anything.  I obtained the API key and am ready for the next step after that, but I don't know what to do next.  I tried running the flickrgalleryinstall.php directly thinking that is the next step, but it just comes up as a blank page.

Any help with this would be great!  Thanks!

Advertisement: