Flickr Hacks / Discuss

Current Discussion

FlickrGroupPoolTagChecker
Latest: 35 minutes ago
What are the best Greasemonkey scripts?
Latest: 2 hours ago
# of favs in the photostream
Latest: 2 hours ago
Request: A fast way to know if I've already commented a particular picture (just like the favorite star but for comments)
Latest: 8 hours ago
Flickr Award Counter Problem
Latest: 13 hours ago
GM Script: Flickr Easy Photo Post - Yet Another Way To Post Photo In Comments. (the easiest probably)
Latest: 21 hours ago
Award Counter for Google Chrome
Latest: 2 days ago
GM Script: View date of addition in a group pool
Latest: 2 days ago
justified groups..... eeeeek
Latest: 3 days ago
Looking for a script that reveals my untagged groups
Latest: 3 days ago
A script to remove Aviary
Latest: 4 days ago
Flickr easy post help---
Latest: 5 days ago
More...

Search this group's discussions

GM Script: Flickramio

view profile

Dennis Kruyt  Pro User  says:

Just writed a new GM script called Flickramio. This script put 2 google earth map's next to the photo if the image is geotagged, just like Panoramio.

Here a screenshot, they say much more:



flickramio-3 (by Dennis Kruyt)

flickramio-1 (by Dennis Kruyt)

Go here to the GM page on userscripts, or here to my panoramio homepage.

App garden: www.flickr.com/services/apps/38864/
Originally posted at 2:30PM, 22 May 2008 PDT (permalink)
Dennis Kruyt edited this topic 24 months ago.

view photostream

mortimer?  Pro User  says:

This is EXCELLENT Dennis!!! I love it.

just a few comments about the source:
1- check out this thread: Flickr: Discussing Best Practices for Writing Flickr Greasemonkey Scripts in Flickr Hacks about the inclusion patterns. Your two script wont work for user accessing flickr form flickr.com (happens often for some reason)
2- you might want to encapsulate your code in a function:


(function() {

//your code here

})();

so that the function names don't clash with other scripts.
3- looks like the script still tries to insert the iframe, even if the photo is not geotagged, raising an error that document.body.insertAfter doesn't exists (?!?!)

Very cool think anyway, great way of using all that dead flickr space ;)
Posted 49 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

Thanks, I am new to greasemonkey and javascript. I take your comments noted...

Also the iframe I use now I want tochange it later. but I have problems with google map to include it. So I put it in a iframe. Also I know a little more PHP then JS, so this way it was a little bit faster for me to make. So most of the code is in the iframe, and not in the GM script.
Originally posted 49 months ago. (permalink)
Dennis Kruyt edited this topic 49 months ago.

view photostream

Dennis Kruyt  Pro User  says:

point 1 and 2 should be fixes, point 3 is not clear to me. The code should only be executed if there is a ICBM in the metadata.
Posted 49 months ago. (permalink)

view photostream

steeev is a group administrator steeev says:

looks cool! :)
Posted 49 months ago. (permalink)

view photostream

eraldo_ says:

Does not work for me.. It show just a US map for any photo page i'm looking. Anyway it displays right coordinates at the bottom of the map (in grey color).
Originally posted 49 months ago. (permalink)
eraldo_ edited this topic 49 months ago.

view photostream

Dennis Kruyt  Pro User  says:

mm, that's strange

Can you give me a picture where it is wrong?
Posted 49 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

I just added the new Google earth option to the frame, try it out...

Here is more info about the new Google earth future in a browser: code.google.com/apis/earth/
Posted 49 months ago. (permalink)

view photostream

john weiss  Pro User  says:

First of all i just love this GM script, since I like maps almost as much as photos. It works with no problems on my computer, which runs Vista Ultimate and Firefox 2.0.

I do have one suggestion that would appeal to me having to do with the map's orientation. Of course it makes sense to have north on the top as the default but I wonder if you could do what Google Earth does and provide a control to shift the orientation. If I was facing in a direction other than north when I took the photo, I'd like to turn the map accordingly as it would be helpful in comparing the photo and the map image. I don't know if anyone else would find this desirable or if the control would take up more room than is available but I'll offer it as a thought.
Posted 49 months ago. (permalink)

view photostream

eraldo_ says:

Dennis, here's a screenshot for the problem I have:
flickramio_problem

Thanks for your interest!
Posted 49 months ago. (permalink)

view photostream

eraldo_ says:

Hey Dennis I found the problem and fixed it.
Problem was the , (comma) in the coords values.
This address (with commas) doesn't work:
kruyt.org/include/php/flickrmap.php5?Latitude=43,318816&a...
This (with dot) works:
kruyt.org/include/php/flickrmap.php5?Latitude=43.318816&a...

So I fix it by adding these lines:
lat = lat.replace(",",".");
lon = lon.replace(",",".");
after these:
var lat = coords[0];
var lon = coords[1];

Hope it helps!
Posted 49 months ago. (permalink)

view photostream

john weiss  Pro User  says:

When I click on the Earth Option, I get a blank page with only the pin displayed. If I try to go back to hybrid, I can't do it. I can go to a different Flickr page with no problem. Firebug displays the following error:

google.earth has no properties
Qd(Object W=Object f=div#map Oa=[4] tc=(350, 350) kp=div h=div)main.js (line 139)
RB(Object W=Object f=div#map Oa=[4] tc=(350, 350) kp=div h=div, undefined)main.js (line 139)
Od(RB(a, b), [Object W=Object f=div#map Oa=[4] tc=(350, 350) kp=div h=div])main.js (line 127)
Ss(RB(a, b))main.js (line 159)
Ld()main.js (line 123)
provide("tbr", undefined, undefined)main.js (line 135)
G("tbr", undefined, undefined)main.js (line 141)
Qd("var PA="ALTITUDE_RELATIVE_TO_GROUND",QA="appendChild",
RA="createHtmlDivBalloon",SA="createIcon",TA="...")main.js (line 139)
[Break on this error] function Qd(a){eval(a)}


(Long line wrapped - admin)
Originally posted 49 months ago. (permalink)
GustavoG (a group admin) edited this topic 49 months ago.

view photostream

Dennis Kruyt  Pro User  says:

@pipozzo The problem is that flickr uses for Italian , insted of . Thanks for helping.
@John w Which version you use of firefox? and did you install the google earth plugin? Till now, google only support IE7 FF2 under Windows.
Originally posted 49 months ago. (permalink)
Dennis Kruyt edited this topic 49 months ago.

view photostream

eraldo_ says:

@Dennis: Oh ok. Anyway now... works for me!
I know google uses dot in the italian version. Maybe in the next script version you can add multilanguage support directly.
Thank you for the script!
Posted 49 months ago. (permalink)

view photostream

john weiss  Pro User  says:

Dennis,

Firefox 2.0.0.14

I did install the plugin. Same results before and after.

John
Posted 49 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

I added the multilanguage. But the google earth plugin? I have not figured it out yet.
Posted 48 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

Ok, some people have the 3d part working, other people dont get it working:



Can you guys post your operation system and browser version you are using?

But I think it's a google earth plugin, that is buggy. The code it cant be wrong.
Posted 48 months ago. (permalink)

view photostream

eraldo_ says:

I noticed you added my fix to the script.
Now it works fine!
Thank you.

PS. XPsp2, FF3
Posted 48 months ago. (permalink)

view photostream

john weiss  Pro User  says:

Denis,

Haven't tried Earth for 3 weeks but did today and it is working. It even has the orientation control that I was looking for. I am running Vista Ultimate SP1 along with Firefox 2.0.0.14. Absolutely love this script.

John
Posted 48 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

Yes, it's working for me to. It was a bug in the api from google, they fixed it. I post some nice screens.
Posted 48 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

Here some 3d screenshot's, if you have some nice ones, please post them, seems now 3d earth is working for everyone. :)

flickramio-3 (by Dennis Kruyt)

flickramio-1 (by Dennis Kruyt)
Originally posted 48 months ago. (permalink)
Dennis Kruyt edited this topic 48 months ago.

view photostream

russellvt  Pro User  says:

Very cool! Great job! I'd love to install and use it, once it doesn't have any third-party website references embedded.
Posted 48 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

I want to remove the 3rd party website (which is my own) in the future, and to make it full js. But to be honest, my php skills are a bit stronger, that's why i use a embedded iframe.
Posted 48 months ago. (permalink)

view photostream

Sidereal says:

It's a good idea, but I'm not comfortable with you knowing every single Flickr page I visit :)
Posted 48 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

A little update, it seems that Flickramio is not working nicely together with the FireFox MiniMap Addon. if you have problems with Flickramio and have the MiniMap Addon installed, try disableing it, and see if it works, I try to make a fix for it later.
Posted 43 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

For who is using this greasemonkey script, can you upload / show some screenshots here?
Posted 43 months ago. (permalink)

view photostream

RichSPK  Pro User  says:

This works in Google Chrome/Greasemetal, but there's about a 10 second pause while my browser waits for kruyt.org to respond. It looks like others have already brought this up.

Anyway, here's a screenshot:
Screenshot of the flickramio flickr hack
Posted 41 months ago. (permalink)

view photostream

kiwirat  Pro User  says:

I loved this script! But once I found out, it went thru a 3rd party, I uninstalled very quickly. But I did love it the 3 days I used it.
Posted 41 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

I like to have some more feedback about people who are using Google Chrome/Greasemetal...
Posted 40 months ago. (permalink)

view photostream

Sir Francis Canker Photography ©  Pro User  says:

Hi, great script. But lets try to make this the other way around... How can I upload all my pictures onto Goggle Eart directly from Flickr? What I would like to do is to let everyone using GEarth my pictures when they go to any of the locations I have been to (all my pix are geotagged).

So far this has not been possible. but this is exactly what I would love. Any possibilities?

Thanx and cheers!
Posted 36 months ago. (permalink)

view photostream

Sir Francis Canker Photography ©  Pro User  says:

I guess noone could figure this out... But itd be cool..
Posted 35 months ago. (permalink)

view photostream

john weiss  Pro User  says:

Dennis,

Recently I've run into an occasional problem where no map appears when I open a photo even though it appears to be geotagged correctly - even identically to another photo with the same geotags.

Here is my latest example:
www.flickr.com/photos/jweiss3/4308754005/?editedcomment=1#

I'm using Firefox 3.5.6 and Vista Ultimate.

John
Originally posted 28 months ago. (permalink)
john weiss edited this topic 28 months ago.

view photostream

Travels of My GPs  Pro User  says:

1. I installed the script but nothing happens (most of my photos are properly geotagged).

2. Is the script still working? I thought that maybe the script was "retired" because it possibly conflicts with Google/Panoramio.

3. Is Dennis Kruyt still around?

4. If and when the script works, can anyone who doesn't have the script see the map?

5. As for Sir Francis's question (if he still comes here), did you try loc.alize.us ?
Originally posted 28 months ago. (permalink)
Travels of My GPs edited this topic 28 months ago.

view photostream

gigi4791  Pro User  says:

4. no
Posted 28 months ago. (permalink)

view photostream

Travels of My GPs  Pro User  says:

OK. Thanks, gigi4791.
Posted 28 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

I am still around :p and it's still working for me, it's now even working on Chromium and Google Chrome to.
Posted 27 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:


Now in App garden www.flickr.com/services/apps/38864/
Posted 24 months ago. (permalink)

view photostream

Dennis Kruyt  Pro User  says:

It looks like the new flickr has this for a part integrated, I think I will make a version2 to better integrated in the new layout and instead of yahoo map will make it google map
Posted 23 months ago. (permalink)

view photostream

Sir Francis Canker Photography ©  Pro User  says:

Any progress on this Dennis?
Posted 19 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