Newbie here. Got 6.4 installed and running, with VIEWS and CCK modules. Can someone recommend the right image module (and possible other required modules) for this scenario:

1) Users are allowed to submit a story and uploaded maximum of 3 images to be displayed in the body of the story.

2) Module only allows files of format gif or jpg to be uploaded.

3) Module(s) resizes each image to 250 pixels max on either dimension, then inserts them in the body of the story, 1 image every X number of words or characters.

4) Story goes into queue for moderator approval.

Can anyone get me started down the path to this setup? Which modules? Anyone done anything like this before that can shed some insight/suggestions?

Thanks.

Comments

justageek’s picture

Imagecache module will let you set your size presets to automatically resize the images. I think a standard image field using CCK will let you define your other rules.

As to automatically inserting them every so many words or something, I have no idea about that one right now. Also, the rules module I think handles your workflow / approval.

eterps’s picture

1) Enable ImageCache module. Then you can add an image field to the 'story' content type (Administer > Content management > Content types > story > Manage Fields). Add a new field, give it a name (StoryPicture, perhaps) and select 'Image' from the -Select field type- dropdown. Click 'Save'. You'll be brought to the StoryPicture (or whatever you called it) settings. Scroll down to the 'Global Settings' section. Change number of values to 3.

2) In the 'StoryPicture' field settings, change the "Permitted upload file extensions:" to jpg and gif.

3) Enable the ImageAPI and ImageCache, and ImageCache UI modules. Then Administer > Site building > ImageChache. Create a new preset. Let's say you call it "StoryPic". Click 'Add Scale' under actions. Enter 250 for width and height. Click 'Add Action'. Go to Administer > Content Management > Content types > Story > Manage Fields. Click 'Display Fields'. Find StoryPicture row, Full Node column, and choose 'StoryPic Image' from the dropdown. Do the same for the 'Teaser' column if you expect the picture to appear in the story teaser.

4) Check out the workflow module. Or simply go to Admin>ContentMgmt>Content Types>Story>Edit>Workflow Settings and uncheck 'Published'.

Here's a video demonstrating ImageCache and ImageField:
http://www.drupaltherapy.com/node/47

Hope this helps.

Lakewood’s picture

Thanks guys. Eterps, I followed everything you suggested, and I get to the final step of uploading images on my "Create Story" form. I upload them, the module confirms that they've been resized and then shows a thumbnail confirming the image. But after I save the new Story, the pictures don't appear with the story. I do see a section at the bottom of the story labeled "Pictures:" (which is what I named the field in the Story Content Type settings) but nothing appears there.

The image files DO exist on the server at mydomain.com/drupal/sites/default/files/image.jpg

All the file permissions inside /drupal/sites/default/files/ seem to be set correctly.

Any suggestions where I might look for the snag?

Thanks again.

DanielJohnston’s picture

You have to change the field display settings for your Imagefield field in your content type to make the images visible outside of the editing screen. 'Default' display hides the images, so you should choose one of the other options ('as link'?).

Having said that, the standard display of images is the same as everything else in CCK - they'll appear above or below your other fields, but not 'in' the story. You might need Panels or ConTemplate or some such for that. I'd be interested in a better solution if anyone has one?

Lakewood’s picture

Thanks Daniel.

>You have to change the field display settings for your Imagefield field

Yeah, I thought I had that covered, but after playing around with the different options, I found the one that worked. Thanks!

>Having said that, the standard display of images is the same as everything else in CCK - they'll appear above or below your other fields, but not 'in' the story. You might need Panels or ConTemplate or some such for that. I'd be interested in a better solution if anyone has one?

True, but I thought it would be a good first step to get them into the story somewhere. Now the next step would be to get them into the body of the text somehow.

>I'd be interested in a better solution if anyone has one?

Yeah, anyone?