This question is answered.


Permlink Replies: 6 - Pages: 1 - Last Post: 23 Jan 25, 04:22 Last Post By: jret Threads: [ Previous | Next ]
jret

Posts: 167
Registered: 5-Mar-2009
Neptune: couple of questions
Posted: 21 Jan 25, 18:43
 
  Click to reply to this thread Reply
One of my resolutions for the new year has been to give a little more TLC to my web sites. Doing so has reminded me of a couple of issues that I hoped to solve but, alas, my coding skills have not yet developed to the point that I can fix things appropriately.

LINK to site. I frequently update this site with new pics and like to change the theme image at least monthly. Unless I'm missing something the cache must be cleared for the user to see the changed theme image. Not a problem for me but I have some family/friends who visit my site who still haven't grasped the concept of clearing the cache. My current workaround is to rename ja-theme.jpg to ja-theme21.jpg (today's date) and editing the links in index.html and infopage.html. It's a little clunky but seems to get the job done. I'm wondering if this method is OK or is there a better, easier solution. Thoughts?

Second issue. The home page displays nicely on my 24" Dell and my 13" iPad Pro but not so much on my iPhone 16. The center logo displays lower on the screen even though there should be enough space between the navleft & navright icons, even when in portrait orientation. I've tinkered with width settings without success. Is there a solution or is it the nature of the beast when trying to fit everything on the smaller display of a phone?

FWIW, Neptune is a dream to use. Having the ability to customize & modify is just the icing on the cake and has allowed me to gradually improve some of my skills. Definitely thought provoking when one wants to customize beyond what's already so well provided. A huge thanks for that.
JeffTucker

Posts: 8,433
Registered: 31-Jan-2006
Re: Neptune: couple of questions
Posted: 21 Jan 25, 19:28   in response to: jret in response to: jret
Correct
  Click to reply to this thread Reply
Attachment offcenter.png (1.1 MB)
jret wrote:
...the cache must be cleared for the user to see the changed theme image.

It's not just the theme image. Without refreshing cache, visitors might be seeing old thumbnails, old titles, and so on.

My current workaround is to rename ja-theme.jpg to ja-theme21.jpg (today's date) and editing the links in index.html and infopage.html. It's a little clunky but seems to get the job done. I'm wondering if this method is OK or is there a better, easier solution.

For the theme image, that will certainly work, but I wouldn't want to saddle myself with that kind of ongoing manual tinkering.

Thoughts?

You need to keep beating on your visitors to hit F5 or CTRL-F5 once in a while. Anyone who doesn't do that habitually is at risk of seeing stale content, and not just on jAlbum album pages.

The center logo displays lower on the screen even though there should be enough space between the navleft & navright icons, even when in portrait orientation.

I actually prefer the appearance with the logo set down, rather than plastered against the top of the browser window, even on a desktop. But...

The skin can't really anticipate what device is going to be used, and, more important, what nav icons there might be up there, including things like external links, folder menus, up arrows, music icons, and so on. All it can safely do on a small screen is float the nav elements and move the logo down to avoid collisions.

But in this case, since you're not loading up the nav boxes with stuff, and your logo is small, you can just brute-force it:
.ja-logo {padding-top: 0px !important;}
That will override the script that runs at display time. The downside is that, on a page that does have other nav icons, the logo might not be centered, as in the attached screenshot. If I were you, I'd just let the logo move down, as designed.
RobM

Posts: 3,989
Registered: 4-Aug-2006
Re: Neptune: couple of questions
Posted: 21 Jan 25, 20:40   in response to: jret in response to: jret
Helpful
  Click to reply to this thread Reply
jret wrote:
LINK to site. I frequently update this site with new pics and like to change the theme image at least monthly. Unless I'm missing something the cache must be cleared for the user to see the changed theme image. Not a problem for me but I have some family/friends who visit my site who still haven't grasped the concept of clearing the cache. My current workaround is to rename ja-theme.jpg to ja-theme21.jpg (today's date) and editing the links in index.html and infopage.html. It's a little clunky but seems to get the job done. I'm wondering if this method is OK or is there a better, easier solution. Thoughts?
Could you friends and family be shown how to use private browsing?
Firefox, for example:
From the menu (hamburger icon) select settings.
Scroll down to the privacy section and select data management. You could also select close private tabs when leaving private browsing.
Under clear private data section enable cache.
Click on the mask icon top left of the browser to go private.

No cache data will be saved.
jret

Posts: 167
Registered: 5-Mar-2009
Re: Neptune: couple of questions
Posted: 22 Jan 25, 02:06   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Thanks for your usual, incredibly quick reply that was also helpful, informative, and was the solution. The brute force method was what I was searching for (and completely went the wrong direction) and it solves the issue in this particular setting. It would not work at all on my other two sites, as they are set up differently and the "fix" would create worse issues.

Agreed on the cache suggestions. I dug a little deeper and the main culprit appears to be Safari - can't imagine why (roll-eyes). On my Mac Studio M2 Max, CTRL-F5 works as expected in several browsers I tested, but does not play nicely with Safari. Could be something I'm doing (or not doing) but I suspect Safari is guiltier than I am.

Thanks again ... Neptune really rocks.
jret

Posts: 167
Registered: 5-Mar-2009
Re: Neptune: couple of questions
Posted: 22 Jan 25, 02:08   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Thanks for your reply. Will look further into your suggestions. Read my reply to Jeff - Safari explains a lot.
RobM

Posts: 3,989
Registered: 4-Aug-2006
Re: Neptune: couple of questions
Posted: 23 Jan 25, 00:40   in response to: jret in response to: jret
Helpful
  Click to reply to this thread Reply
To avoid caching with Safari:
First check for and delete any cached data for your site
Menu>Safari>Settings>Privacy>Manage website data.
Enter 'jret' in the search field, if any result is found select it and then click on 'Remove'.
Click 'Done'.

Now for Privacy:
Menu>File>New Private Window.
Enter the url for your site.
View the album.
When done either quit Safari or if preferred close the private window and then quit.

No cache data will be saved. You can check this by opening Safari again and searching the website data, as above. No result will be found for jret site.

If you open a new tab in the private window you get a new private tab.
jret

Posts: 167
Registered: 5-Mar-2009
Re: Neptune: couple of questions
Posted: 23 Jan 25, 04:22   in response to: jret in response to: jret
 
  Click to reply to this thread Reply
Thanks … very helpful.
Legend
Forum admins
Helpful Answer
Correct Answer

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