AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] 2.0.x: Notifications truncated

11 Posts
3 Users
3 Reactions
2,766 Views
Posts: 243
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@berndg)
Reputable Member
Joined: 7 years ago
[#23096]

Hi, 

a minor problem: notifications for users who subscribed to a topic are truncated, and I cannot find the place where to change this, documentation for this art is still under construction. 

Could anyone help out with a hint?

The page I need help with
wpForo Version
2.0.5
WordPress Version
6.1

10 Replies
Chris
Posts: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 years ago

Hi @berndg,

Can you provide an example screenshot?


3 Replies
(@berndg)
Joined: 7 years ago

Reputable Member
Posts: 243
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@chris Hi, thanks for caring. Please find the attached screenshot, it ends with the three dots in the notification-mail, but the text is longer.

 Bildschirmfoto 2022 08 16 um 13.03.37

Chris
(@chris)
Joined: 5 years ago

Famed Member
Posts: 3610
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@berndg,

can't log in your website. Fix that and let me know.


(@berndg)
Joined: 7 years ago

Reputable Member
Posts: 243
Chris
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@chris How can I send you the credentials? Or you simple register with a username and password.


VereK
Posts: 522
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@verek)
Honorable Member
Joined: 8 years ago

Surely the notification email is supposed to be truncated? Otherwise it's theoretically possible to receive an 8000 word post in the email....


5 Replies
(@berndg)
Joined: 7 years ago

Reputable Member
Posts: 243
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@verek Thanks, very helpful. Was not that way before in 1.9.x.


VereK
(@verek)
Joined: 8 years ago

Honorable Member
Posts: 522
VereK
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@berndg 

Don't recall the notices being the full post in 1.9.x.

Have you tried the [post_body] short code in settings?


(@berndg)
Joined: 7 years ago

Reputable Member
Posts: 243
VereK
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@verek I tried both, post_body and topic_body. Did not see any difference, unfortunately.


Chris
(@chris)
Joined: 5 years ago

Famed Member
Posts: 3610
VereK
VereK
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@berndg,

Solution by inserting the code in Themes functions.php file

Add the below code at the end(bottom) of the current active theme functions.php file

Option one: open functions.php file from wp-content > themes > current active theme.

Option Two: Go to Dashboard > Appearance Theme File Editor, select Theme Functions(functions.php) file from Theme Files Bar.

Please mention that the code can be lost after updating or changing the theme.

add_filter( 'wpforo_email_notification_post_body_length', function(){ return 0; } );

Use 0 for disabling the limits of the symbols or Limit the symbols with positive number(example 100)

Solution by using Code Snippets Plugin

  1. Install and Activate Code Snippets plugin
  2. Go to Dashboard > Snippets > Add New.
  3. Insert the code in code field:
  4. Select Run snippet everywhere Radio and save the snippet.

Check that the new created snippet is active from Dashboard > Snippets > All Snippets.


(@berndg)
Joined: 7 years ago

Reputable Member
Posts: 243
VereK
VereK
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@chris Hi, thanks for caring. Snippet is ready and waiting for a testmail to come 😎


Share: