I am finding it really hard to add images in stories ,for example in vbulletin there is an option to add images by just putting the url of the image ..
I have to add an image in all of my posts , is there any way i can add them quickly as i do not see the image option
thx

Comments

bugz_nz’s picture

Try the TinyMCE module at http://drupal.org/project/tinymce

It adds a WYSIWYG editor to your text fields along with an add image button.

Manishz’s picture

hmmm ok , thx lots , i was wondering about the tinymce :)

Internet Marketer

gollyg’s picture

You could use the attachments feature to allow uploading an image, and then modify the node template to display the image. Just another approach to the problem.

Stuart Greenfield’s picture

I've been wondering about a different way to do this, but I'm not sure if what I'm thinking has already been done in another module (although reading the descriptions I'm not sure it has). Maybe someone who knows Drupal better can give me a pointer!

At the moment I upload images via image.module so it can take care of the file management. Then to put pictures in stories I used img_assist. That's fine, except I have to create my image nodes first, then I create my story, and then I have created two nodes (or more). Also, I have to plan ahead about which pictures I want to use.

I don't really want to upload directly via FTP and link to files because I like the way image.module makes thumbnail sizes, which are just right for normal posts. Also, my wife wants to post too, but I don't her to have to mess around with ftp and then writing <a href... tags.

What I was thinking...

  1. Attach pictures to the story using the normal attachment button. That lets the drupal database manage the files.
  2. Generate a thumbnail for each picture. I see that upload_image makes a table of thumbnails which would be neat.
  3. Then, in the post use some sort of simple code, like [picture:0] [picture:1] to identify which of the pictures I want.
  4. The attachments would be set to not list, so when editing you can easily delete pictures you don't want anymore, but people reading don't see an attachment list.

Not sure if the upload would need to keep the original file but maybe just the thumbnail (although could keep both I guess).

That way the adding of picture is quite intuitive for the end user (e.g. my other half who gets very confused by image / img_assist).

Does something like this already exist? If yes, which module, if no, what do other people think?

The closest I can see is upload_image which generates a series of image nodes from a "parent" - maybe that just needs extending with something to generate inline images?

I might have a go at writing something like this, but I don't want to repeat work that's been done before, so if any Drupal experts can comment it would be much appreciated!

Cheers

Stuart

________

Just five more minutes...

www.stuartandnicola.com

bwynants’s picture

inline module?

Stuart Greenfield’s picture

I hadn't spotted that one! It sounds like it is almost right - maybe with a little bit of extra code uploaded jpegs could result in automatic preview sizes, and then inline could link to them - that would be exactly right then...
________

Just five more minutes...

www.stuartandnicola.com

styro’s picture

gives you a similar macro syntax for inline images - with options for borders and which sized image you want etc

There doesn't look like any 4.7 updating plans for it on the horizon yet though - I'm happy to be proven wrong.

--
Anton
New to Drupal? | Forum posting tips | Troubleshooting FAQ
Example Knowledge Base built using Drupal

gregj’s picture

What if I wanted the thumbnail image to appear to the left of a story's content and title on the homepage? Is this something a module can do for me or an easy code update?

Like this: http://www.mustseeinside.net/images/example.jpg

ss54’s picture

I am not sure if the following might help you. Inside the body box write the following to the left of the text:

img src="/images/oldman2.JPG" width="212" height="109" style="float: left; margin: 0 20px 15px 0;"

you should surround the above statement with < and />