Jump to content
TNG Community
DeniseP

Cemetery images

Recommended Posts

DeniseP

I am using Template 13. 

I have been trying to find a MOD that will keep the cemetery image or 'map' within the outlined box when the browser window size is changed. Is there such a thing? I am a HTML newbie so please be gentle! :)

image.png

Share this post


Link to post
Share on other sites
Chris Lloyd

You may need to reduce the size of the image before uploading it.

In the admin setup section you can specify max height and width for images.

Share this post


Link to post
Share on other sites
DeniseP

I have changed the file size many times. But as soon as the browser page size is changed, it no longer fits within the box. 

Share this post


Link to post
Share on other sites
theKiwi
2 hours ago, DeniseP said:

I am using Template 13. 

I have been trying to find a MOD that will keep the cemetery image or 'map' within the outlined box when the browser window size is changed. Is there such a thing? I am a HTML newbie so please be gentle! :)

image.png

Can you post a link to a page that shows this problem?

Roger

Share this post


Link to post
Share on other sites
Chris Lloyd

Displays OK on my pc :

image.png

Share this post


Link to post
Share on other sites
DeniseP

Yes, the image shows. In your picture above, it is not fitting the size of the box that is outlined by the template. When you resize the window, the image does not stay in the defined template box. 

Share this post


Link to post
Share on other sites
theKiwi
1 hour ago, DeniseP said:

Yes, the image shows. In your picture above, it is not fitting the size of the box that is outlined by the template. When you resize the window, the image does not stay in the defined template box. 

I see the same problem - and on my site it does a similar thing, but since my image is narrower to start with, the problem isn't noticeable until the window gets to an unreasonably small size

http://lisaandroger.com/genealogy/showmap.php?cemeteryID=10&tree=

Roger

Share this post


Link to post
Share on other sites
bhemph

Denise,
     I don't believe there is a mod that currently exists that does what you are looking for.  https://tng.lythgoes.net/wiki/index.php/Category:Showmap.php_mods is the wiki page indicating the mods that change the showmap file.  To get the change that you are looking for though, it would be an easy mod that you could make.  In this mod, you want to have the line

		$infoblock .= "<img src=\"$headstonepath/{$cemetery['maplink']}\" border=\"0\" $size[3] alt=\"{$cemetery['cemname']}\" /><br/><br/>\n";

change to

		$infoblock .= "<img src=\"$headstonepath/{$cemetery['maplink']}\" style=\"max-width: 100%; height: auto;\" alt=\"{$cemetery['cemname']}\" /><br/><br/>\n";

this will change the image size to be dynamic with a maximum width of 100% of the original.  It also maintains the aspect ratio.  So once the screen size gets smaller than the original will fit it dynamically resizes in the browser.

Brent

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×