Jump to content
TNG Community

Cemetery images


DeniseP

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
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.

×
×
  • Create New...