I'm using the latest drupal CVS with the CVS version of the image module plus the tinyMCE (cvs version also) with the editor set to false as the default.

When the img_assist module is turned on, I can see the image below the textbox. When I clicked it, I can upload the image fine and I believe that part of the module works just fine. The problem I am having is that when I click insert, the modules inserts this code:

[img_assist|nid=992|title=webs7ven theme|desc=description|link=none|align=left|width=100|height=24]

but that's all I can see. The code is not translated to an image.

CommentFileSizeAuthor
#22 INSTALL_11.txt2.46 KBsmallfluffykat

Comments

tfejos’s picture

After I have upgraded to latest CVS it is solved for me.

quaestor’s picture

I think you may need to change the insert mode from "Filter Tag" to "HTML Code" before you click insert.

benshell’s picture

I highly recommend NOT using the HTML insert mode except where absolutely necessary (textareas that are not input format aware).

You just need to turn on the inline images filter. From the install instructions:

Select the input formats inline images should be allowed for by navigating to:
administer > input formats

To add inline images to the 'Filtered HTML' input format, click the 'configure' link and check the Inline images box. Confirm your changes by clicking the 'Save configuration' button.

danethomas’s picture

I'm using 4.7 and the latest CVS of Img_Assist and I'm having this same problem.

I can inster the picture ok with TinyMCE (and I get the yellow image placeholder) but when I submit the content I just get the IMG tags rather than the image.

As reconmended through TinyMCE i've created a RTE input format and have enabled inline images on that (i've also enabled it on filtered HTML and tried that as default but that made no difference)

Any ideas why it wouldn't be working correctly?

paxton’s picture

I do have the same problem:

Brokeback LEGO

the image is just missing the link points to the right picture...

[img_assist|nid=541|title=Brokeback LEGO|desc=|link=node|align=left|width=100|height=67]

I do have the filter enabled but it just does not display a picture...

paxton’s picture

Version: 6.x-3.x-dev » 4.7.x-1.x-dev

I do have the same problem:

<span class="inline left"><a href="/drupal_p/node/541"></a><span class="caption" style=""><strong>Brokeback LEGO</strong></span></span>

the image is just missing the link points to the right picture...

[img_assist|nid=541|title=Brokeback LEGO|desc=|link=node|align=left|width=100|height=67]

I do have the filter enabled but it just does not display a picture...

danethomas’s picture

Any ideas on what the issue might be? I've updated to latest CVS (5th May) and I'm still getting the img_assist code rather than the picture.

Images have been enabled on my input format and I have tried a number of different formats

paxton’s picture

Version: 4.7.x-1.x-dev » 6.x-3.x-dev

Me too. Any help would be really appriciated! Because that's a real downer after updating to drupal 4.7.0

bacon333’s picture

Okay I've played around with it. If you don't see "input types" at the bottom of your "page" or "story" node your image won't show up. If you do have the "input types" link at the bottom of the text field, make sure that "inline image" is selected. For some reason it doesn't select it by default and I had to manually select it. Another weird thing is that I only see "input types" for story nodes. anyone have any ideas?

bacon333’s picture

Also when you configure your Inline Image input type, you have to deselect "HTML filter". might have been obvious to some but just fyi.

danethomas’s picture

I have inline images displaying under my post and I still just get the img assist code rather than the image.

HTML filter is not selected on my RTE input type format. The only thing that is is the inline images option.

mcurry’s picture

I was experiencing a problem that looked like this (although I'm not sure it was exactly the same problem, I was seeing the same symptoms.)

I found my problem by comparing the variable table values for img_assist_* against a site that was working perfectly. The result: the broken site's img_assist_max_size value was set to "480" , as opposed to "640x640" on the site that was working.

I recall that "640x640" was the default value of the img_assist config form "Max inline image size allowed". I recall, also, that I was making changes the other day to reduce the sizes of the inline images so that they remained within the bounds of the fixed-width column in my theme. So, I suppose I did a dumb thing and entered "480" instead of "480x480" in the administer->settings->img_assist->Max inline image size allowed form field.

Anyway, setting the "Max inline image size allowed" field to 480x480 on my broken site caused things to start working again.

Oh, by the way, I was also having derivative images (thumbnail, preview) being deleted from my file system in the files/images dir - not sure if this problem was causing that; I'll keep an eye on things and report back if resetting this value to a properly formatted # fixes it.

My questions/suggestions for those who maintain the img_assist module:

1) What happens if someone enters something like "400" (rather than "400x400") in the Max inline image size allowed field?

2) If that value must have a format of nnnxnnn in order for things to work correctly, perhaps the module could do some simple error checking to help losers like me avoid this problem? (I did confirm that the module allows me to enter a string like "480" with no complaints, but this seems to trigger buggy behavior...)

I've not had time to try modifying the underlying img_assist.module code, so I'm unable to provide any guidance in that area.

Make no mistake, I'm very happy that this module exists, and I was having a blast with it - I'm hoping that I've got it fixed on my site, and that this posting will help others avoid some frustration.

Cheers,

Mike C.
http://www.exodus-dev.com - http://www.rubypowered.com

paxton’s picture

You are the man! Thanks so much, changing the "Max inline image size allowed" to 640x640 did the trick. There was a huge number filled in (like 204583) after updating to 4.7.0 and img_assist cvs and I thought it was the file size or something else... That's really awesome. Thanks again ;-)

totil’s picture

Thank you!
You made the day for a lot of people out there!

mcurry’s picture

paxton:
If you can reproduce that problem (bogus value being set after an upgrade) please submit a bug report for it, including steps to reproduce the problem. I'd do it, but I've not yet experienced the problem.

(oh, and thanks for the kind words, all!)

-Mike

mcurry’s picture

I've created a new bug report for the settings form, since that seems to provide a clear indication of the cause of this problem.

http://drupal.org/node/64259

Perhaps it would be best to continue discussion there? (Forgive me, I don't know much about drupal / cvs etiquette.)

Regards,

-Mike

eveltman’s picture

Thanks Mike,

The tip about maximum inline image size helped for me too ;-)
Only after I gave up debugging the code, I came across this message :-/

Best regards,

Eric

Boinng’s picture

Unfortunately this is NOT the answer for everybody. If you try to use img_assist to display images in their original resolution (ie, a 320x320 image at 320x320) you'll get the exact same result, being no image or img link displayed at all - and according to the author this isn't a bug. See here - http://drupal.org/node/60771

xamox’s picture

I had the same problem and someone told me to make sure I got to my http://website.com/admin/filters and then edit the filter and make sure that the inline images is checked. After that the filtered input option worked for me!

darren oh’s picture

This happened to me after I moved my site to a new server. Images would only display if I inserted a blank line after the inline image tag. After reading this issue, I saved my input filter configuration. Then everything worked properly.

darren oh’s picture

Version: 6.x-3.x-dev » 4.7.x-1.x-dev
smallfluffykat’s picture

Status: Active » Needs review
StatusFileSize
new2.46 KB

This issue tripped me up while trying to diagnose another problem. Please see suggested change to INSTALL.txt to mitigate bug while a fix is being worked on. Regards, Kat.

sun’s picture

Category: bug » support
Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)