Help with adding an image gallery to a story node
Hello,
I am developing a review based site where users can upload images associated with a particular place while being able to vote and comment on all of the submitted images. Each place is currently constructed using a story node, however, I am having a difficult time in adding an image gallery to a story node with an upload link. I want several images displayed below the background of the story node and when one of the images is selected that image is displayed and next to or below it are thumbnails of other images. The node_images module seems to have the layout I am looking for but does not allow, at least as far as I know, registered users to upload images, and vote and comment on them. Any help with this would be much appreciated. Thank you.

_
I'm not sure I understand the problem. I've not used node images, but right on the project page it says:
Adds an Images tab to the node page, allowing users to add images to the node using the upload.module.Based on this, it seems like it should work the way you want. You'd just have to add one of the voting modules (like fivestar) to get voting functions on that content type. Comments should be enabled for the story content type by default.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
Thank you for replying. I
Thank you for replying. I thought that node_images is what I wanted too, but I can't seem to enable voting or commenting on the images. I have fivestar installed which allows registered users to vote on the story node, but I can't find an option to enable it for images.
To clarify what I am trying to do please see link below.
http://chicago-hotels.tripadvisor.com/Hotel_Review-g35805-d236299-Review...
On the right side of the page, if you click photos, there are thumbnails submitted by people that have stayed at this particular hotel. In that same box below the pictures there is an "Add Photos" link. After clicking this link, visitors are able to upload multiple images and captions. This is what I am trying to develop, but much more basic. I thought that something like this would be easy to find, but so far I haven't had any luck. Any ideas on how I might develop this?
Thank you again for your time.
_
Hmmm... i dont know of any modules that do cck field ratings. You can either make images nodes in their own right (and use fivestar for the rating and views to group them together) or use the http://drupal.org/project/comment_upload module to allow attaching images to comments and http://drupal.org/project/fivestarextra to enable voting on the comments. I'd probably do it the first way.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
I am trying to visualize how
I am trying to visualize how I would construct this using views. I have only constructed one view so far, so I am pretty new at it. Is there a way to put a view in a node, such as several pictures in a story node and when one of them is clicked a page view is opened to show the remaining pictures? If so, how do I incorporate uploading? Or maybe I could have just a universal upload page that has a drop down menu where users can select the location of the images and then upload them. Would this be easier to do? What do you think?
Thank you.
_
You can create a view that looks exactly like the site you linked above. You can even place it in a tab with the quicktabs module.
To get the image ratings though, I'm pretty sure you'll have to create image nodes as opposed to just an imagefield in a story node. I don't know of any way to rate individual fields or values in a multivalue cck field-- each image need to be it's own node. Then you use views to display the proper list of images in a block view on the correct pages.
You'll probably also want to look at the imagecache module to get properly sized images for this view. Views is completely themable, so you can pretty much get the images to link wherever you want if the default options don't provide what you're looking for.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
I really like your ideas and
I really like your ideas and after thinking through the process that is involved I have some questions. I found out that the node images module does not save images as nodes, but the image module does. So I think I will use that.
Is there a way for users at the front end to upload images as nodes and have drupal save them into a gallery? If that is possible, then I could make a gallery for each location and use views to link the locations to the galleries. However, would this mean that I would need a view for each location since you can only specify one path in views?
I really appreciate the help. Thank you.
_
Yep-- the http://drupal.org/project/image module creates nodes from uploaded images and is a very popular module. You can also do it by creating a content type called "image" and adding a cck imagefield. I usually use the latter, so I can have complete control but the image module provides some preconfigured shortcuts that many find valuable.
Yes... the image module includes gallery functionality. With the imagefield method, you can easily create gallery functionality. See Creating Multiple Maintainable Image Galleries (video) and Multiple galleries and taxonomy (handbook). I believe they're for d5, but the process is the same.
Actually no-- one of the most powerful features of views is called "arguments". You can set up a single view to display different data based on the url provided (ie '/locations/newyork' and '/locations/california' can be the same view and will only display the data indicated by the last part of the url).
No problem-- happy to help. ;-)
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
I am sorry, but I am a little
I am sorry, but I am a little confused on allowing registered users to upload images. I tried following your method about making a new content type called images. I added an imagefield to this new content type using CCK. When I created content using this new content type, I was allowed to upload an image but this seems to be from the admin end. How do I allow registered users to upload images? Also how do I do it without giving them access to other options such as comment settings, publishing options, etc. I guess what I am trying to say is I am looking to construct a simple upload page that has an upload button and a description that the registered user can fill out about the image and a submit button. Each uploaded image would then be saved as a node into a gallery pertaining to a particular location. By having a gallery for each location, I can use arguments in views like you discussed above for linking the location nodes to their respective galleries.
Again I really appreciate your help. I just started with drupal a month ago and it has been quite a learning experience.
Thank you
Paul
_
No problem-- happy to help. ;-)
If you give them the "create" permission for the content type you created (at admin/user/permission) it will appear in the "create content" submenu of the 'navigation' menu. Alternatively, you could just manually create a link or menu item to 'node/add/{content-type}".
Users will only see options on the 'add' form for the things you've given them permissions to do. You can use the http://drupal.org/project/masquerade module to quickly switch back and forth between your admin account and a user account. Or, you can just use 2 browsers to switch back and forth to see what your users can see.
You may wish to try out the image module-- it will automate alot of this configuration for you.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
Thank you. You clarified this
Thank you. You clarified this for me perfectly. I created a universal upload page that registered users can go to and upload their images. Since this is a universal page, is there a way that I can add a CCK field where the user has to enter a location name and based on the location that is chosen, the image is stored in that location's particular image folder? I believe that having an image folder for each location in the files directory would be a good way to store the images as opposed to a single folder for all of the images.
Also right now I have it set up so that only one image can be uploaded at a time. I tried adding multiple upload fields, but the images were saved under the same title. Is there a way to add titles so that each picture is stored as its own node?
And lastly, I would like the names of the uploaded images to be changed to avoid duplicates. For example, if an image already stored in one of the image folders has the name "me.jpg" and someone uploads an image into that folder with this same name I don't want the image in that folder to be replaced. Is there a way to prevent this? Again, I really appreciate your assistance. When I learn more about Drupal I plan to give back to the community as well.
Thank you,
Paul
Do authenticated users have
Do authenticated users have permission to upload images or anything for that matter?
--------------------------------------------------------
Dipen Chaudhary
www.qed42.com ( Drupal development services specialize in social networks and other user generated content platforms )
www.dipenchaudhary.com
yes they do.
yes they do.