This question is answered. Helpful answers available: 0. Correct answers available: 1.


Permlink Replies: 9 - Pages: 1 - Last Post: 6 Jun 24, 12:03 Last Post By: JerryM Threads: [ Previous | Next ]
JerryM

Posts: 61
Registered: 19-Apr-2004
New ver. of Tiger deleteted all custom captions in "Folder" and "Light Box"
Posted: 16 May 24, 14:53
 
  Click to reply to this thread Reply
Hi dear Laszlo, thank You for constant updating of Your marvellous Tiger !

But last update deleted existing custom captions (Folder, Light Box).
There are saved in jalbum-settings.jap, but they are coded for PHP.

Could You please be so nice and encode it for me ?
Sorry, I'm a bit out of use in PHP.

skin.imageCaptionTemplate=<div class\="comment"><small>Filename\:   ${fileName}</small> \n<br/>\n\n<ja\\\:if exists\\\="Headline"><small>Headline\:   </small><%\= meta? meta.get("Iptc.Headline") \: "" %></ja\\\:if>\n<br/>\n\n<small>Description\:   </small><b>${comment}</b>\n<br/>\n\n<small>Location\:   </small>\n<%\= meta? meta.get("Iptc.Sub-location") \: "" %>\n, \n<%\= meta? meta.get("Iptc.City") \: "" %>\n, \n<%\= meta? meta.get("Iptc.Province/State") \: "" %>\n, \n<%\= meta? meta.get("Iptc.Country/Primary Location Name") \: "" %>\n<br/>\n\n<small>Keywords\:   </small><%\= meta? meta.get("Iptc.Keywords") \: "" %>\n<br/>\n\n<%\= meta? meta.get("Keywords") \: "" %>${Keywords}\n\n</div>


Comment in Light Box should look like this:
https://cross-press.net/Docu/CROATIA/2023.05.06-MajcinDan-Svetice/index.htm#img=2023.05.06_12.24.36.JPG
(Btw., this is about charity association that takes care about abounded children and mothers suffering violence.)

Thank You, Jerry
Laza

Posts: 1,516
Registered: 6-Sep-2005
Re: New ver. of Tiger deleteted all custom captions in "Folder" and "Light Box"
Posted: 16 May 24, 19:32   in response to: JerryM in response to: JerryM
Helpful
  Click to reply to this thread Reply
Ah, I thought this wouldn't happen. I tested custom captions too.
<div class="comment"><small>Filename: ${fileName}</small><br>
<ja:if exists="Headline"><small>Headline: </small><%= meta? meta.get("Iptc.Headline") : "" %><br></ja:if>
<small>Description: </small><b>${comment}</b><br>
<small>Location: </small><%= 
meta? [ 
	meta.get("Iptc.Sub-location"), 
	meta.get("Iptc.City"), 
	meta.get("Iptc.Province/State"), 
	meta.get("Iptc.Country/Primary Location Name") 
].filter(Boolean).join(", ") : "" 
%>
<br>
<small>Keywords: </small><%= (meta? meta.get("Iptc.Keywords") || meta.get("keywords") : "") || keywords || "" %>
</div>

I've edited it a bit to make it more readable.
RobM

Posts: 3,950
Registered: 4-Aug-2006
Re: New ver. of Tiger deleteted all custom captions in "Folder" and "Light Box"
Posted: 16 May 24, 19:42   in response to: JerryM in response to: JerryM
Helpful
  Click to reply to this thread Reply
You could always save custom code in the project’s notes, then if changes are lost you can copy and paste to recover them - assuming any CSS code doesn’t get broken by a skin update.
https://jalbum.net/help/en/jAlbum/Settings/Advanced#Notes
JerryM

Posts: 61
Registered: 19-Apr-2004
Re: New ver. of Tiger deleteted all custom captions in "Folder" and "Light Box"
Posted: 16 May 24, 23:04   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
JerryM

Posts: 61
Registered: 19-Apr-2004
Re: New ver. of Tiger deleteted all custom captions in "Folder" and "Light Box"
Posted: 16 May 24, 23:05   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Thank You Rob, good idea !
Jerry
Laza

Posts: 1,516
Registered: 6-Sep-2005
Re: New ver. of Tiger deleteted all custom captions in "Folder" and "Light Box"
Posted: 21 May 24, 14:46   in response to: JerryM in response to: JerryM
 
  Click to reply to this thread Reply
I have released a new version now, which should be more cautious with the custom captions.
JerryM

Posts: 61
Registered: 19-Apr-2004
Re: New ver. of Tiger deleteted all custom captions in "Folder" and "Light Box"
Posted: 22 May 24, 23:44   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Thank You Laszlo, but it didn't work for me.
New version deleted custom captions in "Folder", "Images" and "Light Box" again.
Laza

Posts: 1,516
Registered: 6-Sep-2005
Re: New ver. of Tiger deleteted all custom captions in "Folder" and "Light Box"
Posted: 23 May 24, 10:34   in response to: JerryM in response to: JerryM
 
  Click to reply to this thread Reply
Damn. I've tested it with various albums and worked for me. The problem is jAlbum loads the user interface twice after each other and loads the variables from several sources (SkinModel, headless-settings.jap, user variables, hints.jap, style hints, jalbum-settings.jap) - and it's not clear to me in what order. Perhaps not in the same order every time?
Laza

Posts: 1,516
Registered: 6-Sep-2005
Re: New ver. of Tiger deleteted all custom captions in "Folder" and "Light Box"
Posted: 23 May 24, 16:31   in response to: JerryM in response to: JerryM
 
  Click to reply to this thread Reply
What if you manually choose the "Custom" option? The custom caption box is used by the skin, after all.
JerryM

Posts: 61
Registered: 19-Apr-2004
Re: New ver. of Tiger deleteted all custom captions in "Folder" and "Light Box"
Posted: 6 Jun 24, 12:03   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Hi dear Laszlo !

Sorry for delay in response.
Now it works for me, thank You !

It also works when I update Chameleon to Tiger. :)
Thanks again !

Sinc., Jerry
Legend
Forum admins
Helpful Answer
Correct Answer

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