Announcement

#1 2022-03-24 17:46:20

BigIsland270972
Member
Norway
2022-03-15
374

[resolved] How do I show the v4 in openstreetmap by default?Instead of the v3 map

Hello/Hi/Greetings,
When I click the mapicon, the default map is https://www.arkivfoto.net/osmmap.php?/c … es&v=3
I want it to be https://www.arkivfoto.net/osmmap.php?/c … es&v=4

Piwigo URL: https://www.arkivfoto.net


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

#2 2022-03-25 12:26:58

gueba
Member
2021-12-31
55

Re: [resolved] How do I show the v4 in openstreetmap by default?Instead of the v3 map

Smarty is looking for the template in the wrong folder:

Code:

Fatal error: Uncaught --> Smarty: Unable to load template 'file:/hd1/var/www/virtual/fotodb.net/arkiv/plugins/piwigo-openstreetmap/include/../template/osm-map4.tpl'

The templates are in "...plugins/piwigo-openstreetmap/template/"
Check if osm-map4.tpl is there.

The plugin adminpage does not offer version 4 in the dropdown-field. Did you make any changes to the code?

Edit: to show all map-versions in the adminpage, just edit "plugins/piwigo-openstreetmap/admin/admin-config"

Code:

// Available layout value
$available_layout = array(
    '1' => 'osm-map.tpl',
    '2' => 'osm-map2.tpl',
    '3' => 'osm-map3.tpl',
    '4' => 'osm-map4.tpl',
);

Last edited by gueba (2022-03-25 12:36:10)

Offline

 

#3 2022-03-25 15:19:55

BigIsland270972
Member
Norway
2022-03-15
374

Re: [resolved] How do I show the v4 in openstreetmap by default?Instead of the v3 map

Edit the admin-config did it. Thanks for the support:-) :-)


Piwigo 14.0 | https://fotoarkiv.no | https://foto.arki.vet | http://Bergen.gallery  | http://Ålesund.gallery | http://geiranger.gallery | http://fjord.photos | http://foto.oslo.no
Apache | PHP 8.1 | MariaDB

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact