I made a block and then I put some html into it. Specifically, I made a table and put images with hrefs associated - the full html into the edit box for the block. Now all I see is the title. The images are uploaded, the hrefs point to the absolute url, so I'm not certain what's missing in order for these images (in a table) to show up. The images are the only content in the table. Is there something unique about this that prevents it from working? My bullet is in "allow full html" for configuring the block.

Comments

vm’s picture

what url are you using to reference the images ?

insure your path begins with a "/" example "/images/myimage.jpg"

drupalgurl’s picture

Well, I was using an absolute url - <td><a href="http://targetdomain.com/file.jpg"><img src="http://www.mydomain.com/images/img1.jpg" width="100" height="75" border="0" alt="description" /></a></td>

ThatPerson’s picture

Where are you storing your images?

drupalgurl’s picture

i put them into a folder and named it images - in the root

drupalgurl’s picture

i wanted to add that i made the block visible for anonymous users too

vm’s picture

I've spent some time doing this however, i prefer to use relative urls, to keep my content modular, I would consider using relative rather than absolute with regards to the actual image file. The absolute link being used to link to the actual file that is NOT actually part of your drupal site, works without issue..

could your issue with not seeing the images be a caching issue ?

StuartMackenzie’s picture

i'd double check your input format for the block and also the permissions on the image folder you created, wherever they are hosted, I've had a similar problem once and found out it was a simple files permission problem. You'd probably find your better served creating a folder in the files directory called 'block_images' or something else suitable.

Stuart Mackenzie
http://rojojam.com

Qudsiyya’s picture

hello,

I am facing the same problem as yours. Did you find an answer to your problem. I tried the solutions provided to you but they dont work for me.

I made a block for menu to place in a sidebar. I used html to put images and colors. However I am not able to view either the images or the colors.

Let me know if you found a solution.

vm’s picture

what input format was used when the new block was submitted ?

hbryan’s picture

I struggled with this exact issue for a really, really long time.

I stumbled in to my solution by accident: select "PHP Code" for input type but without any tags.

It seems totally counterintuitive to me but that was also the solution to my form and search box problems.

offal’s picture

I have a similar problem where I have used FCK Editor to add an image to a block. The file path is ...src="/files/image/myimage.png". This works on the live site that I have, but on my localhost the image refuses to display. The log entry says that the page is not found. At other times the log says 'access denied'.

However, when I leave out the leading slash (...src="files/image/myimage.png"), then it works on my localhost- but not on some pages. The image won't display in the block when I go to 'My Account' and some other user related pages. This also applies on the live site (when I leave out the leading slash).

What's going on?

krahe’s picture

seanenroute’s picture

A common error is putting the folder holding the image in their Theme Root folder and not in their Drupal root folder.

wtfmancmon’s picture

i had this same issue, i was using the path of <img src="/sites/default/files/custom.jpg">

and i solved it, it was simply that under Input Format, i had Filtered html as opposed to Full html..... duhhh