You aren't signed in     Sign In    Help

Flickr Hacks / Discuss

Current Discussion

Script needed
Latest: 11 hours ago
GM Script: Group Pool Admin - Warn + Delete
Latest: 13 hours ago
GM Script: AllSizes+ v1.44
Latest: 16 hours ago
GM Script: Flickr Mail Manager
Latest: 28 hours ago
Filtering photostream by authorized users
Latest: 2 days ago
GM Script: Groups Organiser - Tag your groups, sort your group list and quit groups more easily
Latest: 2 days ago
GM Script: Multi Group Sender - Send your image to multiple groups at once
Latest: 2 days ago
GM Script: Scout Link
Latest: 3 days ago
GM Script: Insert Group Signature Photo Comment Tool
Latest: 3 days ago
GM Script: Group Promotion Tool
Latest: 3 days ago
HELP !!!!
Latest: 3 days ago
GM Script: More User Links
Latest: 3 days ago
More...
spacer image

GM Script: Group Promotion Tool

view profile

steeev is a group administrator steeev  Pro User  says:

i found myself repeatedly writing out the same message, when i saw a photo on flickr that would fit in well in one of the groups that i admin

eg
"cool pic! please consider posting it in 'such and such a group' thanks."

So i decided to write a GreaseMonkey script to automate the process.

The script adds a Select box with a selection of pre-defined comments following the format of the above example, each option in the select box features a different group invitation message. You could if you wanted add all the groups that you admin, and or groups that you actively participate in, to the list of groups. This can be done by editing the source code of the script.

You can edit the script after youve installed it, by going to the tools/manage user scripts, menu, then selecting the "Flickr Group Promotion Tool" then click the edit button.

After you have made your changes, just save the file, then reload the webpage, and the changes you have made to the script should be immediately visible.

You can get the script here: flickr.group.promoter.user.js or here: flickr.group.promoter.user.js

N.B now updated to work with ff 1.5 + gm 0.6.4 + Flickr Gamma

All my Flickr GM scripts are available here: steeev.freehostia.com/flickr or from my backup site here: steeev.cfdeveloper.co.uk/flickr/
Originally posted at 12:43AM, 9 August 2005 PDT ( permalink )
steeev edited this topic 15 months ago.

view photostream

grebo guru  Pro User  says:

Fantastic! I've been doing this (by hand) with Symmetry in Motion and WOW! group(s).

Cheers!
Posted 37 months ago. ( permalink )

view photostream

Skinnyde  Pro User  says:

Another great GM script Steeev, I must put you on my Christmas card list
Posted 37 months ago. ( permalink )

view photostream

_guu_  Pro User  says:

Nice script.

But you also can get the complete group list of the logged user with a flickrAPI call.

You can use this chunk of script:


var gl = new Object();
gl.flickr_groups_pools_getGroups_onLoad = function (success, responseXML, responseText )
{
var result = new Object();
var xmlGroup = xml.getElementsByTagName('group');
var group = new Array();
for(x=0;x<xmlGroup.length;x++)
{
group[group.length]= { nsid: xmlGroup.item(x).getAttribute('id'),
id: xmlGroup.item(x).getAttribute('id'),
name: xmlGroup.item(x).getAttribute('name'),
admin: xmlGroup.item(x).getAttribute('admin'),
privacy: xmlGroup.item(x).getAttribute('privacy'),
photos: xmlGroup.item(x).getAttribute('photos')
};
}
this.result= group;


// Now HERE you can use this.result array to build your select combo with all the user groups

//GM_log( this.result[0].id + ' ' + this.result[0].name );
};

flickrAPI.callMethod('flickr.groups.pools.getGroups', {}, gl );
Posted 37 months ago. ( permalink )

view photostream

steeev is a group administrator steeev  Pro User  says:

grebo_guru + skinnyde + gustavo glad you like the script.

gustavo, yes, i was aware that its possible :) but if you subscribe to a lot of groups, it might add an extra bit of a delay to the page loading, on top of all the other lovely GM scripts and the 100k or so of Flickr JS+HTML :)

feel free to customise the script anyway you want though :) and thanks for the code :)

another idea i had for a future version, was some more options, to aid in general photo commenting.

1) an option that adds a random comment from the surrealist compliment generator.
2) an option that adds a random fortune cookie
3) an option that adds a random famous quotation
4) an option that adds a random joke

stuff like that :)
Posted 37 months ago. ( permalink )

view photostream

_guu_  Pro User  says:

thats true. maybe the combo can be populated at request. like the "send to group" button. So, you can add comments in a normal way, and ask for group list whenever you want.

I'll check about it.
Posted 37 months ago. ( permalink )

view photostream

Claudecf  Pro User  says:

steeev, thank you! Your script has changed my life!!! ;)
Posted 37 months ago. ( permalink )

view photostream

Sidereal  Pro User  says:

I love you steeev, and I freakin' hate this script. :) I hate waking up in the morning to a bunch of faux-comments from people I don't know who don't really care about my pictures, who just want to flog their groups and are too lazy to be sincere and/or articulate about it. People who use this script a lot get blocked. Meh.

Did I mention I love you? :)

Peace,

jack
grumpy old man
Posted 36 months ago. ( permalink )

view photostream

steeev is a group administrator steeev  Pro User  says:

hehe, sorry dude. i didnt know that many people were using it.
Originally posted 36 months ago. ( permalink )
steeev edited this topic 36 months ago.

view photostream

mr.david.storey  Pro User  says:

Theyre only spamming Sidereal because they know he'll take it so well! ;)
Posted 36 months ago. ( permalink )

view photostream

Sidereal  Pro User  says:

You kids get off my lawn! *waving aluminum cane*

The script is a(nother) great one, steeev, it's some people that are the problem. Keep on codin'...
Posted 36 months ago. ( permalink )

view photostream

< insert fancy new name here >  Pro User  says:

i noticed, that the bookmarklets for delete me! don't work properly, if your script is installed and enabled.

no action needed on you site i think, just FYI.

and, of course, great script. thank you.
Originally posted 36 months ago. ( permalink )
< insert fancy new name here > edited this topic 36 months ago.

view photostream

jilbean3  Pro User  says:

I am unsure how to change the script for my groups...please help by messaging me...
Posted 29 months ago. ( permalink )

view photostream

steeev is a group administrator steeev  Pro User  says:

the instructions for editing the script are within the script itself.

you just need to open the script in a text editor (eg notepad if you are using windows) and replace the text in between each "commentarr.push(" and ");" to match the names and urls of the groups you want to promote and your own choice of comments. once you have edited it to your liking save the file then open the file in firefox and select tools/install user script. job done.
Originally posted 29 months ago. ( permalink )
steeev edited this topic 29 months ago.

view photostream

mr.david.storey  Pro User  says:

I dont think it works for Firefox 1.5 though.
Posted 29 months ago. ( permalink )

view photostream

jilbean3  Pro User  says:

Now I am having trouble saving file - it saves as a txt document and opens as a text document. Please help!
Posted 29 months ago. ( permalink )

view photostream

steeev is a group administrator steeev  Pro User  says:

if it has saved it with a .txt extension, simply rename the file using the file manager and give it a .js extension and as fgt says, it probably wont work in FF 1.5 it does however work in FF 1.07 with GM 0.35
Originally posted 29 months ago. ( permalink )
steeev edited this topic 29 months ago.

view photostream

mr.david.storey  Pro User  says:

Thats it Im throwing a hissy fit and going back to 1.07! :)
Posted 29 months ago. ( permalink )

view photostream

Claudecf  Pro User  says:

This script is one of the reasons why I am not upgrading to Firefox 1.5!
Posted 29 months ago. ( permalink )

view photostream

steeev is a group administrator steeev  Pro User  says:

ive now updated this script to work with ff 1.5 + gm 0.6.4
Originally posted 29 months ago. ( permalink )
steeev edited this topic 29 months ago.

view photostream

Skinnyde  Pro User  says:

Nice job again Steeev, you are still on my Christmas card list ;)

Have a happy Easter.
Posted 29 months ago. ( permalink )

view photostream

mr.david.storey  Pro User  says:

My god you are a star! Cheers bud.
Posted 29 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

Quick Comment

I updated the Group Promotion tool from Steeev to:
1- enable the quick superlative comment (that was already in the code but commented)
2- add a list of quicktag for commenting when you come from a "promotion" group like 1-2-3 or play tag.

If steeev is happy with that, I'll post it.
Posted 28 months ago. ( permalink )

view photostream

steeev is a group administrator steeev  Pro User  says:

looks cool mortimerpa, go ahead.
Posted 28 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

hum, do you prefer me to send it to you so you keep it in the same place, or (as its now a bit different), I keep it separated from your version?
Posted 28 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

You can get it here:
6v8.gamboni.org/IMG/js/flickrgrouppromotiontool.user.js
Posted 28 months ago. ( permalink )

view photostream

steeev is a group administrator steeev  Pro User  says:

it just dawned on me, that this script can not only be used to encourage people to post their images to your group, you could also use it to thank people for posting their images to your group if they have already posted there.
Posted 28 months ago. ( permalink )

view photostream

mr.david.storey  Pro User  says:

I worked that out too - its dead handy for making any regular comment. :)
Posted 27 months ago. ( permalink )

view photostream

Ingrid!  Pro User  says:

I'm struggling with this. Not getting how to change the script to include my groups. Not sure how to "open the script in notepad. Thanks.
Posted 26 months ago. ( permalink )

view photostream

steeev is a group administrator steeev  Pro User  says:

@ingrid have a look here: diveintogreasemonkey.org/helloworld/editing.html

the first time u click the edit button in the tools/manage user scripts window, you may need to associate a text editor with that button.
it should popup a file dialog, asking you to select the editor program you want to use. if you are using windows 2000 you can enter the following:
c:\winnt\system32\notepad.exe
i dont know if its the same on win xp or what values to use if you are using a different operating system.

update: if you are using windows XP, you can enter the following
C:\windows\system32\notepad.exe

btw if you are not presented with the option to select an editor mentioned above, you can edit the greasemonkey settings directly, using the following method.

type
"about:config"
in the browser's address bar
then type "greasemonkey"
in the filter bar
(all without quote marks)
then you will see the first line should say greasemonkey.editor
double click on that, then enter the path name to your editor,
eg if you are using windows 2000 the path name would be
C:\WINNT\system32\notepad.exe
or if you are using windows XP the path name would be
C:\windows\system32\notepad.exe
i dont know what it is for other operating systems.
Originally posted 26 months ago. ( permalink )
steeev edited this topic 21 months ago.

view photostream

Ingrid!  Pro User  says:

I did it! I did it! It took a while of noodling (my notepad was in a different place), but I finally got it. Thanks, Steeev!
Posted 26 months ago. ( permalink )

view photostream

birdyboo  Pro User  says:

Thank you so much for this wonderful script! I have modified it for invitations to some of the Invite Only groups I belong to but some of the groups are now using a graphic in the invitation. I have not been able to make these work.

Is it possible to modify the script so the graphics can be inserted? What would the template be to do that?

Also the comment feature does not seem to work. Is there something I need to change to enable it. I am using ver 0.4 (04-May-06)

Thanks for your help!
Posted 25 months ago. ( permalink )

view photostream

striatic  Pro User  says:

Is it possible to modify the script so the graphics can be inserted? What would the template be to do that?

i'd be careful about that .. some people don't like graphics posted in their comments unless they pertain directly to the photo at hand.
Posted 25 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

@birdyboo, you might want to have a look to the two scripts:
- GM Script: Invite photos to the group
- GM Script: Quick Comments

They might provide solutions to what you are looking for.
Posted 25 months ago. ( permalink )

view photostream

Chele In LA says:

this script will not pull up the one group that I am administrator of..
Does this have something to do with the fact that I am a co-amin
Posted 24 months ago. ( permalink )

view photostream

tuxcomputers says:

I like adding a comment before I add the invitation, but when I hit the button it wipes what I have already written and only has the invite.

Is there a way to have the invite just added to the bottom?
Posted 21 months ago. ( permalink )

view photostream

Linda B (Wine Diva)  Pro User  says:

I really like this script. I use it frequently. My question is: can you only link to Flickr groups, or can you link to an external website? For instance, I'd like to have a script to let people know I've blogged their photo.

Thanks!
Originally posted 18 months ago. ( permalink )
Linda B (Wine Diva) edited this topic 18 months ago.

view photostream

steeev is a group administrator steeev  Pro User  says:

cheleit doesnt automatically pull up any groups, you need to manually edit the script.

tux you could always write your comment after you have added the invitation.

linda yes i think you should be able to put any links to any websites in the script.
Originally posted 16 months ago. ( permalink )
steeev edited this topic 16 months ago.

view photostream

photo67401  Pro User  says:

Hey, steeev, I just recently found this group and love it! But I'm not a programmer or script writer. Zip experience. But I think this script would be fantastic. I've opened it in Notepad and did some editing and saved it. But this has me stumped: "then open the file in firefox and select tools/install user script. job done. " Could you please explain this further for a novice? Thanks so much!
Posted 16 months ago. ( permalink )

view photostream

waɪ.tiː  Pro User  says:

You've done it again! Thanks so much.

@photo - This might help:-

diveintogreasemonkey.org/install/userscript.html
Originally posted 16 months ago. ( permalink )
waɪ.tiː edited this topic 16 months ago.

view photostream

Anna_Greece  Pro User  says:

I thought it was a wonderful script too! I installed it last night and was exstatic about all the time I had saved inviting photos from my contacts to groups.
The I woke up this morning with a full flick mail box from my contacts saying that their photos were rejected from certain groups & deleted from the pool! So I am uninstalling the script.
Here's a copy of the message a group admin for Flickr Diamond left on one of my contacts photos after deleting it from the pool:

Greetings, I am one of the Moderators in the Flicker Diamond Group. Please note that in our group, all photos must receive an invite before being posted to the pool. Please would you mind read our Group Rules.
Our Invite Pool Sweepr software was not able to detect an invite comment on this image and automatically has removed the photo from our pool and this may not have been reviewed by a human. This not means that your photo is not worthy of our group. If you think your picture should get an invite to our group please you may post your picture on a thread located here.

Sometimes images are invited with incorrectly copied code, or due to some server glitch the Sweepr program doesn't see the invite. If you feel this image has been removed in error, we certainly apologize and please contact one of the group Admins or Moderators listed here.
Feel free to delete this comment once you have read it.
Thank you


Maybe you should re-write the script making the invitations look like they do on the group's pages, with the icons and all so they don't get rejected.
Originally posted 13 months ago. ( permalink )
Anna_Greece edited this topic 13 months ago.

view photostream

GustavoG is a group administrator GustavoG  Pro User  says:

This not means that your photo is not worthy of our group.

*double cringe*
Posted 13 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

Anna_Greece, may be you should try the Quick Comment Script that gives you more control over the content of the automatic messages.
Posted 13 months ago. ( permalink )

view photostream

Anna_Greece  Pro User  says:

Mortimer,
Thanks !!!!
I copied & pasted the invitation codes & comment codes for the groups I wanted to the quick comment script.
Problem solved. Works just fine & saves me a heck of a lot of time!
Posted 13 months ago. ( permalink )

view photostream

UBopp says:

I know that I may offend with this comment, but to me, group promotion comments are spam. That they are created in a second without the consent of the user makes them worse. Please consider that some of your fellow Flickrers may consider your comments annoying.
Posted 12 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!