Hi,
We have a simple request:
Our site lets users attach photos to their profile.
Using: content_profile, filefield, imagefield
We want to moderate or approve each image before it is displayed. The profile will always display, but the theme will filter out any photos that don't have the approval flag set.
I've had two ideas:
1) Use imagefield_extended to added an "approved" checkbox to each image.
2) Use the status field in the files table (set approved pictures to something unique like 999)
Either way, we can then have our custom theme filter the photos shown based on the settings.
What I need is a view that does two simple things:
1) Display all photos that are not approved yet.
2) Let us approve or deny each photo from #1.
This can probably be solved with Views Bulk Operations and a tiny bit of code. We already have our own custom module for some things, so adding a function, action, etc. is trivial.
I'm looking to get this done ASAP and will paypal or credit card $100 immediately to whomever can solve this.
Thanks!
Comments
Here is the solution
install flag module
http://drupal.org/project/flag
Set up a flag called "approval", flag type users.
Per default your theme should not display user images that are not flagged. The code for this might look something like that, see the flag API for details. http://drupal.org/node/305086
set up a view diplaying your users. only accessible by admin role. set a relationship to flag (important, your won't see a flag field otherwise). Display the fields that you need (i.e. image and name) Set the view bulk operation to manage flags. Set a filter to only display non approval users.
Now you see all your user images that are not aproved, you can mark them with bulk operations and approve all with one click.
Please contact me if you need more hands on help and for the bounty payment.
Correct me if I'm wrong, but
Correct me if I'm wrong, but the request says "photos" - plural. IMHO, that wipes out all the easy solutions, including using flag. I'll keep thinking though...
http://www.trailheadinteractive.com
good point, but "users attach
good point, but "users attach photos" could read like one picture per user, but it could be n pics per user as well.
noah977, please tell more details about it.
re: $100 Paypal Bounty for ONE view
Use Image module.
Set the default for image content type to unpublished. Publish or delete at admin/content/node.
Create your views to display thumbnails in a block on your profile and a page view if you wish.
Let me know if this is something like what you want.
Update:
You can create a view for unpublished images also for admins.