You aren't signed in     Sign In    Help

Flickr Hacks / Discuss

Current Discussion

Question about camera finder
Latest: 4 hours ago
GM: Sort Tags and Groups/Sets in photo page
Latest: 18 hours ago
Contest vote solution
Latest: 21 hours ago
GM Script: Flickr Contacts Organiser - Tag your contacts [ script updated 6th March 2009]
Latest: 35 hours ago
I need help [changing status of many contacts] :)
Latest: 2 days ago
GM Script: Flickr EXIF Decorator
Latest: 2 days ago
viewonblack.com bookmarklet
Latest: 2 days ago
GM Script: Flickr group tracker
Latest: 3 days ago
Using a group "comment code" and greasemonkey
Latest: 3 days ago
GM Script: Flickr Soundtracks....
Latest: 4 days ago
Framing other people's photos
Latest: 5 days ago
GM Script: Multi Group Sender - Send your image to multiple groups at once
Latest: 6 days ago
More...

Publish your most interesting/viewed/commented/favourited list of Flickr photos to your website

view profile

steeev is a group administrator steeev  Pro User  says:

Ive written a couple of scripts that allow you to publish your list of most viewed/interesting/favourited and commented photos on your own website. It also allows you to publish your list of Favourite photos from other Flickr users.

I dont know if anyone else will be interested in this, but i thought it was fun. Its not an off the peg solution, and not for complete beginners, as the files will need a bit of editing to match your particular server setup etc to get them to work for you, though most of the work has been done for you already, you mainly just need to edit a few directory names etc.

Requirements:- What you need for these scripts to work.
* PHP enabled web server (with file and directory writing permissions).
* FireFox - Web Browser.
* GreaseMonkey - FireFox Extension.

Setup:
1) Copy and paste this file
steeev.f2o.org/flickr/saveyourfaves.txt to your php enabled web server and rename it saveyourfaves.php

2) you will need to edit various variables to match your server setup.

3) install this greasemonkey script:
steeev.f2o.org/flickr/flickr.publish.popular.user.js
you will also need to edit this script:
the includes at the top will need to be changed to match your flickr directories.
you also need to edit the following 2 variables:
serverPHPfileURL and password
serverPHPfileURL is the URL of the PHP file you saved to your server. You need to change the password variable to one that is unique and hard to guess, and you also need to put the same password into the PHP file.

the way i setup my files and directories was to have the
saveyourfaves.php file in a directory called flickr eg steeev.f2o.org/flickr/saveyourfaves.php
then i created the following directories inside the flickr dir /photos/steeev/

Usage:

1) The greasemonkey script adds a link called "Publish" to the top of your most comments/views/favourites/interesting + your favourites from other flickr users pages.

2) Clicking the publish link will cause the script to post each of the pages under the category you are currently viewing to the php file on your server, and the php file will save each page to the appropriate directory on your server, creating the directories as it goes.

3) you need to click the publish link once for each category, eg
most views, most comments, most interesting, most favourites.
and also once for your favourites of other users page. there is no visible feedback that anything has happened after you click the publish link, so in order to see if its worked, you should check your server to see if the files have been created correctly. if they havent, you should check your servers error log files, and also the javascript console, to see if there are any javascript errors.

heres what the end results look like:
steeev.f2o.org/flickr/photos/steeev/popular-faves/
steeev.f2o.org/flickr/photos/steeev/popular-views/
steeev.f2o.org/flickr/photos/steeev/popular-interesting/
steeev.f2o.org/flickr/photos/steeev/popular-comments/
steeev.f2o.org/flickr/photos/steeev/favorites/

of course you can change the headings + add footers and change the styles etc to whatever you like in the code.

hope someone finds this useful.

N.B this greasemonkey script is now GM 0.6.4 + FF 1.5 compatible
Originally posted at 8:12AM, 10 August 2005 PST ( permalink )
steeev edited this topic 43 months ago.

view photostream

Dan Bruno  Pro User  says:

That's really awesome. I'll have to try it out later. Thanks, steeev.
Posted 52 months ago. ( permalink )

view photostream

steeev is a group administrator steeev  Pro User  says:

ive updated this greasemonkey script to be GM 0.6.4 + FF 1.5 compatible.
Posted 43 months ago. ( permalink )

view photostream

यश  Pro User  says:

the installation of this seems too complicated for me..
Posted 39 months ago. ( permalink )

view photostream

Jasper Kennis says:

Hi. Could you please update this page? I'd really like to try this but all liks seem broken.
Posted 17 months ago. ( permalink )

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).

RSS 2.0 feedSubscribe to a feed of stuff on this page...</!!> Feed – Subscribe to Flickr Hacks discussion threads
Add to My Yahoo!