"new reply" email t...
 
Notifications
Clear all

wpForo 1.x.x [Closed] "new reply" email template - bug when post contains @username in the first line

2 Posts
2 Users
0 Reactions
688 Views
Posts: 42
Topic starter
(@nican)
Trusted Member
Joined: 5 years ago

Hello,

ย 

ย 

This is my default "new reply" email template

=========================

Ciao [member_name],
una nuova risposta รจ stata aggiunta a una discussione che segui - [topic]. [reply_title]

[reply_desc]


Sei non desideri piรน ricevere notifiche per questa discussione, usa il link qui sotto. [unsubscribe_link]

=========================

ย 

But when the reply text contains someone 's username (@somebody) in the first line, I think some conflict happens and this is what I receive instead:

ย 

=========================

Ciao [member_name],
una nuova risposta รจ stata aggiunta a una discussione che segui - [topic]. [reply_title]

[reply_desc][unsubscribe_link]

=========================

ย 

in the above example the reply description is shorter comparing to what usually is, and the unsubscribe link is attached right to the end of (causing some users to actually unsubscribe by mistake).

ย 

Thanks

1 Reply
Sofy
Posts: 4773
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @nican,

Please put the following code in your active theme functions.php file and check again:ย 

add_filter('wpforo_email_notification_post_body_length', '__return_zero');