lab
Flickr Mini Gallery – WP Plugin
Latest update v1.2
I’ve finally took some time to improve the plugin following some of your feedback and creating new features here is the list:
Changelog
Version 1.2
1. Now is possible to load a photoset by its ID no need for tagging anymore
2. Descriptions can be loaded on the lightbox (you can turn it of on the admin)
3. Link back to flickr (to comply with community guidelines)
Version 1.1
1. using jquery from wordpress(wp_enqueue_script(‘jquery’)) and encapsuled the js functions into jQuery(function($) to avoid conflicts with other plugins
2. added a special class on the thumbnails .flickr-mini-gallery-thumb so it easier to style or run scripts on it
3. added image titles on the title tag
4. Fixed the thumbnail/square selector on the admin
5. New feature: Image enlargement on rollover – you have to turn it on on the admin or use the hover parameter
Description
Mini flickr gallery is a easy way to embed super flexible galleries from any flickr account or group, using different parameters to customize it.
this demo has 2 galleries one is with the thumb showing on rollover and the rest of them are just showing the title
Installation
This plugin can be installed like all the other plugin. It requires no extra configuration except being activated.
- Extract the downloaded zip file to the
/wp-content/plugins/directory. You might also want to use OneClick Installer to automate this step. - In the Admin control panel, goes to the
Pluginspage and activate themini-flickr-galleryplugin. - Configure the plugin under the
Optionspage (Optional). - Start building your flickr galleries!
Usage guide
To get the photos this plugin uses the search API from flickr here are the parameters accepted:
note: you need at least one parameter
[miniflickr lang="pt" user_id="your_flickr_id'' tags="tag1,tag2" ...other parameters... ]Content for non javascript clients like RSS and email[/miniflickr]
photoset_id(Optional)(only on v1.2)- This parameter only works on version 1.2. The value
is the photoset id you can get it by clicking on a set on flickr and copy the number Eg.: http://www.flickr.com/photos/felipeskroski/sets/72157594194826952/ the number is 72157594194826952. When using the photoset other parameters don't work.
hover(Optional)( on v1.1 or +)- This parameter on version 1.1 or +. The values can be “yes” or “no”
[miniflickr ... hover="yes" ... ] lang(Optional)- This parameter only works if you’re using xLanguage plugin. And is the locale code like en, es, pt_br, en_gb.
user_id(Optional)- The NSID of the user who’s photo to search. If this parameter isn’t passed then everybody’s public photos will be searched.
tags(Optional)- A comma-delimited list of tags. Photos with one or more of the tags listed will be returned.
tag_mode(Optional)- Either ‘any’ for an OR combination of tags, or ‘all’ for an AND combination. Defaults to ‘any’ if not specified.
min_upload_date(Optional)- Minimum upload date. Photos with an upload date greater than or equal to this value will be returned. The date should be in the form of a unix timestamp.
max_upload_date(Optional)- Maximum upload date. Photos with an upload date less than or equal to this value will be returned. The date should be in the form of a unix timestamp.
min_taken_date(Optional)- Minimum taken date. Photos with an taken date greater than or equal to this value will be returned. The date should be in the form of a mysql datetime.
max_taken_date(Optional)- Maximum taken date. Photos with an taken date less than or equal to this value will be returned. The date should be in the form of a mysql datetime.
sort(Optional)- The order in which to sort returned photos. Deafults to date-posted-desc (unless you are doing a radial geo query, in which case the default sorting is by ascending distance from the point specified). The possible values are: date-posted-asc, date-posted-desc, date-taken-asc, date-taken-desc, interestingness-desc, interestingness-asc, and relevance.
bbox(Optional)- A comma-delimited list of 4 values defining the Bounding Box of the area that will be searched.The 4 values represent the bottom-left corner of the box and the top-right corner, minimum_longitude, minimum_latitude, maximum_longitude, maximum_latitude.Longitude has a range of -180 to 180 , latitude of -90 to 90. Defaults to -180, -90, 180, 90 if not specified.Unlike standard photo queries, geo (or bounding box) queries will only return 250 results per page.Geo queries require some sort of limiting agent in order to prevent the database from crying. This is basically like the check against “parameterless searches” for queries without a geo componentA tag, for instance, is considered a limiting agent as are user defined min_date_taken and min_date_upload parameters — If no limiting factor is passed we return only photos added in the last 12 hours (though we may extend the limit in the future).
group_id(Optional)- The id of a group who’s pool to search. If specified, only matching photos posted to the group’s pool will be returned.
lat(Optional)- A valid latitude, in decimal format, for doing radial geo queries.Geo queries require some sort of limiting agent in order to prevent the database from crying. This is basically like the check against “parameterless searches” for queries without a geo component.A tag, for instance, is considered a limiting agent as are user defined min_date_taken and min_date_upload parameters &emdash; If no limiting factor is passed we return only photos added in the last 12 hours (though we may extend the limit in the future).
lon(Optional)- A valid longitude, in decimal format, for doing radial geo queries.Geo queries require some sort of limiting agent in order to prevent the database from crying. This is basically like the check against “parameterless searches” for queries without a geo component.A tag, for instance, is considered a limiting agent as are user defined min_date_taken and min_date_upload parameters &emdash; If no limiting factor is passed we return only photos added in the last 12 hours (though we may extend the limit in the future).
radius(Optional)- A valid radius used for geo queries, greater than zero and less than 20 miles (or 32 kilometers), for use with point-based geo queries. The default value is 5 (km).
radius_units(Optional)- The unit of measure when doing radial geo queries. Valid options are “mi” (miles) and “km” (kilometers). The default is “km”.
extras(Optional)- A comma-delimited list of extra information to fetch for each returned record. Currently supported fields are:
license,date_upload,date_taken,owner_name,icon_server,original_format,last_update,geo,tags,machine_tags,o_dims,views,media. per_page(Optional)- Number of photos to return per page. If this argument is omitted, it defaults to 100. The maximum allowed value is 500.
*Detailed Flickr API
Examples
Shorcodes (to be used inside your posts or pages)
Gets photos from all the users with these tags
[miniflickr tags="travel, sunset, landscape"]
10 last images from my portfolio or shows the link if javascript is not enabled
[miniflickr user_id="56755410@N00" tags="portfolio" per_page="10" ] Portfolio[/miniflickr]
Gets photos from all the users with these tags
[miniflickr tags="poster" group_id="92076845@N00" per_page="5" ]
Gets photos from a photoset [new]
[miniflickr photoset_id="72157594194826952"]
Templates & Sidebar
10 last images from my portfolio
<?php
if (function_exists("build_mini_gallery")) {
$options = array('user_id' => '56755410@N00', 'tags' => 'portfolio', 'per_page' => 10);
echo build_mini_gallery($options);
}
?>
Gets last 5 images from all the users tagged as poster with no hover
<?php
if (function_exists("build_mini_gallery")) {
$options = array('tags' => 'poster', 'per_page' => 5, , 'hover' => 'no');
echo build_mini_gallery($options);
}
?>
How to set margin between the images
on your style.css add:
.flickr-mini-gallery img {
margin:0 5px 5px 0;
}
See the demo
Features
RSS , Email and non javascript friendly
The plugin uses javascript to build the gallery but if the client (browser, email client, feeds reader) doesn’t support it there is an option to show plain html content instead
Internationalization
The plugin is compatible with xlanguage plugin, use the parameter lang if you need to show a gallery just in a specific language.
Internationalization
The plugin is compatible with xlanguage plugin, use the parameter lang if you need to show a gallery just in a specific language.
Load images from a photoset [new]
Simply use [miniflickr photoset_id="ID_NUMBER_HERE" ] and you’ll instantly have a photoset loaded on your page or post
Images with descriptions [new]
You can load descriptions of images easily changabl on your admin
Link back to flickr [new]
After enlarging the image there is a link back to flickr so users can comment and interact with your flickr account
Download
flickr mini gallery.zip (updated 19/02/10)
Support
Please if you find any bug or issue or have any suggestion please let me know. Leave a comment.
Donate
I spend lot of my spare time developing and supporting this plugin if it is useful for you please give me a hand.
108 Comments so far
Leave a reply
Hugolatra 31/Jul/10
Felipe, great plugin. Thank you very much for your hard work!!
K. Raade 24/Jul/10
I had trouble with lightbox prev/next , close buttons not showing when expanding and image. Wordpress was installed into a custom path directory so I had to change a line in ‘flickr-mini-gallery/js/jquery.lightbox-0.5.js’
To this:
var imgs_url = theblogurl+’/blog/wordpress/wp-content/plugins/flickr-mini-gallery/images’;
So now it contains the subfolder path blogs/wordpress that I had created. Anyone experiencing this after a custom install should check that the path structure to find all lightbox images is correct.
Mackenzie 22/Jul/10
On the demo page – how did you get the corners rounded???
marta 22/Jul/10
thank felipe for getting back to me.
in the plugin instruction I see you only need to add to the page this code [miniflickr photoset_id="your_photoset_id" ] and replace it with your group id in my case 1431677@N20 (which would be from http://www.flickr.com/groups/viagginelmondo/ )
what i am doing wrong? sorry but as you guess i am a newbie
thanks so much for let me know
Ralf 21/Jul/10
Is there any solution for use with iframe?
admin 19/Jul/10
@ben It should work have a look with firebug to see how the CSS is rendering…
admin 19/Jul/10
Hi Marta,
can you give gallery’s code to see if it works?
Down Time in Fethiye 19/Jul/10
[...] Photos page through the navigation menu at the top of the site. This page was made possible by the Mini Flickr Gallery plugin created by Felipe Skroski, and was fun and easy to implement – thank you [...]
marta 19/Jul/10
hi there, great plugin however i am not able to make it works with my flickr group. it works fine with my photo set but can’t figure it out what i am doing wrong when using the group. my blog is http://www.blogdiviaggi.com and my flickr group 1431677@N20 (http://www.flickr.com/groups/viagginelmondo/) could you please help me? I am really stuck.
any help would be really REALLY appreciate it!
cheers
Fernando 17/Jul/10
Try this:
.flickr-mini-gallery img {
margin:0 5px 5px 0;
border:2px solid #999;
}
Ben 14/Jul/10
Hi Fantastic gallery, it is just what i was after!!
I’m having one problem though..
I cannot get the margins between the photo’s in the gallery. I have added the following code to my style.css but the images are still bunched together..
.flickr-mini-gallery img {
margin:0 5px 5px 0;
}
Any ideas?
Thanks!!!
WPTD: Flickr Mini Gallery | Faredigitale 11/Jul/10
[...] http://wordpress.org/extend/plugins/flickr-mini-gallery/ http://www.felipesk.com/flickr-mini-gallery/ [...]
easykick 5/Jul/10
HI,
this plugin is awesome. It works really well.
Me being a total noob to the whole programming biz, I have two questions:
I included the php script into all of my posts. Works fine.
Now I want to automatically use the tags of my post for my mini galleries.
How do I include them in the code? (I tried all sorts of things but cannot figure it out)
After that I want to limit the pictures to the ones that were taken XX weeks before the post’s date. How do I get this into the code?
Thanks a lot
Alex 24/Jun/10
Thanks for the fantastic and easy to use plugin! Now that I know how to resize the images it would be great if the light box could auto resize like Kenneth suggested on May 25th. I have found another light box plugin that does this (lightbox 2 http://stimuli.ca/lightbox/), but I have no idea how to implement it myself. Any help, or an update would be appreciated.
Marty 16/Jun/10
Hi, thanks for the plug-in. It offers more functionality than the other one I was using.
I noticed that per_page didn’t work with photoset_id, so I added &per_page={$per_page} to line 110 of the PHP.
It would be good if you could enable this parameter in future versions. Then I can upgrade without fear!
Thanks again!
Yulius Adrianto 1/Jun/10
Very cool plugin man, thanks so much..
Emir 27/May/10
Hello!
Terrific plugin. Works out of the box, but I have a strange error..
Lightbox opens ‘behind’ the gallery!?!?
Gallery always stays on top.
Is it a z-index problem? I didn’t change anything..
Thanks.
Emir
Fransgaard 26/May/10
This is one awesome plugin thanks.
I have a question
If I have two groups of photos when reaching the end of the first group it jumps the the first of the next group rather than closing the last slide.
Is there anyway to prevent this? Example here:
http://www.fransgaard.eu/how-twitter-helped-us-hunt-down-danny-choo-the-dancing-stormtrooper/
There’s a group of photos in the post as well as in the footer.
Thanks in advance for any help
Kenneth 25/May/10
I really like this plugin! The tip you gave to Brad on 20/Apr/10 about changing the photo size worked perfectly. Now that it’s easy to access the larger images, any tips on how to modify the plugin to auto-resize the lightbox to fit in the browser window? (They look great in a large monitor, but are too big for laptop screens.) Thanks for any tips!
tanuki 20/May/10
Drats, unfortunately STILL getting conflict errors with Flickr Mini Gallery 1.2 and Lightbox Plus Version 1.6.9.7 — on clicking a linked image on my site, the photo is expanded (without border or overlay) at the top left of the screen.
Anyone else getting this problem? I’ve currently disabled Lightbox, but would love some help troubleshooting…
Freddy 17/May/10
I added the “_o” before the “.jpg” to get the original pictures but got a message “This photo is currently not available”.
I tested with “_b” and got the same problem.
What could be wrong?
Many thanks.
richholt 12/May/10
Working fantastically now. No idea how I got it working. Didn’t change anything!
admin 9/May/10
@richholt looks like your photoset doesn’t exist… try it here : http://www.flickr.com/services/api/explore/?method=flickr.photosets.getPhotos
@john you can change the way you like is all CSS based… depending on the features you want to add you may need to understand javascript have a look at this example http://productofchaos.com/photos/
richholt 9/May/10
If I could get this plugin to work it would be fantastic! But unfortunately can’t…
I have the plugin installed and activated. Flickr user ID set. And in a post I put:
[miniflickr photoset_id="72157623892970683"]
Update page and refresh and shows nothing. Im not sure how I can test where it’s breaking, whether it’s not connecting to flickr or finding the photoset..
Should be displaying below the text on this page http://dressmyface.com/2010/03/model-nathalie-eyes/
I’ll keep trying to figure this out but hope for some help soon!
ps. using WP 2.9.2
John 6/May/10
Can you add some control over the Lightbox portion of your plugin? I’d like to use the slidewhow feature and maybe change the way the controls are displayed on the gallery image. Great plugin by the way, pretty much just what I’ve been looking for. Thank you.
Mini Flickr Gallery 6/May/10
[...] Info about tags and whatnot are here. [...]
Dinh Phan 5/May/10
thx for the help, also is there a way to just display photos of your own galleries that you have in wordpress? I have a couple of my own uploaded photos in wordpresss, and I’d like to display them also in the same format.
brianp 4/May/10
It’s simply wont work for me.
[miniflickr photoset_id="set_id_number" ]
The generated code is as follows:
Regardless of photoset id it never seems to pull any photos.
Any ideas?
Rahul Nanda 3/May/10
i tried this n number of time, but i am unable to embed the gallery. i really want to use this widget, kindly help.
regards
Matt Nestor 2/May/10
@Dinh Phan
The “img” element is probably being set to “display: block” somewhere in your stylesheet:
img {display: block}
You should be able to fix that by adding the following lines in the “flick-mini-gallery.css” file
located in the “/wp-content/plugins/flickr-mini-gallery/css” folder:
.flickr-mini-gallery img {display: inline!important;}
And that should fix it. I’m no pro and I can’t verify that this is the best solution but this was a huge nag for me until I figured it out. Hope it helps.
Dinh Phan 30/Apr/10
I can’t seem to get my margins right or something, i don’t want the photos to be in one line going straight down, i want them to be next to each other to conserve space.
Eddy 29/Apr/10
I updated to 1.2, but still can’t see the title and description from flickr in lightbox…I’m on WP 2.9.2.
What can I do to fix this problem?
Thanks
Kevan 24/Apr/10
Apologies – the problem was with Flickr’s feeds. It’s fixed itself.
Thanks for an outstanding plugin!
Kevan 24/Apr/10
Having issues with a group pool not updating.
The plugin works smashingly, but I’ve recently added pictures to the group, and the plugin will only display the older images, almost as though it won’t refresh the feed. I even deleted a photo from my account, that was previously pictured, and it no longer includes that one, but didn’t update to include the new ones.
If I change [miniflickr group_ID"..."] to [miniflickr user_ID"..."], it loads perfectly, including the new pictures that are a part of the group.
What could be going wrong?
Thanks in advance.
Jared 22/Apr/10
Thanks for the compliments Felipe, and thank you again for this great plugin!
admin 21/Apr/10
@jared
Thats a good feature to have on the next release thanks for the suggestion. Thats a pretty cool website by the way, nice work.
Jared 21/Apr/10
In case anyone was curious, I figured out the solution to my issue.
To add medium sized thumbnails as an option in your FMG settings page, add this line of code to your flickr_mini_gallery.php file in the thumbnail format section
<option value ="_m" >Medium
To have multiple thumbnail formats on the same page, again edit your flickr_mini_gallery.php file.
Add the following option to your list of shortcodes underneath the section that begins with //builds the gallery
‘format’ =>$img,
Now it appears that doing this overrides the manual thumbnail settings in my FMG settings page. I can add an option to my shortcode that says format=”_s”, format=”_t” or format=”_m”
_s is for the square thumbnails, _t is for the standard thumbnails and _m is for the medium thumbnails.
Now to have _s or square thumbnails in my content area, and a medium thumbnail image in my right sidebar, I simply added the format=”_s” shortcode in the text editor for the photo page, and added ‘format’ => ‘_m’ to the template file for my sidebar.
To see what I mean, there is an example at the following link, the content area on the left has the square thumbnails and the sidebar on the right has a medium thumbnail.
http://productofchaos.com/photos/
May seem silly but I figured I would share in case anyone needs/wants to do something similar.
admin 20/Apr/10
@Brad,
It is possible… you have to change lines 40 & 47 on miniflickr.js may need to add a “_b” or “_o” depending on the size you want. Anyway that a good idea for a new feature I may add it to the next release
Cheers
Brad Mahaffey 20/Apr/10
Could you please let us know if it is even possible to change the size of the flickr image pulled in the lightbox slideshow?
Thanks!
Joe 20/Apr/10
Hi Felipe. I just wanted to send you an update. Please disregard my previous message. I found an alternative solution. I just did not want you to waste time looking into my issue knowing this is a free plug-in. I do appreciate your time. Thank you, Joe
Jared 19/Apr/10
Felipe,
Ok, I figured out how to add the _m thumbnail format. Now if I could just figure out how to have the sidebar thumbnails in _m format and the rest of my thumbnails in _s small square format. Any info would be appreciated.
Jared 19/Apr/10
Felipe,
Quick question, I would like to change the thumbnail format. For example, I would like to set it up to display the “medium” or _m thumbnails (typically around 200-250 pixels wide on Flickr) instead of the default _t thumbnail. How would I go about doing that?
Ideally I want to have a “Photo Of The Day” feature in my sidebar which displays only one photo in _m or medium thumbnail format, and then still be able to display my small square thumbnails in the content area. Any suggestions?
JAPfeiffer 7/Apr/10
Great plugin really like it.
Couple of things I would like to see that would add some good functionality would be:
1. An ability to set a border or space between the images in the gallery. Perhaps this is there and I am missing it.
2. A way to easily use “Photosets” to create a gallery instead of having to use tags. That way every Image from a photoset would show, or x number of images from a photoset.
3. It would be nice to have a link on the full display of the image to take you to the Flickr page. That is a very minor thing though.
Again great plugin thank you so much for sharing all your work with everyone.
socialpreneur 28/Mar/10
Version 1.1 has two javascript errors conflicting with other WordPress plugins. WordPress version I’m using is 2.9.2
Here’s the link to erros posted on the forum.
http://wordpress.org/support/topic/380493
Eddy 27/Mar/10
I would like to have the flickr-title in the lightbox overlay like in you demo. But it doesn’t work. How can I fix this?
Nice plugin, thanks
Eddy
james marsland 20/Mar/10
Have now fixed my problem.
tks
james
james marsland 20/Mar/10
Hi,
I can’t get my Flickr user id to work at leckhamptononline.co.uk. The demo user id works fine but mine 31596671@N04 doesn’t. Am I missing something?
tks for any help
james
kyle 13/Mar/10
I agree with HighTechDad ^^^
alex 9/Mar/10
try to use extras owner_name but don`t see anything. how i shoud use it? thanks
HighTechDad 4/Mar/10
Very cool plugin. It ALMOST works for me in terms of functionality. The problem I have is that if I limit the results to a certain amount, then when you click to view the pictures, you only see that limited set. What ideally I would like would be to show a “Sample set” of images and then when you click on one, you can go through ALL of the photos. Hope that makes sense.
Michelle 3/Mar/10
Hi and thank you so much for the great plugin! I am launching it on a site soon and will share a link when it’s up.
I have only one concern, which is that when I launch a page with the gallery in a widget, the images seem to “flow” in showing text at first and then the thumbnails. Is there any way to cache them or something so they don’t do that on every page load? Or maybe pre-fetch the entire group from Flickr and then pop it in as a whole, rather than thumbnail-by-thumbnail?
Sorry if I’m not explaining well. I will share a link as soon as the site is live so you can see the behavior I’m talking about.
Thanks again for the great plugin!!
Michelle
admin 22/Feb/10
@jared
I’ve just added a description on how to make it.
Have a look
Jared 22/Feb/10
Fantastic plugin! I am curious to know if anyone figured out a quick and easy way to implement this plugin into the sidebar?
I wish to have a “photo of the day” feature in the sidebar of my site I am currently working on, but I dont want to install another Flickr plugin to get it done.
I already found a different Flickr plugin that can do this, but its not automatically equipped with the lightbox capabilities. I like this plugin much better and would rather tweak it to create a sidebar gallery or “photo of the day” feature. Any info would be appreciated, thanks!
Mikeopedia 20/Feb/10
Disregard my last comment. Figured it out. Beautiful plugin. Thanks for sharing!
Mikeopedia 20/Feb/10
This plug-in looks awesome but I am missing something regarding the implementation.
Can I use shortcode to put galleries on specific pages or do I need to place the code in a page template …
Basically, all I want to do is display thumbnails from a different photoset on different pages. If you can’t search from sets then I can use tags, but I am still not sure where the code is supposed to go.
Any help is greatly appreciated!
Pim 18/Feb/10
How do I just show ONE photo from my Flickr account?
admin 16/Feb/10
@nico,
actually I’ve screwed up, I forgot to update a file on wordpress. It’s done now and it should work fine let me know if you still having problems
admin 16/Feb/10
@ nico
this update is now using the jquery files from wordpress cos mine was breaking other scripts. the lightbox should load fine but you may have problems if you don’t have jquery. Well try this one http://www.noplacelikehere.com/wp-content/plugins/flickr-mini-gallery.zip and if it doesn’t work send me your website and I’ll have a look
Cheers
Felipe
nico 16/Feb/10
just updated to 1.1 and lightbox isn’t workin anymore for me.. any idea if this could be the update or did i screw up sthg??
huge thanks,
nico
markos 28/Jan/10
does anyone having problems pulling photos from a flickr group? user_id is working fine but not the group_id. here is the error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2)
Timestamp: Wed, 27 Jan 2010 17:26:00 UTC
Message: ‘photos.photo’ is null or not an object
Line: 19
Char: 11
Code: 0
URI: http://www.modefan.com/wp-content/plugins/flickr-mini-gallery/js/miniflickr.js?ver=0.1
Message: Object doesn’t support this property or method
Line: 1
Char: 1
Code: 0
URI: http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=36c8b00c47e8934ff302dcad7775d0a2&tag_mode=all&user_id=1074275@N23&tags=poster&min_upload_date=&max_upload_date=&min_taken_date=&max_taken_date=&sort=&bbox=&safe_search=&content_type=&group_id=1074275@N23&lat=&lon=&radius_units=&per_page=5&format=json&jsoncallback=jsonp1264611873656&_=1264611874406
Carl 26/Jan/10
Great plugin. Works so well. If anyone needs to get the unix time then head over to http://www.unixtimestamp.com/index.php and it will convert the time to unix time.
Cheers
dipfico 19/Jan/10
Just what I needed! Thnx
mike 14/Jan/10
Did anyone figure out how to change the size of the images? Great plugin.
Jimmy 7/Jan/10
I had a problem with this plugin, but it turns out that the problem itself had nothing to do with this plugin. The problem was the Tabbed widgets plugin. When I deactivated it the flickrmini started working again. So try deactivating some of your other plugins.
corporatetoursindia 2/Dec/09
Nice plugin. works perfactly.
Liam 2/Dec/09
terrific plugin. Is their a way to increase the size of the images in the slideshow?
Chris 20/Nov/09
For some reason, I can’t get this to work. I installed the plugin as per the instructions and activated it. I have tried using shortcode with varying attributes to test, and all I get is the shortcode displaying as text in the rendered page.
Ultimately I would love to use this in the page template file itself, but I can’t even get the php code to work.
This is my first experience w/ Wordpress and this plugin seems perfect for my project. Am I missing something?
Thanks in advance!
Chris
Jarl Lyng 20/Nov/09
thanx, this is awesome! Nice work!
felipe 12/Nov/09
@Marcin try this class on any css file :
.flickr-mini-gallery img {
margin:0 5px 5px 0;
}
Marcin 30/Oct/09
Hi guys,
Could anyone help me one more time on setting some padding between photos when the gallery is shown?
I can’t understand advice given in the post earlier.
Thanks in advance.
Marcin
Jakob Eriksson 23/Oct/09
Hello!
First of all – very nice plugin!
I have a few issues though. I was already using the jQuery lightbox on my site but when I activated the “flickr mini gallery” it stopped working.
The lightbox launches correctly and resizes properly but it gets stuck loading. Any idea what the problem might be?
I have already tried the solution Brian wrote (Brian on August 31st, 2009)
Thank you guys in advance. I would really appriciate the help!
Jakob
Daddy54 23/Oct/09
No not google, its the people. ,
Filip 6/Oct/09
Hi. Great plugin – but the sorting is waaay out of order for me. It just displays all pics randomly. Any tips?
Jas 29/Sep/09
To add padding between the photos add the following style element.
.felickr img, .flickr-mini-gallery img {
margin:0 5px 5px 0;
}
Then insert this code to add the gallery, changing the user_id and tags.
Dan Zappone 26/Sep/09
I was just introduced to your plugin and think what it does is really pretty cool. However I’d like to point out that by deregistering jQuery you are stomping on a lot of other people’s plugins (3 of mine for example) that enqueue jQuery using that WordPress standard method. I created a couple of hot fixes for myself that fix the problemy and thought I’d share them with you so that you can use the
wp_enqueue_script('jquery');method again.If you add these lines to your miniflickr.js file
At line 2 after initial comment:
jQuery(function($){—
Add at end of file:
});And replace the jquery_lightbox_scripts() function in flickr_mini_gallery.php with this:
//add jquery and lightbox
function jquery_lightbox_scripts(){
$path = '/wp-content/plugins/flickr-mini-gallery/js';
wp_enqueue_script('jquery');
$opts = mfg_get_options();
$format = $opts['mfg_thumbformat'];
echo '
var theblogurl ="'.get_bloginfo('url').'";
var flickr_mini_gallery_img_format ="'.$format.'";
';
echo '';
wp_enqueue_script('jquerylightbox', $path.'/jquery.lightbox-0.5.js', array('jquery'),'0.5');
wp_enqueue_script('miniflickr', $path.'/miniflickr.js', array('jquery'),'0.1');
}
Or you can download the altered files here: http://www.23systems.net/downloads/file/flickr-mini-gallery-jquery-hotfix.zip
Alyx 25/Sep/09
Is it possible to change the script so that the thumbnails link to the original photo page instead of opening the images in a Lightbox? I have had a look at the scripts but I’m not up with PHP coding, so if anybody can help out that would be most appreciate.
Craig 3/Sep/09
Thanks so much for this plugin, it is exactly what I need. I am having just one small problem. My thumbnail images are pushed up right next to each other with no space in between them. I can’t seem to find what file I need to add some kind of space or padding to the thumbnails. any assistance would be greatly appreciated
Thanks!
Brian 31/Aug/09
I figured out the Light Box problem. It is a combination of a JQuery conflict problem and the CSS file isn’t linked correctly in the flickr_mini_gallery.php file. The javascript conflict problem would explain why it worked for some and not others. Some have other plugins installed that are causing the conflict. Here is how I fixed it.
I just hard coded the style sheet in the flick_mini_gallery.php file. You will need to change the URL to your site. The code to change is located around line 45.
echo ”;
Here is where I found the fix for the miniflickr.js file. Notice the variable created using the noConflict(). This variable is then used throughout the script insted of $ to prevent confilcts with other js libraries. You can just replace the whole miniflickr.js file with this code.
http://pastie.org/pastes/559931/
It should work now. I hope this helps others.
BTW. Cool plugin. Thanks for developing it.
Brian
admin 16/Jun/09
Sorry but you can’t at the moment the photo.search on flickr API doesn’t have the capability of search photos from a set. But you can use tags and if you put the same tag for the images on a folder, you can do this as a batch process using flickr organizr, it will give what you after (I hope)
Lupiro 10/Jun/09
hello how can I do to create sets for photo albums?
[miniflickr user_id=”39267572@N03” sets=”72157619512171264”] [/miniflickr]????
markus 6/Jun/09
sorry, the code was broken – i try it again?
$flickrtags = get_the_title();
echo “”;
if the code doesn´t work again here the way you can make it easy:
use the template tag to show your pictures, the open the post, look at the source-code of the post and you will see a div-tag – copy this div-tag to your sidebar and it will show your pictures everywhere!
kind regards,
markus
Lise 26/May/09
As Markus, Nigel and Dennisnet, I also want to add the gallery in my sidebar.. Have anyone solved this?
markus 23/May/09
i solved the problem with adding it directly to the template file – my code:
name . ‘,’;
}
}
$flickrtags = get_the_title();
echo “”;
?>
Thank you very much for the great plugin!
markus 23/May/09
is it possible to add the tag directly to a template file?
Fraser 13/May/09
I wondered if there was a way to increase the number of images that the Flickr mini gallery shows. At the moment there seems to be a limit
Sippy79 26/Apr/09
Hey there, great plugin so far. Can you tell me if there is an update to use it into the single.php posting images based on the post tags?
Keep it up.
Kane 20/Apr/09
Can I use photo sets as well as tags from flickr?
Dennisnet 27/Mar/09
Wow Great plugi, thnaks I love it.
I only have a problem with the “tag_mode” option.
No matter what I do it only shows pictures the ALL option. So the 3 line below all give the same pictures return
[miniflickr user_id="32776803@N08'' tags="baukje, dennis"] [/miniflickr]
[miniflickr user_id="32776803@N08'' tags="baukje, dennis" tag_mode="all" per_page="80"] [/miniflickr]
[miniflickr user_id="32776803@N08'' tags="baukje, dennis" tag_mode="any" per_page="80"] [/miniflickr]
Am I doing somting wrong?
Also I would like to use a gallery in my sidebar, is this posible and how?
Thanks,
Dennis
Gaurav 7/Mar/09
Hello Felipe,
I have installed FMG Plugin.
I am facing a problem where on local server it shows the images form flickr but on the online server the images are not displaying.
Can you please let me know if any server setting needs to be changed?
–
Gaurav Malhotra
GUstav 5/Mar/09
How do i disable the lightbox script off, it blocks my other “lightbox-2″ function.
Nigel Minchin 19/Feb/09
Hi
I have installed and activated the plugin and then add [miniflickr tags="st, albans, verulamium"] into my sidebar.php code (inside a div) but it just prints the text on the page. Am I missing something really stupid? Does it need php tags etc?
Thanks
Nigel
admin 30/Jan/09
Hey Guys,
Sorry for the biggest delay ever answering you here. I´m still in holidays (actually a long sabatic) but I took some minutes to update the plugin fixing the problem with lightbox so please download the last version here on this page and let me know if yuo have other problems.
Thanks so much for those helping to improve and solve the problems
angeliech 22/Jan/09
Hi,
It does not work. What may be the possible cause? Thanks!
Gareth 17/Jan/09
Hi, I’m up and running on 2.7 but the lightbox won’t run – I noticed there’s a few comments trying to fix it but these solutions don’t seem to work either – any thoughts?
TW 16/Dec/08
You need to get Akismet up and running to cut back on the spam comments.
I have tried this plugin with 2.7 and it doesnt work. No obvious error messages but it just doesnt show anything. It shows the alternate text however.
bartolli 5/Nov/08
@dimas
Sorry for the delayed answer ..
This classname is used by lightbox();
http://i.drun.net/view/id/7e8aefa5
~Cheers
dimas 31/Oct/08
@bartolli
i can’t find any .format_text on miniflicker.js are you sure about this?
bartolli 31/Oct/08
Lighbox fix:
Open file flickr_mini_gallery.php
find:
add_action(‘wp_head’, ‘jquery_lightbox_scripts’,5);
after add:
function lightbox_css() {
$path = ‘/wp-content/plugins/flickr-mini-gallery/css’;
wp_enqueue_style(‘jquerylightboxcss’, $path.’/jquery.lightbox-0.5.css’, false, false, ’screen’);
wp_print_styles(array(‘jquerylightboxcss’));
}
add_action(‘wp_head’, ‘lightbox_css’);
Now initialize the right class
Open miniflickr.js
find:
.format_text
chage it with:
.post_content
this solution work fine for me
~cheers
Blake 31/Oct/08
hi, i am having trouble uploading from flickr. I am running wordpress 2.6.
please help!
blake
ilya 21/Oct/08
Ok, here is what i figured out:
- The plugin works fine out of the box, but only shows the images and click throughs to flickr.
- The lightbox does not work, because the lightbox stylesheet is not included by the plugin. In the example it seems to be manually included:
/wp-content/plugins/flickr-mini-gallery/css/jquery.lightbox-0.5.css
- The second part that seems to be missing is the registering of the images to be handled by the lightbox. In the example this is done by including the js file “wp-content/themes/neoclassical/_js/gallery.js” This file seems to register the images with the light box, and to do some other stuff.
Is there a way the author (or someone who made this work) provides some step by step help in how to recreate the working example? or maybe even update the plugin?
it looks great, but the last mile seems too steep for me.
cheers
Bernhrad 20/Oct/08
There are 2 problems with the actual files:
1. I miss the path to the css-file in the file flickr_mini_gallery.php”. If you use the plugin, you can only open the file. I have change the file at line 46. I put in there “echo ”;”.
2. If you us your plugin with some themes (like “Gunmetal” from http://www.sixshootermedia.com/), the next-button shows under the close button. I have change the file “jquery.lightbox-0.5.css” at line 60 from “width: 49%;” to “width: 48%”. So it works perfect.
P.S. A perfect an siply working plugin.
Greatings from Switzerland
Bernhard
John 24/Sep/08
Looks like this is a great plugin, but I am having the same problem with the lightbox as the Colin and Dave, but without a solution. Looks great in squares or thumbs, just no enlarged image – just follows the link. Any suggestions?
Colin 24/Sep/08
Fixed it! The address to the CSS seems to be wrong!
Very nice script!
Thnx!
Colin 24/Sep/08
I have the same problem as Dave Reid.
Any ideas?
greets, Colin
Nilay 23/Sep/08
Hello. Is there a way to paginate the results ? I guess I am missing something as there is a per_page option. Thanks for this plugin
Dave Reid 20/Sep/08
I was looking into using your gallery and when I install it the lightbox stuff doesn’t work. It’s not my browser because I can see you demo fine but my installs… Any ideas?
admin 2/Sep/08
@Roamer
Sorry mate, my fault. I started writing the plugin for 2.0.2 but then I changed. No older versions sorry for the inconvenience.
By the way thanks to let me know I changed the information on wordpress repository as well.
Roamer 2/Sep/08
On http://wordpress.org/extend/plugins/flickr-mini-gallery/ it states that this plugin works for WP version 2.0.2 ; however, I’m running version 2.3.3 and it won’t let me load the plugin as it calls for the shortcode() function. By any chance do you have an older version that works under WordPress version 2.3.3?