img tag not working in drupal
I have a fresh install of drupal 6.16. I am editing the basic theme. When I link images using the <img> tag, they do not display. I have set "input formats" to full html. Please healp
Would you describe your problem a lil more? Which file were you editing? Or were you trying to insert image into a node. I couldn't get you. Describe a lil more! Thank you On 6 May 2010 08:51, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
I have a fresh install of drupal 6.16. I am editing the basic theme. When I link images using the <img> tag, they do not display. I have set "input formats" to full html.
Please healp
-- [ Drupal support list | http://lists.drupal.org/ ]
I am editing "page.tpl" I have put in <img src="sites/default/files/imagename.jpg">. On Thu, May 6, 2010 at 6:36 AM, Nitesh <nitesh@nitesh.com.np> wrote:
Would you describe your problem a lil more? Which file were you editing? Or were you trying to insert image into a node. I couldn't get you. Describe a lil more! Thank you
On 6 May 2010 08:51, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
I have a fresh install of drupal 6.16. I am editing the basic theme. When I link images using the <img> tag, they do not display. I have set "input formats" to full html.
Please healp
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
try with a preceding / before 'sites' ----- Original Message ----- From: Mutuku Ndeti To: support@drupal.org Sent: Thursday, May 06, 2010 12:40 AM Subject: Re: [support] img tag not working in drupal I am editing "page.tpl" I have put in <img src="sites/default/files/imagename.jpg">. On Thu, May 6, 2010 at 6:36 AM, Nitesh <nitesh@nitesh.com.np> wrote: Would you describe your problem a lil more? Which file were you editing? Or were you trying to insert image into a node. I couldn't get you. Describe a lil more! Thank you On 6 May 2010 08:51, Mutuku Ndeti <jnmutuku@gmail.com> wrote: > I have a fresh install of drupal 6.16. I am editing the basic theme. When I > link images using the <img> tag, they do not display. I have set "input > formats" to full html. > > Please healp > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- [ Drupal support list | http://lists.drupal.org/ ] ------------------------------------------------------------------------------ -- [ Drupal support list | http://lists.drupal.org/ ]
try putting <img src="/sites/default/files/imagename.jpg">. On 6 May 2010 09:25, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
I am editing "page.tpl" I have put in <img src="sites/default/files/imagename.jpg">.
On Thu, May 6, 2010 at 6:36 AM, Nitesh <nitesh@nitesh.com.np> wrote:
Would you describe your problem a lil more? Which file were you editing? Or were you trying to insert image into a node. I couldn't get you. Describe a lil more! Thank you
On 6 May 2010 08:51, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
I have a fresh install of drupal 6.16. I am editing the basic theme. When I link images using the <img> tag, they do not display. I have set "input formats" to full html.
Please healp
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
or better <img src="<?php print base_path() . file_directory_path(); ?>/imagename.jpg" /> ie let Drupal determine the location of your file path and make sure you are using xhtml (so close the img tag with />) Hans 2010/5/6 Nitesh <nitesh@nitesh.com.np>
try putting <img src="/sites/default/files/imagename.jpg">.
On 6 May 2010 09:25, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
I am editing "page.tpl" I have put in <img src="sites/default/files/imagename.jpg">.
-- Hans Rossel KOBA Webdesign bvba Beukenlaan 56 9051 Gent (Sint-Denijs-Westrem) Belgium BTW 0817.931.516 +32.9.334.52.60 +32.472.79.32.16 www.koba.be info@koba.be
Yes, ALWAYS use the php to insert the path!! The alternative to what KOBA wrote is: src="<?php print base_path() . path_to_theme() ?>/images/imagename.jpg" If your images are in your theme folder. KOBA | Hans Rossel wrote:
or better <img src="<?php print base_path() . file_directory_path(); ?>/imagename.jpg" /> ie let Drupal determine the location of your file path and make sure you are using xhtml (so close the img tag with />)
Hans
2010/5/6 Nitesh <nitesh@nitesh.com.np <mailto:nitesh@nitesh.com.np>>
try putting <img src="/sites/default/files/imagename.jpg">.
On 6 May 2010 09:25, Mutuku Ndeti <jnmutuku@gmail.com <mailto:jnmutuku@gmail.com>> wrote: > I am editing "page.tpl" I have put in <img > src="sites/default/files/imagename.jpg">. >
-- Hans Rossel KOBA Webdesign bvba Beukenlaan 56 9051 Gent (Sint-Denijs-Westrem) Belgium BTW 0817.931.516 +32.9.334.52.60 +32.472.79.32.16 www.koba.be <http://www.koba.be> info@koba.be <mailto:info@koba.be>
as suggested above the path will "/sites/..." will work.. reason being: /sites/ = domain_root/sites/, whereas, sites/ = current url/sites/, and obviously the image will not be found on this url also, when adding node content, ensure that your input format is full html, else <img> tag wont work in the node body.. -- regards Kinshuk Sunil +91-9910024895 Connect with Me: [image: Facebook] <http://facebook.com/kinshuksunil>[image: LinkedIn] <http://linkedin.com/in/kinshuksunil>[image: Flickr]<http://flickr.com/photos/kinshuksunil>[image: Twitter] <http://twitter.com/kinshuksunil>[image: Blog RSS]<http://kinshuksunil.com/blog>[image: Blog RSS] <http://whatisay.in>[image: devianArt] <http://ncs.deviantart.com> Message Me: [image: Google Talk/]kinshuksunil [image: Skype/]kinshuksunil [image: MSN/]kinshuksunil@hotmail.com [image: Y! messenger/]kinshuksunil On Thu, May 6, 2010 at 9:22 AM, Nitesh <nitesh@nitesh.com.np> wrote:
try putting <img src="/sites/default/files/imagename.jpg">.
On 6 May 2010 09:25, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
I am editing "page.tpl" I have put in <img src="sites/default/files/imagename.jpg">.
On Thu, May 6, 2010 at 6:36 AM, Nitesh <nitesh@nitesh.com.np> wrote:
Would you describe your problem a lil more? Which file were you editing? Or were you trying to insert image into a node. I couldn't get you. Describe a lil more! Thank you
On 6 May 2010 08:51, Mutuku Ndeti <jnmutuku@gmail.com> wrote:
I have a fresh install of drupal 6.16. I am editing the basic theme. When I link images using the <img> tag, they do not display. I have set
"input
formats" to full html.
Please healp
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- regards Kinshuk Sunil +91-99100-24895
Also make sure that your source html actually HAS the <img> tags in it. If they are missing from the page, then your input filter needs to have <img> added to it in the config. Kinshuk Sunil wrote:
as suggested above the path will "/sites/..." will work.. reason being:
/sites/ = domain_root/sites/, whereas, sites/ = current url/sites/, and obviously the image will not be found on this url
also, when adding node content, ensure that your input format is full html, else <img> tag wont work in the node body..
-- regards Kinshuk Sunil +91-9910024895
Connect with Me: Facebook <http://facebook.com/kinshuksunil>LinkedIn <http://linkedin.com/in/kinshuksunil>Flickr <http://flickr.com/photos/kinshuksunil>Twitter <http://twitter.com/kinshuksunil>Blog RSS <http://kinshuksunil.com/blog>Blog RSS <http://whatisay.in>devianArt <http://ncs.deviantart.com> Message Me: Google Talk/kinshuksunil Skype/kinshuksunil MSN/kinshuksunil@hotmail.com <mailto:kinshuksunil@hotmail.com> Y! messenger/kinshuksunil
On Thu, May 6, 2010 at 9:22 AM, Nitesh <nitesh@nitesh.com.np <mailto:nitesh@nitesh.com.np>> wrote:
try putting <img src="/sites/default/files/imagename.jpg">.
On 6 May 2010 09:25, Mutuku Ndeti <jnmutuku@gmail.com <mailto:jnmutuku@gmail.com>> wrote: > I am editing "page.tpl" I have put in <img > src="sites/default/files/imagename.jpg">. > > On Thu, May 6, 2010 at 6:36 AM, Nitesh <nitesh@nitesh.com.np <mailto:nitesh@nitesh.com.np>> wrote: >> >> Would you describe your problem a lil more? >> Which file were you editing? Or were you trying to insert image into a >> node. I couldn't get you. Describe a lil more! >> Thank you >> >> On 6 May 2010 08:51, Mutuku Ndeti <jnmutuku@gmail.com <mailto:jnmutuku@gmail.com>> wrote: >> > I have a fresh install of drupal 6.16. I am editing the basic theme. >> > When I >> > link images using the <img> tag, they do not display. I have set "input >> > formats" to full html. >> > >> > Please healp >> > >> > -- >> > [ Drupal support list | http://lists.drupal.org/ ] >> > >> -- >> [ Drupal support list | http://lists.drupal.org/ ] > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- [ Drupal support list | http://lists.drupal.org/ ]
-- regards Kinshuk Sunil +91-99100-24895
participants (6)
-
Kinshuk Sunil -
KOBA | Hans Rossel -
Mutuku Ndeti -
Neil Coghlan -
Nitesh -
sebastian