DeniseP Posted October 10, 2021 Report Share Posted October 10, 2021 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! Quote Link to comment Share on other sites More sharing options...
Chris Lloyd Posted October 10, 2021 Report Share Posted October 10, 2021 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. Quote Link to comment Share on other sites More sharing options...
DeniseP Posted October 10, 2021 Author Report Share Posted October 10, 2021 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. Quote Link to comment Share on other sites More sharing options...
theKiwi Posted October 11, 2021 Report Share Posted October 11, 2021 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! Can you post a link to a page that shows this problem? Roger Quote Link to comment Share on other sites More sharing options...
DeniseP Posted October 12, 2021 Author Report Share Posted October 12, 2021 Not sure why - but the link I posted last night did not show. Sorry - https://barrett-radfordgenealogy.com/showmap.php?cemeteryID=11 Quote Link to comment Share on other sites More sharing options...
Chris Lloyd Posted October 12, 2021 Report Share Posted October 12, 2021 Displays OK on my pc : Quote Link to comment Share on other sites More sharing options...
DeniseP Posted October 12, 2021 Author Report Share Posted October 12, 2021 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. Quote Link to comment Share on other sites More sharing options...
theKiwi Posted October 13, 2021 Report Share Posted October 13, 2021 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 Quote Link to comment Share on other sites More sharing options...
bhemph Posted October 13, 2021 Report Share Posted October 13, 2021 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.