CodeCanyon

Flickr Search

  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
Bassel88 says

Hello,

Good File!

how many pictures doest it display? i see fixed amount?

thanks

3 years ago
Author
robertbanh robertbanh replied

It currently defaults to return 100 photos. You can have a max of 500 photos returned, per call.

One line of code change is needed to control the number of photos returned. If you are interested, I can provide instructions or updated files.

3 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Singapore
  • Referred between 10 and 49 users
draftbeer80 says

very useful!

3 years ago
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
  • United States
  • Referred between 1 and 9 users
gr8 says

cool. can results be viewed from the app itself? like an iframe in the app so that user is not taken to flicker.com site? the more people stay on my site the better u know? thanks.

3 years ago
Author
robertbanh robertbanh replied

Personally, I would stay away from iframe creation. But the tooltip is a great idea… assuming the end user has Javascript, of course. The current code base works without any Javascript.

3 years ago
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
  • United States
  • Referred between 1 and 9 users
gr8 says

and maybe a tooltip on each thumbnail pulling some tags from the original photo submitter? just a thought.

3 years ago
  • Has been a member for 3-4 years
  • Bought between 50 and 99 items
  • United States
  • Referred between 1 and 9 users
gr8 says

glad u like the tooltip idea.

3 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
saiger says

Can this app only retrieve results from a single user? Like I want it to only show images posted from a specified flickr account.

3 years ago
Author
robertbanh robertbanh replied

Yes, send me an email and I can show you how to do that. It requires one line of code change to filter the search into a particular flickr username/account. robertbanh [at] gmail [dot] com

3 years ago
Purchased
Default-user saiger replied

Thanks Robert. I just purchased this and will send you an email now.

3 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 1 and 9 items
michael184 says
Purchased

I’d like to change the output size to 100×100 px is this possible?

3 years ago
Author
robertbanh robertbanh replied

If you open up config.php, you’ll see the $default_size = ’s’... which is 75×75… you can change that to 100px by doing: $default_size = ‘t’;

Then in your HTML , use CSS to wrap it into 100×100…

gallery li {width:100px; height:100px; overflow:hidden;}

3 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
  • Uruguay
sanata says

you can to paginate the results as in the other script: http://scriptillusion.com/scripts/flickr_v2/ ?

3 years ago
Author
robertbanh robertbanh replied

Can you rephrase the question? Are you wanting pagination function into the script?

3 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
  • Uruguay
sanata says

Yes Robert.

Sorry for my english :(

3 years ago
Author
robertbanh robertbanh replied

Yes, you can pass the page attribute into the url string and it will return the results of page 1, 2, 3, etc.

So in flickr_search.php, line 19, you can add the page attrib like this:

$url = “http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=$api_key&tags=$q&page=1”;

and for something like page 5: $url = “http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=$api_key&tags=$q&page=5”;

Feel free to contact me through email if this doesn’t make sense… it’s my fullname [at] gmail [dot] com

3 years ago
  • Has been a member for 3-4 years
  • Bought between 100 and 499 items
webosb says
Purchased

how can i limit results to …say about 10 images?

3 years ago
Author
robertbanh robertbanh replied

You can use the per_page option.

Open up flickr_search.php, line 19, add the per_page option like this:

$url = “http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=$api_key&tags=$q&per_page=10”;

That will return only 10 images at a time.

3 years ago
Purchased
webosb webosb replied

Awesome thanks. Anyway you can release a new version of this with caching?

3 years ago
Purchased
webosb webosb replied

Thanks so much for adding the caching feature so quickly. Good to know that you reply very quickly to your buyers and actually do the updates. I look forward to buying more of your stuff!

3 years ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
landonmiller says
Purchased

Nice, but i’m getting this error…

Warning: filemtime() [function.filemtime]: stat failed for r /mnt/98230/domains/domain.com/html/caches/flickr_search+term in /mnt/98230/domains/domain.com/html/flickr_search.php on line 23

2 years ago
Author
robertbanh robertbanh replied

Looks like replacing line 23 with these 2 will fix it:

$filemtime = @filemtime($cache); if (($filemtime === false) || ($filemtime < (time() – $cache_timer)))

2 years ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
mightyind says
Purchased

I am getting the same error as landomiller and added

$filemtime = @filemtime($cache); if ($filetime < (time() – $cache_timer))

and it appears to work fine with php 5

2 years ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
lookpo says
Purchased

Hi Robert,

I have a following error:

Warning: filemtime() [function.filemtime]: stat failed for …..caches/flickr_objectified in …...flickr_search.php on line 21

Fatal error: Call to undefined function curl_init() in ….. flickr_search.php on line 32

Is there a solution for that ? Thank you.

1 year ago
Author
robertbanh robertbanh replied

I believe your server doesn’t have CURL . If you do echo phpinfo(); ... is CURL listed?

1 year ago
  • Has been a member for 1-2 years
  • Sold between 1 and 100 dollars
  • Bought between 50 and 99 items
  • Canada
brucelemieux says
Purchased

Your script is good, but when someone make a search this not specific for multi word.

Example : If you search “Big Cat” your script will show all images with big OR cat. I want know if it’s possible to make big AND cat for show pictures with this 2 tags

Thank You

1 year ago
  • Has been a member for 1-2 years
  • Sold between 1 and 100 dollars
  • Bought between 50 and 99 items
  • Canada
brucelemieux says
Purchased

Sorry, i’m ok I found by myself on the flickr api website… For people who are interested.

1. Open the file “flickr_search.php” 2. Edit the $URL line 3. Add the variable tag_mode ...&tag_mode=all

http://api.flickr.com/services/rest/?method=flickr.photos.search&tag_mode=all&api_key=$api_key&tags=$q_img&page=$page

And you will have pictures with multi tags

1 year ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
andrereitz says

Hi Robert, Is it possible to search a specific user account with this code? Can I limit the search for ONLY tags? exclude title, description and etc? And the most important, how the photos will be in the results page, can I organize them by post date?

Sorry for all this questions and my english, but I need them to be a couple of photos by line! And must be specific photos side by side! (they gonna have the same tags, title and description, so I guess this won’t be a problem)

6 months ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
dvdesign says

Hi, all your demo’s are down… let me know when fixed… Thx

3 months ago

by
by
by
by
by