Skip to:
Content
Pages
Categories
Search
Top
Bottom

Email subject line for notifications converting characters


  • Killerrabbit2
    Participant

    @killerrabbit2

    We have a couple of topics that have punctuation in them.

    One of them: “Hello, I,m…”

    If people are subscripted to this forum or post this is what they get in the subject line for the notification:

    Hello, I'm…

    Wordpress or bbPress is converting those characters to the html equivanant.

    So, “‘” converts to &#039 and “…” converts to m…

    This makes it really hard to read. Any way to fix this issue?

Viewing 2 replies - 1 through 2 (of 2 total)

  • Killerrabbit2
    Participant

    @killerrabbit2

    I can’t edit the top portion anymore but please see the second blockquote that shows what I am talking about, not the first block quote.


    endurox
    Participant

    @endurox

    I too had this issue and found countless other posts dated many years ago with no solution. I am using bbpress v2.5.4 and buddypress v2.1.1 on WordPress v4.1. I “resolved” this by editing my functions.php file within the bbpress plugin directory and replacing any character values with a blank. Good enough for me. This “solution” IS NOT RECOMMENDED as any update to bbpress is more than likely to overwrite it. Unless you don’t mind going back in and remembering to re-hack it after each update. No doubt it can be done better. The client just requested I get rid of the code values. Without further to do…

    GoTo: yoursite\wp-content\plugins\bbpress\includes\common\functions.php

    Between Lines 1090 and 1091 Add:

    
    $search_bbpress_titles = array("&# 039;", "&am p;", "&#82 11;", "&qu ot;"); // ' & - "
    $topic_title = str_replace($search_bbpress_titles, '', $topic_title);
    

    Then add the same two lines further down between Lines 1233 and 1234.

    NOTE: You will have to remove the spaces from the $search_bbpress_titles array line as I was unable to post without it parsing that line. Don’t know the coding on this form to post properly. Email me if you need the code.

    Looking forward to any other helpful input. No need to remind me how better you are at coding. :)

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