Thread Locked This thread is locked - replies are not allowed.


This question is answered.


Permlink Replies: 11 - Pages: 1 - Last Post: 4 Nov 23, 16:27 Last Post By: JeffTucker Threads: [ Previous | Next ]
mrag

Posts: 263
Registered: 26-Jul-2003
Problems with the NewImages.htt page
Posted: 31 Oct 23, 20:31
 
Attachment laza1.jpg (54.5 KB)
I did not do an in-depth autopsy, but when I used images with a longer description/comment, the image became distorted. Maybe skip allowing any description? See attached image.
JeffTucker

Posts: 8,048
Registered: 31-Jan-2006
Re: Problems with the NewImages.htt page
Posted: 31 Oct 23, 20:41   in response to: mrag in response to: mrag
 
Attachment ss011866.png (1.2 MB)
I'm getting "panorama" thumbnails, even with just the file label.
mrag

Posts: 263
Registered: 26-Jul-2003
Re: Problems with the NewImages.htt page
Posted: 31 Oct 23, 20:52   in response to: JeffTucker in response to: JeffTucker
 
If you're not careful and don't specify limiting dates for "new images" you can end up with the same album you're creating.
Laza

Posts: 1,411
Registered: 6-Sep-2005
Re: Problems with the NewImages.htt page
Posted: 1 Nov 23, 06:47   in response to: mrag in response to: mrag
 
Yes, I am aware of this. The NewImages custom page just lists the images, it does not format them like normal thumbnails. The lightbox doesn't work either. I should have removed this until it's fixed.
mrag

Posts: 263
Registered: 26-Jul-2003
Re: Problems with the NewImages.htt page
Posted: 4 Nov 23, 08:30   in response to: Laza in response to: Laza
 
Attachment laza6.jpg (40.4 KB)
The 'reworked' NewImages.htt works almost great. I was able to drag some photos from my iCloud Photos folder on my Win10 into my project. Not sure why I anticipated trouble, nonetheless it went smoothly. However . . .

The titles/file names on the NewImages page needs some minor tweaking. Please see the attached.
Laza

Posts: 1,411
Registered: 6-Sep-2005
Re: Problems with the NewImages.htt page
Posted: 4 Nov 23, 09:16   in response to: mrag in response to: mrag
 
Ah, that must be some broken HTML. Can you please pass me the code or run it through a validator?
mrag

Posts: 263
Registered: 26-Jul-2003
Re: Problems with the NewImages.htt page
Posted: 4 Nov 23, 09:56   in response to: Laza in response to: Laza
 
JeffTucker

Posts: 8,048
Registered: 31-Jan-2006
Re: Problems with the NewImages.htt page
Posted: 4 Nov 23, 14:18   in response to: Laza in response to: Laza
 
I ran mrag's album through Total Validator, and it complains about a bunch of missing alt tags on images, and it doesn't like some of the CSS¹, but it didn't find any HTML errors. I was expecting something like mismatched tags, but no....

¹ The CSS it doesn't like is scrollbar-color: light and scrollbar-color: dark, which are supported only in Firefox, and -webkit-overflow-scrolling: touch and overflow-scrolling: touch, which aren't supported in any browser.
JeffTucker

Posts: 8,048
Registered: 31-Jan-2006
Re: Problems with the NewImages.htt page
Posted: 4 Nov 23, 14:22   in response to: JeffTucker in response to: JeffTucker
Correct
But a quick look at the page code reveals the problem!

This is just out there as plain text, to be displayed on the page:
data-pswp-srcset="slides/IMG_3876-1350w.jpg 1350w....
Long stuff. But it's not wrapped in anything, like, say, an <img> tag.

The validator thinks it's just text, so it doesn't know there's anything wrong. ;)
mrag

Posts: 263
Registered: 26-Jul-2003
Re: Problems with the NewImages.htt page
Posted: 4 Nov 23, 14:44   in response to: JeffTucker in response to: JeffTucker
 
Precisely what I was thinking. ;-)

Edited by: mrag on 4 Nov 2023, 10:24
Laza

Posts: 1,411
Registered: 6-Sep-2005
Re: Problems with the NewImages.htt page
Posted: 4 Nov 23, 16:15   in response to: mrag in response to: mrag
 
Thanks! I have changed from writing out with out.print() to collecting the output with sb.append(), and I missed one line. (line 98) The skin is updated now.

Edited by: Laza on 4 Nov 2023, 16:21
JeffTucker

Posts: 8,048
Registered: 31-Jan-2006
Re: Problems with the NewImages.htt page
Posted: 4 Nov 23, 16:27   in response to: Laza in response to: Laza
 
Yes, it seems much happier now. :)
Legend
Forum admins
Helpful Answer
Correct Answer

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