hello everyone,

I have created a new block to display at the below by userlogin block. In the block i am trying to add a image in it .
This is code i have included in the block body .

<html>
<head>
<body>
<img src="http://perusasive.ubihealth.de/drupal-6.10/paypal2.GIF" width="50" height="50"><img>
</body>
</html>

But the image is not displaying in block ?..

Any suggestion ?..

Thank you.

Comments

bwv’s picture

Did you set the input format to full html?

dineshbonn’s picture

yeah i have set to input format full html..

Mark Theunissen’s picture

Your img tag isn't closed properly.

dineshbonn’s picture

i closed the now but even it is not working out ..

Mark Theunissen’s picture

Don't put the html and body tags in the block. Just put the img code.

<img src="http://perusasive.ubihealth.de/drupal-6.10/paypal2.GIF" width="50" height="50" />

Set the input format to something that doesn't strip img tags.

dineshbonn’s picture

you mean not set the input format to filtered html either full html ?.. Even it does not work.

Mark Theunissen’s picture

Maybe that image you are linking to has hotlink protection enabled. Try using something on your local webroot, like sites/all/files/image.jpg.

bwv’s picture

I tried to navigate to the image URL in a browser window and got "Object not found."

Mark Theunissen’s picture

That could be it .... :D

Mark Theunissen’s picture

Put the image in the "files" directory of Drupal, not the root. So in the sites/default/files for example.

dineshbonn’s picture

Thank u Mark. I put the image in different folder and it works fine now..