• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Images in user email

Images in user email 16 years 2 months ago #6380

I'm having trouble loading an image into the user email. The problem is with the text editor. I'll either upload an image into the file, or else type in the HTML manually in the HTML view. The image will be visible - just as I want it - until I Save or Save & Close. Then the editor will insert gobbledygook into the <img src> tag, and I'll get a broken image.

Specifically, <img src=images/stories/logo.gif border=0 align=left> will become <img src="%22images/stories/logo.gif/%22" border="\"0\"" align="\"left\"" />

There doesn't seem to be anything I can do to prevent the system from rewriting the HTML tags upon Save or Save & Close.

How do I get my images to appear correctly?
The administrator has disabled public write access.

Re:Images in user email 16 years 2 months ago #6384

  • sebyp
  • sebyp's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
Hello

First of all, please tell me what is you HTML editor. If you are using TinyMCE, please first of all configure it to accept absolute paths. In order to do this, go (in your Joomla backend administration) to "Extensions" -> "Plugin Manager" and locate TinyMCE. Click on it, and on the column to the right, set "URLs" to "Absolute".

For the image, I think that it's best to manually insert the HTML code. As another precaution, I would suggest turning off TinyMCE and inserting the code by hand.

Please keep us posted.
The administrator has disabled public write access.

Re:Images in user email 16 years 2 months ago #6385

Thanks for the suggestions, but no luck.

I set the URLs to absolute. The image appeared fine after using the HTML editor, but again - on Save & Close - the editor monkeyed with the HTML code and I was left with a broken image.

So I changed the radio button on "Clean up code on save" from Always to Never. Once again, everything appeared fine after using the HTML editor, but the software *still* monkeyed with the code on Save & Close and left me with a broken image.

So finally I disabled Tiny MCE 2.0 and couldn't even get to the editor. I clicked to edit the User email message, and I received a blank popup with these error messages:

Warning: Attempt to assign property of non-object in /home4/njesqnet/public_html/libraries/joomla/html/editor.php on line 301

Fatal error: Call to a member function get() on a non-object in /home4/njesqnet/public_html/plugins/editors/tinymce.php on line 57

Oh, and I did have access to the Save & Close button, just as a way of adding insult to injury.

I could provide details of the *way* in which the software monkeyed with the URL - what it inserted and where - if that would be any help. Otherwise, I'm stuck.
The administrator has disabled public write access.

Re:Images in user email 16 years 2 months ago #6386

  • sebyp
  • sebyp's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
Hello again

Please tell me, how did you try to exclude the editor? From what I'm seeing, this appears to be a Joomla related problem. Looking forward to your answer.
The administrator has disabled public write access.

Re:Images in user email 16 years 2 months ago #6388

As you suggested, I went in through the Plugin Manager and clicked on the Enabled checkmark, changing it to Disabled.

As far as its being a Joomla problem, that's iffy. I assume that Tiny MCE is the WYSIWYG editor everywhere on Joomla and its extensions. I have inserted images elsewhere consistently without a problem. On the other hand, some of the other writers for the magazine I work for have had problems inserting images into (for instance) blog posts on one of our Joomla extensions. I haven't been able to detect a pattern - why it works for me but not for them.

Any other suggestions what to do about this? Why does the editor still chagnge the HTML code, even after I've disabled Tiny MCE's rule to always clean up code?
The administrator has disabled public write access.

Re:Images in user email 16 years 2 months ago #6389

  • sd.dan
  • sd.dan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
Hi artcharity,

i think i saw a similar problem on the codewalkers.com forum.

ended up being another string in html code that was broken and was putting the same %22 characters around the image code.. maybe look there if you havent already..

good luck :)
The administrator has disabled public write access.

Re:Images in user email 16 years 2 months ago #6390

Thanks, I'll take a look.
The administrator has disabled public write access.

Re:Images in user email 16 years 2 months ago #6395

hi again s.d. dan,

I've searched through the Codewalkers forums but can't seem to find the exchange you're talking about. Do you remember anything about it that will help me find it? Or could you point me toward it? Thanks.
The administrator has disabled public write access.

Re:Images in user email 16 years 2 months ago #6406

  • sd.dan
  • sd.dan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
hey there..

forums.codewalkers.com/php-coding-7/insert-into-db-75585.html

this is one of them, not sure it relates to you though.


i found this on another forum about a Jdownload addon, and they say its a bug?

www.joomlaaddons.de/index.php?Itemid=86&...=com_smf&topic=328.0

again not sure it relates to you.
The administrator has disabled public write access.

Re:Images in user email 16 years 2 months ago #6421

I'm having the same problem...

Please let me know if you guys find something.

Fred
The administrator has disabled public write access.

Re:Images in user email 16 years 2 months ago #6422

Turning off the Tiny MCE editor was the right idea; I was just going about it the wrong way.

From the Joomla control panel, go to Site > Global Configuration. Under the Site tab, Site Settings, you'll see a dropdown menu to choose the Default WYSIWYG editor. Select Editor - No Editor. Now when you go to edit the User Email in RSForms, you'll see the HTML code only. You can edit the img src command to read properly. When you Save & Close, the software will not alter your code. Then go back to the Site Settings and restore the Tiny MCE editor ... because you'll want to use it for everything else.

I've tried this; it works. Still an annoyance, but the problem is solved.
The administrator has disabled public write access.

Re:Images in user email 13 years 10 months ago #13851

  • dominic.conrad
  • dominic.conrad's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 2
This is happening because the editor you are using (TinyMCE or JCE) is set to use relative urls. You need the full url (e.g. www.mysite.com/logo.gif) to the image in the email code as they won't be looking at the site when they read the email.

If set to relative url's, TinyMCE and JCE on saving will reduce the image source to just the path after the d top level domain. E.g. it will convert:

<img src="www.mysite.com/logo.gif">

to


<img src="logo.gif">

and the image will be displayed as broken link in the email.

So you either
a) turn off relative urls in Tiny MCE or JCE (not the best idea)
b) do as suggested and turn off the editor (Site > Global Configuration. Under the Site tab, Site Settings, you'll see a dropdown menu to choose the Default WYSIWYG editor. Select Editor - No Editor. Also make sure your user profile uses No Editor too) so you just use raw code whilst editing the email text and save. Then turn back on your editor
Last Edit: 13 years 10 months ago by dominic.conrad.
The administrator has disabled public write access.
The following user(s) said Thank You: hervefavre38
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!