Skip to:
Content
Pages
Categories
Search
Top
Bottom

Notification emails content issue

  • @orangeturtle1000

    Participant

    Hi!

    When the forum sends out an email to members the email body contains   HTML code. Instead of adding a space between the two lines it ads   . The reply looks normal on the forum page and on the backend.

    For example:

    This is a test message.

     

    This is a test message.
     

     

    Topic Link:…….
    ———–

    You are receiving this email because you subscribed to a forum.

    Login and visit the topic to unsubscribe from these emails.

    Thank you for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • @robin-w

    Moderator

    hmmm…not sure why – not a general issue, but you can amend emails using

    bbPress Custom Notification Emails

    @orangeturtle1000

    Participant

    Hi Robin,

    Thanks for the feedback, however the plugin you have suggested has not been updated in 5 years. I would refrain from using it as old plugins could hide security vulnerabilities and from what I can see it is also not tested to work with the latest WP updates.

    Do you have any other suggestions?

    Thanks

    @robin-w

    Moderator

    sorry, maintaining plugins is a hell of a chore, and many abandon them.

    Only one I know, and still works

    @itsmifred

    Participant

    Hi orangeturtle ! that was 3 years ago, did you find a way?

    @robin-w

    Moderator

    ok, so this should take them out

    add_filter( 'bbp_subscription_mail_message' , 'rew_strip_nbsp', 40 , 1 );
    add_filter( 'bbp_forum_subscription_mail_message' , 'rew_strip_nbsp', 40 , 1  );
    
    function rew_strip_nbsp ($message) {
    $message = str_replace (' ' , '', $message ) ;
    return ($message) ;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar