• Resolved jcraftatl

    (@jcraftatl)


    Hi! when the individual messages are sent for new activity posts etc, the HTML is stripped from the message… no formatting… no images, etc…

    The emails look AWEFUL. and they are missing important information, like images, etc…

    Is there a way to correct this? Ideally, within the plugin itself? Perhaps create a toggle that turns the HTML on and off?

    I would greatly appreciate the message sent to users to looks like the original formatting and include details like attached images…

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Boone Gorges

    (@boonebgorges)

    Sorry you’re so unhappy with the way the plugin works.

    There are some complexities to making this the default behavior in the short term, though I’ll consider it in the medium- to long-term.

    In the meantime, here’s a line of PHP that will disable the stripping of HTML tags in content:

    remove_filter( 'ass_clean_content', 'strip_tags', 4 );

    When you say “include details like attached images”, I assume you’re talking about embedded items, not actual email attachments. If so, then preserving HTML tags will likely be sufficient. If you mean proper email attachments, perhaps originating with discussion forum attachments or something, it’s vastly more complex.

    Thread Starter jcraftatl

    (@jcraftatl)

    Thanks so much for getting back to me.

    And I apologize if I came across “fully unhappy”… I greatly appreciate the plugin and what it does. I have just been very confused by why this one specific “All Email” notification was stripping the HTML out..

    All the other notifications look very nice out of the box…

    The “remove filter” code you provides seems to be working in a general sense… Thank you for this relatively simple solution.

    And I understand that attaching images would be more complex… it’s just the practical concern that if someone were to post only an image, that users would receive an “empty” notification and likely not know why…

    Thanks for you quick reply, and for the work you have done on this plugin. ??

    Plugin Author Boone Gorges

    (@boonebgorges)

    No apologies necessary, I was just taken aback by the AWFULness of your initial post ??

    I’ve opened a GitHub ticket to track progress on the allowing-HTML-in-user-generated-content project: https://github.com/boonebgorges/buddypress-group-email-subscription/issues/231 As you can see, there’s a lot of moving parts. But you’re not the first person to ask for it – I’ve implemented it a couple of times for clients – so there’s a decent chance it’ll get built at some point.

    Same problem here. Added the ‘remove filter’ line to the functions.php file, didn’t work—emails are still arriving unformatted. There must be a conflict, as it worked initially, then stopped working. Any ideas on possible conflict?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTML being struipped from {{usermessage}}’ is closed to new replies.