Posts:
3,982
Registered:
4-Aug-2006
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
26 Jul 23, 11:05
in response to: M-i-c-h-a
|
|
|
|
How did you add the Newimages template?
albumfiles.txt contains
Info.htt 1636355113
Vortraege.htt 1624464469
Impressum.htt 1636303160
-Contact.htt 1636355113
-BG-Top-1350.jpg 1641569120 1591006336
NewImages.htt C:\Users\Master\AppData\Roaming\JAlbum\skins\Tiger\templates\Newimages.htt 1642775414
The skin’s own templates should have $SKIN_TEMPLATES_DIR instead of the path to the templates folder.
|
|
|
Posts:
123
Registered:
7-Nov-2021
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
26 Jul 23, 13:31
in response to: RobM
|
|
|
|
I don't know, I started to use jAlbum more than one year before. How can I set it to the right way?
|
|
|
Posts:
8,334
Registered:
31-Jan-2006
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
26 Jul 23, 13:54
in response to: M-i-c-h-a
|
|
|
|
In the Explore window, just delete Newimages.htt, and add it again. You'll have to reset the options - double-click on the newly-added version of the template.
|
|
|
Posts:
8,334
Registered:
31-Jan-2006
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
26 Jul 23, 14:01
in response to: JeffTucker
|
|
|
|
Laza, the jAlbum core needs to be able to fix this problem in a programmatic way, so that if a user has entered his own information for one of the template files, particularly something like About.htt or Contact.htt, he's not faced with either manually editing albumfiles.txt, or deleting and re-adding the template, which causes him to lose his entries. You need to have a chat with David.
|
|
|
Posts:
123
Registered:
7-Nov-2021
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
26 Jul 23, 14:27
in response to: JeffTucker
|
|
|
|
Thank you for the detailed instruction.
I deleted the old one, loaded a new template and double clicked to open it. I could not detect a reset, only that I had to type everything in again with the new template. But in the end everything is as before, no titles and I can't open the images - neither in the local preview nor online.
|
|
|
Posts:
3,982
Registered:
4-Aug-2006
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
26 Jul 23, 15:38
in response to: M-i-c-h-a
|
|
|
|
Try making a simple project f a couple of folders with a few small images and the template. If that doesn’t work zip it and post it here, or if too large provide a link.
|
|
|
Posts:
8,334
Registered:
31-Jan-2006
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
26 Jul 23, 16:48
in response to: RobM
|
|
|
Try making a simple project f a couple of folders with a few small images and the template. If that doesn’t work zip it and post it here, or if too large provide a link.
Just tried that, and it works fine. So, something deeper happening here. We'll have to leave this one to Laza, I'm afraid. 
|
|
|
Posts:
1,510
Registered:
6-Sep-2005
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
26 Jul 23, 20:17
in response to: JeffTucker
|
|
|
|
I guess some of the database files got broken. If one of the data1.json files has an error, the skin cannot go through all the folders and drops this error.
|
|
|
Posts:
1,510
Registered:
6-Sep-2005
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
26 Jul 23, 20:21
in response to: M-i-c-h-a
|
|
|
|
Can you please upload an album that exhibits this error, with Settings / Tiger / Advanced / Debug mode = ON?
|
|
|
Posts:
123
Registered:
7-Nov-2021
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
26 Jul 23, 21:17
in response to: Laza
|
|
|
|
I "make album" with debugmode=on and published it. It's online now.
Good luck.
|
|
|
Posts:
1,510
Registered:
6-Sep-2005
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
27 Jul 23, 08:05
in response to: M-i-c-h-a
|
|
|
This is really odd.
The images in the album are all JPG's, meanwhile in the NewImages.html they are referenced as PNG's in the database link.
data-path="Bienen/Hylaeus/Hyaleus-angustatus_m_12-06-23.png"><a class="thumb" ...><img src="Bienen/Hylaeus/thumbs/Hyaleus-angustatus_m_12-06-23.jpg"
I tried adding a PNG file to my test album to check why this happens, but PNG's are properly referenced as PNG's even for the thumbnails.
Either jAlbum does something weird in ao.getPathFromRoot() - i.e. it returns a non-existent file reference, or perhaps somehow the page code got changed after the album generation.
|
|
|
Posts:
123
Registered:
7-Nov-2021
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
27 Jul 23, 08:20
in response to: Laza
|
|
|
|
I have a folder structure with original photos in PNG format, from there jAlbum load the images. So far I understand jAlbum convert this images to JPG for web use. Finally only JPG images are uploaded. It looks like finally the wrong format names are used.
I have two folders - "Fotos" for source and "jAlbum\Wildbienen Galerie\" for output all Album files.
Should I send you my whole project, the two folders? If yes, I could send it to you per email based file transfer.
|
|
|
Posts:
1,510
Registered:
6-Sep-2005
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
27 Jul 23, 10:07
in response to: M-i-c-h-a
|
|
|
|
Do you have the Settings / Images / Advanced / Force JPEG thumbnails or Force JPEG images turned on? It seems jAlbum referring to these images in a mixed way: sometimes with JPG other times with PNG extension. I don't know if I can fix this from the skin or if is this something to be fixed in jAlbum. Anyway, turning off these options will fix this bug.
|
|
|
Posts:
123
Registered:
7-Nov-2021
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
27 Jul 23, 10:25
in response to: Laza
|
|
|
Right, it "works" if I disable force JPG. Looks like we almost caught the bug.
But I get PNG and not JPG anymore. Also wrong files are shown. I set a limit of 100 days but get images shown from last year.
It it a bug of the jAlbum core code? Should I report it again at an other section of the forum or do you talk with the core team?
|
|
|
Posts:
1,510
Registered:
6-Sep-2005
|
|
|
|
Re: Wish: 'latest photos' functionality (-> NewImages.htt not right working)
Posted:
27 Jul 23, 10:40
in response to: M-i-c-h-a
|
|
|
|
It's not really a bug. Probably jAlbum needs the function this way when it processes the input folder. It's a drag that skins cannot use the same function during the Make album, as it returns an invalid file path in the output folder. I will try to circumvent this in the skin.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|