Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Diego Andrés on April 23, 2022, 02:11:22 PM

Title: Post Subject Length
Post by: Diego Andrés on April 23, 2022, 02:11:22 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=4326)

(https://smftricks.com/logos/logo.png) (https://smftricks.com/)

(https://img.shields.io/badge/License-MPL%202.0-248049) (https://img.shields.io/badge/Hooks%20Only-Yes-6041a3) (https://img.shields.io/badge/SMF-2.1-3f73a0)

Post Subject Length
Developed by Diego Andrés (https://smftricks.com/index.php?action=profile;u=1)



Introduction
Post Subject Length lets you adjust the length of the posts subject when posting.

Localization
(https://www.simplemachines.org/site_images/lang/english.gif) English

* Note about emails
Most email providers only allow up to 100 characters length in the subject, so please be aware of this issue. SMF does not currently truncate back the post suject before sending notifications.


Changelog (https://github.com/SMFTricks/Post-Subject-Length/blob/main/CHANGELOG.md)
GitHub (https://github.com/SMFTricks/Post-Subject-Length)
Title: Re: Post Subject Length
Post by: User2 on January 19, 2023, 10:50:53 AM
Hello.
I use this mod: Post Subject Length.
When the Russian language is used in the name of the topic and the length of the topic is more than 80 characters, then the name of the topic is distorted in the Thunderbird mail program (attached a screenshot).
If only English letters are used in the topic name, then there is no problem.
Title: Re: Post Subject Length
Post by: Diego Andrés on January 19, 2023, 11:32:45 AM
Could you provide a text sample to test it?
Title: Re: Post Subject Length
Post by: User2 on January 19, 2023, 11:55:07 AM
You can use any Russian text longer than 80 characters. For example: Ноутбук обладает всем необходимым для удобной и продуктивной работы как в офисе, так и во время поездок. Он выполнен в корпусе с компактными размерами и весом 1.3 кг. Благодаря HD экрану диагональю 13.3 дюйма отображается реалистичная картинка.
Title: Re: Post Subject Length
Post by: User2 on January 22, 2023, 01:44:36 AM
Diego Andrés, hello, will you make changes to your mod?
Title: Re: Post Subject Length
Post by: Diego Andrés on January 22, 2023, 10:11:14 AM
Haven't had time to investigate the issue.
Title: Re: Post Subject Length
Post by: shawnb61 on January 22, 2023, 01:42:07 PM
I took a quick peek, and using this mod, the 80 Cyrillic characters are honored on the subject, on replies, and even on alerts & emails sent.

The mod works as intended, and further, SMF is sending the full text via alerts & emails.

I suggest opening a support topic over at Thunderbird.

Below is the subject line of an email notification, showing 80 Cyrillic characters.

80russiancharsubject.png
Title: Re: Post Subject Length
Post by: User2 on January 22, 2023, 01:45:25 PM
shawnb61, a problem if the number of characters is more than 80.
In addition, the problem is not only in Thunderbird, the same problem is in the mail, which can be viewed in the browser.
Title: Re: Post Subject Length
Post by: DeadMan... on January 22, 2023, 01:53:06 PM
Personally, I for one have no idea why any person would need more than 80 characters for a post subject.
The subject is meant to be short, more a quick title, not a long post in itself.
Why not just have the members do like is done everywhere else, and just make a short title, then post whatever in the main post field?
Title: Re: Post Subject Length
Post by: Steve on January 22, 2023, 01:59:28 PM
I'm one that finds 80 to be too short so I've changed it to 100. Anything longer than that makes the topic list look tacky.
Title: Re: Post Subject Length
Post by: Aleksi "Lex" Kilpinen on January 22, 2023, 02:11:20 PM
Sorry for the off topic Diego, but this needs to be said.

@Participant You can stop abusing the report function now, or expect to take an involuntary break from the forum very soon. It is not up to you to decide what is allowed and what is not. Most of the team is already following every topic you are in, no need to report them.
Title: Re: Post Subject Length
Post by: shawnb61 on January 22, 2023, 02:50:02 PM
OK, I think I understand the challenge being reported now.

SMF applies a pretty strict 100 char limit on email subject lines.  (For reasons...)  Inappropriate truncation is happening to the encoded subject line somewhere along the line if you exceed that. 

Which can only happen when you override SMF's existing code.  Still rubbing my chin wondering if this is an SMF bug or not...

80russiancharsubject.png
Title: Re: Post Subject Length
Post by: User2 on January 27, 2023, 09:15:26 AM
I asked a question about the length of the header on another smf forum, they said that this is not a mod problem, but a problem of the SMF forum: first the header is encoded, and then it is cut off. And it should be the opposite.
It turns out that the mod developer will not be able to solve the problem.
Title: Re: Post Subject Length
Post by: Diego Andrés on January 27, 2023, 09:18:57 AM
It's not fixable for the mod.
If you don't want to use it, uninstall it.
Title: Re: Post Subject Length
Post by: User2 on January 27, 2023, 09:31:56 AM
Diego Andrés, will you not make changes to this mod?
I don't use this mod, because it distorts the subject title in email notifications.
Title: Re: Post Subject Length
Post by: Diego Andrés on January 27, 2023, 09:33:30 AM
There are no changes that I can make to it.
Title: Re: Post Subject Length
Post by: User2 on January 27, 2023, 09:43:45 AM
Aleksi "Lex" Kilpinen, so at the moment there is no solution to increase the length of the topic for the Russian language?
Title: Re: Post Subject Length
Post by: Diego Andrés on January 27, 2023, 09:46:35 AM
It's not a language issue FYI.
Some email providers limit subject characters to 250 characters, and others limit them to 100.
Title: Re: Post Subject Length
Post by: Aleksi "Lex" Kilpinen on January 27, 2023, 09:48:11 AM
I believe the team is looking in to changes allowing for this, but I make no promises. ( It would probably not lengthen the emailed text, but would avoid breaking it. )
Title: Re: Post Subject Length
Post by: User2 on January 27, 2023, 09:53:51 AM
Quote from: Diego Andrés on January 27, 2023, 09:46:35 AMIt's not a language issue FYI.
There is no such problem with English.
Title: Re: Post Subject Length
Post by: Lucarella on April 01, 2024, 03:15:16 AM
Hi Diego,
I also use this mod and it works well on new topics.
A problem occurs when you change the title of an old post, i.e. you are unable to bring the title beyond the SMF default 80 characters.

Can it be solved ?

Thank you
Title: Re: Post Subject Length
Post by: Diego Andrés on April 01, 2024, 08:54:07 AM
I'll have to take a look later and test that.
Title: Re: Post Subject Length
Post by: Diego Andrés on April 02, 2024, 08:23:45 PM
1.1.1 - 02 April 2024
Title: Re: Post Subject Length
Post by: Steve on April 03, 2024, 08:10:49 AM
Thanks Diego.  :)
Title: Re: Post Subject Length
Post by: Steve on April 04, 2024, 07:41:30 AM
Just an FYI:

Found another issue which may not be worth worrying about.

When looking at the topic list, if you double-click the line the topic title is on, the title becomes editable. However it's still limited to the original 80 characters.

I use this feature maybe once a month or less so like I said, it may not be worth worrying about.
Title: Re: Post Subject Length
Post by: Lucarella on April 07, 2024, 04:32:55 AM
Thanks Diego, I just installed the update and I inform you that it only works with the complete modification.
It doesn't work with quick edit
Title: Re: Post Subject Length
Post by: Diego Andrés on April 07, 2024, 03:28:15 PM
No it never has worked with it.
Might be possible, haven't checked as editing is an afterthought on this MOD.