Forum 9

Bookkeeping => Bugs and Feature Requests => Topic started by: Skirmisher on Apr 10, 2025, 09:11 PM

Title: The format of notification emails could use some improvement
Post by: Skirmisher on Apr 10, 2025, 09:11 PM
It's always hard to parse out the text of the post from the rest of the email template, mainly because "The text of the reply is shown below:" only has a single line break after it... Having two links at the top is also really distracting, especially the huge unsubscribe link which really belongs below the post text (might even want to do that with the topic link as well, but I don't feel as strongly about that one).

Those are the main pain points for me, but here's a few other notes:

As an example of notifications that are nicer to read, I generally like how GitHub's notification emails are formatted. For new threads (issues/PRs/etc.) and comments:

Now, I of course don't expect to drastically alter how SMF's emails work (especially with downstream patches). But just shuffling the existing pieces around would be a great improvement on its own.
Title: Re: The format of notification emails could use some improvement
Post by: viviridian on Apr 11, 2025, 12:04 AM
I wonder whether this is something that packages can fiddle with, or if it'll require directly modifying smf. Not sure if there have been any modifications to this smf or if it's vanilla with packages on top

I also don't know if there are limits on packages. back when I was doing stuff with smf I just edited php in prod
Title: Re: The format of notification emails could use some improvement
Post by: snow on Apr 12, 2025, 06:41 AM
Quote from: viviridian on Apr 11, 2025, 12:04 AMI wonder whether this is something that packages can fiddle with, or if it'll require directly modifying smf. Not sure if there have been any modifications to this smf or if it's vanilla with packages on top

Any modifications other than the "lightbox" patch are in the F9 repo (https://git.2ki.xyz/hell-labs/f9). Or rather, should be. (If you find any inconsistencies, please let me know, because that's not intentional!)

They all "compile" to the SMF mod .tar.gz archives, and then can be installed through the admin panel.

As for the email templates, they can be modified per-theme, specifically in Themes/$theme/languages/EmailTemplates.english.php (a github link to the default (https://github.com/SimpleMachines/SMF/blob/release-2.1/Themes/default/languages/EmailTemplates.english.php), for reference).

Quote from: viviridian on Apr 11, 2025, 12:04 AMI also don't know if there are limits on packages. back when I was doing stuff with smf I just edited php in prod

That depends. If you're working with hooks, you're stuck with wherever the SMF devs decided to stick a call_integration_hook call, but at least it'll survive minor updates. There's a way to patch files via XML, but... at that point I'd rather just use patchsets.