Discussions (2425)

GM Script: Invite photos to the group

view profile

.CK says:

Invite photos to the group

It's embarrassing that I reinvented the wheel. I didn't notice its existence and how similar the two scripts are untill I found the previous one. As it took me a while to program, I still decide to share with you. This GM script inserts a link to photo comment section to help you to add a comment of invitation to the group easily. Threr're two differences between the two scripts: It loads all groups you belong to via API and can filter out non-administered groups. And, you can define a template of invitation message.

Download: webdev.yuan.cc/greasemonkey/flickr.invite_photo.user.js
Originally posted at 12:44PM, 30 July 2006 PDT (permalink)
steeev (a group admin) edited this topic ages ago.

view photostream

spilltojill says:

This is a nice updated link to the last script that is similar. I likey - thanks;)
ages ago (permalink)

view photostream

steeev is a group administrator steeev says:

cool script! :)
Originally posted ages ago. (permalink)
steeev (a group admin) edited this topic ages ago.

view photostream

mortimer? says:

Very cool, it's nice that it is not shown all the time and the it gets the name of the groups from flickr.

I changed line 105:

textarea.value += text;

to:

textarea.value = textarea.value.substr(0,textarea.selectionStart)
+ text
+ textarea.value.substr(textarea.selectionStart);


so it will insert the comment where the pointer is and not at the end of the comment.
ages ago (permalink)

view photostream

.CK says:

@mortimer?

Thanks. I've changed my code to take your suggestion.
ages ago (permalink)

view photostream

harry harris says:

Thanks, great script.

One question - why does it insert the 'code' URL of the Group instead of the 'user friendly' one?

ie, if I try to invite someone to UEA Achitecture, it produces a link to:

flickr.com/groups/38157986@N00/

..wheras it would be nicer if it produced:

flickr.com/groups/uea-arch/

Is this just the way the Flickr API presents Group links?

Cheers!
ages ago (permalink)

view photostream

.CK says:

@harry harris

I'm glad you like the script.

The user friendly URL is much better than the 'code' URL. But Flickr API doesn't provide such information.
ages ago (permalink)

view photostream

harry harris says:

Figures.. thanks again!
ages ago (permalink)

view photostream

Domen Colja says:

Hi,

I've recently installed the script and I could love it, but the problem is that my own group that I administer doesn't show in the scrolldown box.

The group name is Artistic faves.

Any clues why not?
ages ago (permalink)

view photostream

morganglines says:

How do they get the button that says "OK I'll add it" -- that seems to make it easier to submit a picture.
ages ago (permalink)

view photostream

zyrcster says:

morganglines That feature is only available to group admins. Near the comment box on a photo page there will be a link called Invite This Photo... click it, and a list of groups you admin will appear. That adds the OK I'll Add It button to the comment (which you won't be able to see -- only the user will see it).
ages ago (permalink)

view photostream

amendz says:

Domen:
.CK:

I have the same issue. The scroll down menu reads "loading groups" but none of the groups i admin appear.
ages ago (permalink)

view photostream

Bhanu Devgan says:

Hi,

is it possible to have a string made out which can help in searching for a picture having comments greater than a defined number, say 100 for example.

this thought came from the many flickr tools which have been made out and are installable thru greasemonkey on fire fox.

please help out...
ages ago (permalink)

view photostream

Bhanu Devgan says:

Any suggestions ?
ages ago (permalink)

view photostream

albspotter says:

I have the same issue. The scroll down menu reads "loading groups" but none of the groups i admin appear.

I have the same problem. Any idea how to fix that?
ages ago (permalink)

view photostream

~shrewd~ says:

it seems that it is still not working - rather sad!
ages ago (permalink)

view photostream

mrpb27 says:

Have you tried using the 'Quick comment' script by Mortimer?

Easy enough to make your own invite and set it up with this script.
ages ago (permalink)

view photostream

Terry_NYorks says:

Is this still not working - given the new environment we now have to work under?

(Needed for Safari Version 5.1.9 (6534.59.8); or Firefox v22.0, under Mac OS X v 10.6.8 build 10K549)
74 months ago (permalink)

Would you like to comment?

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