|
Replies:
17
-
Pages:
2
[
1
2
| Next
]
-
Last Post:
7 Dec 25, 00:42
Last Post By: JeffTucker
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
79
Registered:
27-Feb-2021
|
|
|
|
Map not remembering settings
Posted:
2 Dec 25, 04:22
|
|
|
|
Hello!
I don't know if this is a skin problem or a jAlbum problem. Thought I would ask here first.
The map settings are not being remembered. I have it set to put the map in the sidebar. Every time I load jAlbum the settings are reset to show the map in the page and not the sidebar. I make the change back, and it's OK until the next time I close and reload. I do save settings before exiting, but that doesn't help.
I can post screenshots if need be, but I got it back to the way I wanted and didn't want to do that again tonight.
Thanks as always,
Jeff
|
|
|
Posts:
1,380
Registered:
6-Sep-2005
|
|
|
|
Re: Map not remembering settings
Posted:
2 Dec 25, 12:34
in response to: jeffkolker
|
|
|
I thought this had been fixed already
It turned out the sidebar map was off, because the skin thought the previous save was made with an older version (before OSM was added), and turned off all map instances, because the API key was empty. The real bug was that the skin didn't save the actual major skin version.
I will update the skin later today.
|
|
|
Posts:
20
Registered:
29-Jan-2004
|
|
|
|
Re: Map not remembering settings
Posted:
2 Dec 25, 14:38
in response to: Laza
|
|
|
|
|
|
O keep gettting a map on the album folder page. Can't get it away. I want only the map pin button underneath my photos as it was always the case.
Amy clue?
thanks,
Gideon
|
|
|
Posts:
1,380
Registered:
6-Sep-2005
|
|
|
|
Re: Map not remembering settings
Posted:
2 Dec 25, 14:43
in response to: gvmelle
|
|
|
|
Turn off Settings / Photoblogger / Main content / Map / Show map ...
|
|
|
Posts:
20
Registered:
29-Jan-2004
|
|
|
|
Re: Map not remembering settings
Posted:
2 Dec 25, 16:17
in response to: Laza
|
|
|
|
|
|
Did that. The result is that the year folder doesn't have a map but the underlying albums have one.
|
|
|
Posts:
1,380
Registered:
6-Sep-2005
|
|
|
|
Re: Map not remembering settings
Posted:
2 Dec 25, 19:34
in response to: gvmelle
|
|
|
|
Yes, this is how it works. The map only shows the images in the current folder.
|
|
|
Posts:
20
Registered:
29-Jan-2004
|
|
|
|
Re: Map not remembering settings
Posted:
2 Dec 25, 20:33
in response to: Laza
|
|
|
|
So, what if I don't want any map, but only the button underneath the pictures?
|
|
|
Posts:
7,900
Registered:
31-Jan-2006
|
|
|
|
Re: Map not remembering settings
Posted:
2 Dec 25, 20:48
in response to: gvmelle
|
|
|
|
This appears to be yet another map bug.
If I choose No map on index page, and just choose the option to show a map button in the lightbox caption, I still get a map on the index page. There seems to be no way to turn that off.
(Also, there are two places to indicate that I want a map button on the lightbox, and they seem to be tied together. I don't know why there are two settings for the same thing, on different panels.)
|
|
|
Posts:
1,380
Registered:
6-Sep-2005
|
|
|
|
Re: Map not remembering settings
Posted:
3 Dec 25, 07:31
in response to: JeffTucker
|
|
|
|
I wanted to be helpful and added controls to both the Site / Map panel and the Main content / Map and Sidebar / Map panels. Now, synchronizing the states during the skin load is triggering the problem. And because of another "favor" the skin tries to do, when it turns off the map everywhere if there's no API key, and the album was made with an older version, with no OSM support. The logic is sound once the skin has been loaded, but during load, too many things happen at once, in an unknown order, so I lost the battle. jAlbum seems to overwrite the settings with the ones coming from the jalbum-settings.jap file, no matter what I do.
|
|
|
Posts:
7,900
Registered:
31-Jan-2006
|
|
|
|
Re: Map not remembering settings
Posted:
3 Dec 25, 14:39
in response to: Laza
|
|
|
|
|
You've painted yourself into quite a corner!
Time to simplify all of it. Put all of the map choices on the Map tab, and nowhere else. Then provide a checkbox: Map if GPS coordinates. If the user selects that, enable the Placement, Button on Lightbox, Box title, Initial zoom, and API key fields. If the user also enters something in the API key field, enable the Initial view field. And I would relabel Lightbox to Button on lightbox, to make it clear that it's going to put a button on the lightbox!
No second-guessing, no spooky action at a distance, no race conditions on skin loading, and a master switch to turn it all on or off
|
|
|
Posts:
20
Registered:
29-Jan-2004
|
|
|
|
Re: Map not remembering settings
Posted:
4 Dec 25, 12:01
in response to: gvmelle
|
|
|
|
Anybody any suggestion? And also: why isn't my API key for Google working anymore???
Edited by: gvmelle on 4 Dec 2025, 13:38
|
|
|
Posts:
7,900
Registered:
31-Jan-2006
|
|
|
|
Re: Map not remembering settings
Posted:
4 Dec 25, 14:22
in response to: gvmelle
|
|
|
Anybody any suggestion?
Wait until Laza releases a new version of the skin. There is nothing you can do in the meantime.
And also: why isn't my API key for Google working anymore???
We don't know. You have probably copied and pasted it incorrectly, perhaps leaving off a digit or two.
(I've been using the same API keys for a decade. They don't suddenly stop working.)
|
|
|
Posts:
20
Registered:
29-Jan-2004
|
|
|
|
Re: Map not remembering settings
Posted:
6 Dec 25, 08:14
in response to: JeffTucker
|
|
|
|
|
|
Something changed in the javascript code.
My API key is fine and works on other websites.
I posted yesterday a reply but that disappeared mysteriously.
Edited by: gvmelle on 6 Dec 2025, 09:18
|
|
|
Posts:
7,900
Registered:
31-Jan-2006
|
|
|
|
Re: Map not remembering settings
Posted:
6 Dec 25, 15:07
in response to: gvmelle
|
|
|
|
|
|
I've tested it again, and Google Maps work in Photoblogger. There's still a problem with the map showing on the index page when you don't want it to, but the map works.
The error message you're seeing doesn't mean that there's something wrong with the skin's Javascript. It's just telling you to look at the Javascript console to identify the problem. Hit F12, then go to the Console tab.
If I intentionally enter an incorrect API key, the Javascript console displays the message you see in this screenshot. It clearly indicates that the key has been entered incorrectly. Don't try to enter it by hand - just copy and paste it from a reliable source.
|
|
|
Posts:
20
Registered:
29-Jan-2004
|
|
|
|
Re: Map not remembering settings
Posted:
6 Dec 25, 18:52
in response to: JeffTucker
|
|
|
|
it's not the key: that key is there for years. But I will look at the javascript. It is probably in jalbum itself, because tier gives the same result.
Edited by: gvmelle on 6 Dec 2025, 19:51
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|