Giving other users access via Browse to images
andrewf - November 12, 2008 - 16:34
| Project: | Image Picker |
| Version: | 5.x-1.4 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
This may exist already although I have spent a good time going through settings without seeing it if it does.
Is it possible to allow all users access via Browse to any image uploaded via image picker by any user? As of now only the user who uploaded an image can Browse it but for the sites I run allowing all users to re-use such images would make a lot more sense.

#1
No this feature does not exist at the moment. However it should be possible to add code to do this, using the groups feature. A user could create one or more groups which could be set as publicly available with a checkbox added to the create groups form and add images they wish to share to that group. A new tab called say 'Browse Public' could be added to the Imagepicker Iframe where people could browse the image thumbnails made available for public consumption. The feature could be enabled or disabled globally by the administrator in the site configuration page for Imagepicker.
It's quite a bit of coding though and I do this in my spare time but I will put it on my TODO list ;-)
If anyone wants to contribute I would be happy to evaluate their efforts.
#2
If this functionality is not available, I'd prefer to make all images universally accessible. A checkbox option would be great.
EDIT: Second thought..
I think I'd like that in the Browse frame itself. My use case has a moderate degree of image reuse across many users, but more commonly people will reuse their own images. The ability to start with your own stuff, then pull the big lever to get everything available, sorted by upload date or username (etc), would be very useful. A secondary dropdown filter would also be useful if you add an Organic Groups layer, which I heartily second.
#3
yeah great module, exactly what we were looking for... regarding being able to basically share images or groups between more then just 1 user, what if it were based on a per-role basis... such as available groups to add/browse from via the role specification. this would allow the flexibility to allow it to certain groups of users, as well as all users.
#4
I'm working on it ;-)
#5
I also would love this feature, specifically I have a small number of users editing content and they need to see each others images, or all images just go into a universal folder, however I'm on Drupal 5, would you be doing it for v5.x also??
#6
Public groups is available in D6, imagepicker-6.x-2.x-dev
I have attached a version for D5, this needs testing and may be incomplete.
HTH
#7
Many Thanks, will try this.
#8
Thank you very much for adding a browse public feature to the imagepicker module. Much appreciated.
We made some additional modifications to the imagepicker module that allows some role related specification to public groups. When you create or modify a group you can specify which role of users is able to view that public group. When all roles are unchecked, its assumed the public group is available to all users. Along with this we added an option to the imagepicker settings to enable or disable the specification of roles during group creation. Also added a permission to access control that allows certain roles to create public groups.
Modifications at glance:
* added imagepicker setting to enable or disable specifying roles per public group (imagepicker settings)
* added specification of which role can view a specific public group (imagepicker -> create public group)
* added the permission to specify which roles can create public groups (access conrol)
#9
Thank you for this, I'll have a look ASAP
#10
The roles addition works well!
I have made a few minor changes, mostly to get it past Code Review and for the translation file
I have just released a new development version for D5
imagepicker-5.x-2.x-dev
It includes the role permissions changes from vishun, #8 in this thread
This will no doubt appear in the next 12 hours
Please test this folks.
I will be working on adding the roles code to D6
#11
Awesome! We're glad the module revision was well received - it was our first attempt at posting a module revision (among many to come). Regarding the passing code reviews and the translation file, guessing that that might be related to Locale and other languages? We will likely be comparing our version vs the released version to see what we're missing, but if you had something we should look at regarding future module releases and contributions, it would be much appreciated.
Thanks again for developing or maintaining this module to begin with. We look forward to giving a bit back to the community that is so friendly, helpful, and beneficial to any web project.
#12
Well, your code was easy to find, read and well integrated already ;-)
I have made a few minor changes and ported roles to D6 imagepicker as well, just posted the latest changes to CVS so they will turn up tomorrow I expect as imagepicker-5.x-2.x-dev and .imagepicker-6.x-2.x-dev
I don't know much about the language file, just how to generate it and place it in the right directory.
My understanding that imagepicker-module.pot can be used to provide the keys to a translation. The locale module likely has something to do with it and I do recall that there is software that can be used to format the translation files.
Code Review is a module you can install and it will help clean up the code and standardise things.
One area that imagepicker is weak is the insertion javascript and wysiwyg editors. Another related area is the iframe used inside the node form, I would like to get rid of it or use js to hide it and use a floatbox to do the uploading.
Or see this:
http://code.google.com/p/sfbrowser/
#13
Thank you very much for the kind words. We do the best we can to keep it clean and delicious. We will definitely have to look more into translation and module preparation for release. Will be getting the Code Review module (didnt know there was one!) and checking out some of our other custom modules that we're considering for release.
Regarding javascript and iframe inside of a form! its funny you mentioned that because before we even posted this issue we were contemplating going ahead and doing a major revision that we were planning to nix the iframe in lieu of jquery i believe is what we were looking into. If you might be interested in working on this together or something, we would likely be inclined as a current client of ours needs a beefed out version of imagepicker. we were also considering integrating a search feature of sorts, to help make it easier on the user to locate the image they're looking for when theres potentially hundreds or thousands of pictures to choose from.
If any of this sounds good, please feel free to contact us via the drupal contact page so that we can get the ball rolling. otherwise we will likely contact you at some point if we dont hear from you, so that we can continue to move forward with this module.
Thanks again,
~ VISHUN
#14
Will do, thanks ;-)
#15