0 Members and 1 Guest are viewing this topic.

add image to .tpl file
« on: April 16, 2019, 08:37:45 PM »
Hi,

I want to add an image in front of the meta description tags.  I placed it in the directory /templatename/images/image.jpg but using something like <img src="./images/image.jpg"> doesn't work.  What is the correct syntax?

Thanks,
Jason

*

Pharg

  • *****
  • 3,272
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: add image to .tpl file
« Reply #1 on: April 16, 2019, 09:17:02 PM »
Hi fiatlux,

That would be <img src="images/image.jpg">

But from what I have read it's not a good idea to have images in the descriptions.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

Re: add image to .tpl file
« Reply #2 on: April 16, 2019, 11:04:06 PM »
Ordinarily true, but I have a special circumstance.  That syntax isn't working either.  So nothing beyond ordinary HTML is required in the .tpl. It must be a path issue.

Hi fiatlux,

That would be <img src="images/image.jpg">

But from what I have read it's not a good idea to have images in the descriptions.

*

Pharg

  • *****
  • 3,272
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: add image to .tpl file
« Reply #3 on: April 16, 2019, 11:15:33 PM »
Hi Fiatlux,

Try this then <img src="/images/image.jpg">
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

*

Pharg

  • *****
  • 3,272
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: add image to .tpl file
« Reply #4 on: April 16, 2019, 11:24:22 PM »
Hi Fiatlux,

Here are the current images already in the tpl files.

Done like this:
Code: [Select]
<img src="images/arrow_ltr.png" alt="" />
And this:
Code: [Select]
<img src="{$image_dir}member_icon.jpg" width="19" height="18" border="0" alt="" />
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35