×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Images not displaying in short description

Images not displaying in short description 12 years 8 months ago #15510

  • Nick Coughlin
  • Nick Coughlin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
The images I've added to my short description are not showing up. Any idea why?
Attachments:

Re: Images not displaying in short description 12 years 8 months ago #15511

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
hm that is strange. May I see a link?
Daniel

Re: Images not displaying in short description 12 years 8 months ago #15516

  • Nick Coughlin
  • Nick Coughlin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0

Re: Images not displaying in short description 12 years 8 months ago #15524

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Nick,
I think that this is related to the SEF component that you use.
If you look at the source of your page you will see the <base> tag in the head
The base url for the page is:
<base href="http://h2oforlife.server298.com/index.php/resources" />
Now the component loads the text from the database and you have this:
<img width="100" height="100" style="float: left; margin-right: 3px;" alt="children-watching-driller" src="images/children-watching-driller.png">

the source is relative to the base tag. So, the browser is searching for the image in
http://h2oforlife.server298.com/index.php/resources/images....
Obviously this is wrong :)

Maybe when you add images in the editor use full path to them http://.../images...

Kind regards,
Daniel

Re: Images not displaying in short description 12 years 6 months ago #16186

  • Nick Coughlin
  • Nick Coughlin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hi Daniel:

Here is a link to illustrate the issue I'm having: h2oforlife.server298.com/index.php/the-w...s/interactive-map#!4

You will see three hotspots. The image in the short description is not displaying in two of them (School in Need 2; Zanka Primary School), but is displaying fine in School in Need 1. I don't see what I've done differently. Can you tell me what I'm doing incorrectly?

Thanks!

Re: Images not displaying in short description 12 years 6 months ago #16187

  • Eliecer Marchante
  • Eliecer Marchante's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
The images you can see have the following path:
http://h2oforlife.server298.com/images/Chisolo.png
http://h2oforlife.server298.com/images/Jitegemee.png
http://h2oforlife.server298.com/images/zanka.png

and the path of the images you can not see is:
http://h2oforlife.server298.com/index.php/the-water-crisis/images/children-watching-driller.png

Check the path of the ones you can not see. If you remove
/index.php/the-water-crisis

from the path, you will be able to see the images:


http://h2oforlife.server298.com/images/children-watching-driller.png

Re: Images not displaying in short description 12 years 6 months ago #16194

  • Nick Coughlin
  • Nick Coughlin's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Thank you, Eliecer!

Re: Images not displaying in short description 12 years 6 months ago #16195

  • Eliecer Marchante
  • Eliecer Marchante's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Your welcome!
  • Page:
  • 1
Time to create page: 0.144 seconds