This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 17 - Pages: 2 [ 1 2 | Next ] - Last Post: 7 Dec 25, 00:42 Last Post By: JeffTucker Threads: [ Previous | Next ]
jeffkolker

Posts: 79
Registered: 27-Feb-2021
Map not remembering settings
Posted: 2 Dec 25, 04:22
 
  Click to reply to this thread Reply
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
Laza

Posts: 1,380
Registered: 6-Sep-2005
Re: Map not remembering settings
Posted: 2 Dec 25, 12:34   in response to: jeffkolker in response to: jeffkolker
 
  Click to reply to this thread Reply
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.
gvmelle

Posts: 20
Registered: 29-Jan-2004
Re: Map not remembering settings
Posted: 2 Dec 25, 14:38   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
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
Laza

Posts: 1,380
Registered: 6-Sep-2005
Re: Map not remembering settings
Posted: 2 Dec 25, 14:43   in response to: gvmelle in response to: gvmelle
 
  Click to reply to this thread Reply
Turn off Settings / Photoblogger / Main content / Map / Show map ...
gvmelle

Posts: 20
Registered: 29-Jan-2004
Re: Map not remembering settings
Posted: 2 Dec 25, 16:17   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Did that. The result is that the year folder doesn't have a map but the underlying albums have one.
Laza

Posts: 1,380
Registered: 6-Sep-2005
Re: Map not remembering settings
Posted: 2 Dec 25, 19:34   in response to: gvmelle in response to: gvmelle
 
  Click to reply to this thread Reply
Yes, this is how it works. The map only shows the images in the current folder.
gvmelle

Posts: 20
Registered: 29-Jan-2004
Re: Map not remembering settings
Posted: 2 Dec 25, 20:33   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
So, what if I don't want any map, but only the button underneath the pictures?
JeffTucker

Posts: 7,900
Registered: 31-Jan-2006
Re: Map not remembering settings
Posted: 2 Dec 25, 20:48   in response to: gvmelle in response to: gvmelle
 
  Click to reply to this thread Reply
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.)
Laza

Posts: 1,380
Registered: 6-Sep-2005
Re: Map not remembering settings
Posted: 3 Dec 25, 07:31   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
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.
JeffTucker

Posts: 7,900
Registered: 31-Jan-2006
Re: Map not remembering settings
Posted: 3 Dec 25, 14:39   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Attachment ss013061.png (37.0 KB)
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
gvmelle

Posts: 20
Registered: 29-Jan-2004
Re: Map not remembering settings
Posted: 4 Dec 25, 12:01   in response to: gvmelle in response to: gvmelle
 
  Click to reply to this thread Reply
Anybody any suggestion? And also: why isn't my API key for Google working anymore???

Edited by: gvmelle on 4 Dec 2025, 13:38
JeffTucker

Posts: 7,900
Registered: 31-Jan-2006
Re: Map not remembering settings
Posted: 4 Dec 25, 14:22   in response to: gvmelle in response to: gvmelle
 
  Click to reply to this thread Reply
gvmelle wrote:
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.)
gvmelle

Posts: 20
Registered: 29-Jan-2004
Re: Map not remembering settings
Posted: 6 Dec 25, 08:14   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
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
JeffTucker

Posts: 7,900
Registered: 31-Jan-2006
Re: Map not remembering settings
Posted: 6 Dec 25, 15:07   in response to: gvmelle in response to: gvmelle
 
  Click to reply to this thread Reply
Attachment keyError.png (14.1 KB)
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.
gvmelle

Posts: 20
Registered: 29-Jan-2004
Re: Map not remembering settings
Posted: 6 Dec 25, 18:52   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
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

Point your RSS reader here for a feed of the latest messages in all forums