Thalassa CMS logo

Thalassa CMS

Thalassa 0.3.30

Tue Dec 3 20:37:09 2024 UTC

Thalassa 0.3.30 released. This release is mainly devoted to the new comment displaying style, named thread. With this style, top-level comments are displayed on the page being commented, and for each top-level comment, a separate page is created to hold replies on that comment, if any. The Agenda template, from now on, allows to choose the style for comments, either “plain” (list), or tree (the default one), or the new thread style. The new comment style also affected the macroprocessor, where the %[cmt:replies] and %[cmt:threadpg] functions are added.

Besides that, this release fixes a problem related to the dirname(3) function. The problem didn't let Thalassa work on OpenBSD due to a slightly different implementation of the function.

And the last thing to mention: the %[rfcdate: ] macro now adds “UTC” to the text representation of the date.

This release doesn't (hopefully) introduce any incompatibilities with earlier releases; it should be safe to upgrade both the Thalassa version and the Agenda template. If you'd like to give a try to the support of different comment styles, then take a look at the appearance.ini file, find the [options cmt] sectioin and copy it to your appearance.ini, then edit as appropriate.


From Ilya (unverified) Wed Dec 4 10:33:29 2024 UTC pencil

Thread style not working

I just tried setting pages_cmt_style:custom & guestbook_style:custom to thread for fresh Agenda template, but the comments are displayed on the same page, as if I put list.

Btw, is there a way to use the new style for Smoky?

Anyway, thanks for the release!

parent From Andrey Stolyarov profile Wed Dec 4 12:22:58 2024 UTC pencil

Re: Thread style not working

Looks strange for me, I can't reproduce this. To help me understand what's going on:

  • Do you try all this, actually, on a guestbook page or on a page generated from [pageset pages]?
  • What if you put "tree" there? Does it change anything?
  • If you set them to "thread", then on the main page (the one being commented) within each comment a link should appear, like "0 replies", "3 replies" etc., next to the "reply" link. Does this happen?
  • Take a look into your target tree, are the per-thread html files actually generated?

Well, about the Smoky template, actually no, I didn't plan to port this functionality to Smoky. The Smoky template contains a lot of mess already. May be I recreate it one day from scratch, under another name, just to keep its look&feel, but as of now Smoky is a bit too messy to get active maintenance.

parent From Ilya (unverified) Wed Dec 4 13:00:40 2024 UTC pencil

Re: Re: Thread style not working

Okay, after further testing, it actually works, but only when there are more than one top-level comments on the page. If there is only one comment, the replies get displayed on the same page. I don't know if its a bug or a feature.

parent From Andrey Stolyarov profile Wed Dec 4 13:17:24 2024 UTC pencil

Re: Thread style not working

WOW 8-()

No, it's not a feature, that is, I didn't have any intention for this. Thank you for reporting, I'll look into it a bit later, I'm terribly busy now.

UPD: Fixed, see the version 0.3.31 (available at the downloads page). It was a very stupid off-by-one.


© Andrey V. Stolyarov, 2023, 2024