Flickr Hacks / Discuss

Current Discussion

Flickr Award Counter Problem
Latest: 24 minutes ago
Looking for a script that reveals my untagged groups
Latest: 4 hours ago
GM Script: View date of addition in a group pool
Latest: 28 hours ago
A script to remove Aviary
Latest: 31 hours ago
justified groups..... eeeeek
Latest: 31 hours ago
Flickr easy post help---
Latest: 2 days ago
flexplore
Latest: 2 days ago
What are the best Greasemonkey scripts?
Latest: 2 days ago
Easier 'soft' blocking - possible with a script?
Latest: 3 days ago
GM Script: photo rank
Latest: 3 days ago
NEW BIGGER Fluid Image in Photo Page... How to control it?
Latest: 5 days ago
Download all pics IN A SET at once.
Latest: 5 days ago
More...

Search this group's discussions

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

view profile

steeev is a group administrator steeev 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 PDT (permalink)
steeev edited this topic 74 months ago.

view photostream

Dan Bruno  Pro User  says:

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

view photostream

steeev is a group administrator steeev says:

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

view photostream

यश says:

the installation of this seems too complicated for me..
Posted 70 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 48 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