Shape 5

Joomla Templates => Risen Hope - Club => : jennymac August 20, 2014, 04:58:51 AM



: Displaying images
: jennymac August 20, 2014, 04:58:51 AM
Hi Guys - love the new template. Well done.
I am trying to insert an image into the module 'Welcome' a custom module.
Initially I was just using Tiny MCE, but the image would not stay so I uploaded JCE (which is my usual editor) and still the image will not display. It is evident in the editor, but after I save it and look at the live site (where the image does not display) it is also missing in the editor.
In the source code there are some extra characters that I have never seen before: <p><img src="\&quot;images/powered_by.png\&quot;" alt="\&quot;powered" /></p>  (the unusual code is green - I hope!)
When I first inserted the image I checked the code and it was clean, but after saving the image was gone and the code was changed.
Hope this all makes sense.
Thanks
Blessings
Jenny


: Re: Displaying images
: mikek August 20, 2014, 07:20:54 AM
Hello,

If your editor is actually changing the quotations, that's either a setting in the editor itself or a setting on your server such as php_magic_quotes being enabled. A default Joomla install won't change those quotes, and they have to be shown as actual quotes for any html element to show properly.


: Re: Displaying images
: jennymac August 20, 2014, 08:06:20 PM
Thanks Mike for that - that is interesting. When I set up the new site, during the installation process I had to create a php.ini file within the installation folder to allow the installation to process because the 'magic quotes' was 'no'. The php.ini files was deleted when the installation folder was deleted.
When I logged into my new site, I had this message "Error Your host needs to disable magic_quotes_gpc to run this version of Joomla!" I contacted my host and they said it is fixed but 24 hours later it is not I see. I will chase them up on that.
Blessings
Jenny



: Re: Displaying images
: mikenicoll August 20, 2014, 10:02:03 PM
Hello,

Just contact your host and reference this:

http://docs.joomla.org/How_to_turn_off_magic_quotes_gpc_for_Joomla_3

They need to make the changes server side not added during an installation file.


: Re: Displaying images
: jennymac August 21, 2014, 01:16:28 AM
All good - working beautifully now.
The first tech may not have known what they were doing but the 2nd one did - yay!
Pictures all where they should be.
Blessings
Jenny


: Re: Displaying images
: mikenicoll August 21, 2014, 05:25:08 PM
Awesome glad to hear!

Let us know if you have any other questions.