Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to strip BBCode in email notifications? #2538

Open
JN-Jones opened this issue Nov 30, 2016 · 3 comments
Open

How to strip BBCode in email notifications? #2538

JN-Jones opened this issue Nov 30, 2016 · 3 comments
Labels
b:1.8 Branch: 1.8.x s:confirmed Status: Confirmed. Retested and found the issue exists t:bug Type: Bug. An issue causing error / flaw / malfunction

Comments

@JN-Jones
Copy link
Contributor

Hello there,

I've got a problem with my installation of MyBB 1.8.6 and are unable to find a solution for it.

When people subscribe to posts and get email notifications, MyBB does not strip the My/BBCode out of it, so that a notification in an email e.g. the post part looks like this:

Code:[align=center]http://seraphimsl.com/wp-content/uploads/2016/02/TCF040216.jpg[/align]

[align=center]Merkmal dieses Events: Das Merkmal von The Chapter Four ist, das es vier Verkaufsräume gibt: einmal einen gefüllt mit Gachas, ein Raum ist vergünstigt um die Hälfte, einmal zahl 1 für 2 und in einem Raum kosten die Items unter 100 L$[/align]

[align=center]Dauer: bis 21. Februar[/align]
What can I do so that MyBB does strip those codes?

TIA.

Original thread: How to strip BBCode in email notifications?

@JN-Jones JN-Jones added b:1.8 Branch: 1.8.x t:bug Type: Bug. An issue causing error / flaw / malfunction s:confirmed Status: Confirmed. Retested and found the issue exists labels Nov 30, 2016
@Starpaul20 Starpaul20 modified the milestone: 1.8.9 Dec 8, 2016
@Stefan-MyBB Stefan-MyBB modified the milestones: 1.8.9, 1.8.10 Dec 15, 2016
@andrewjs18
Copy link
Contributor

andrewjs18 commented Dec 20, 2016

This is also an issue for PM email alerts, like so:

andrewjs18,

You have received a new private message on Your Forum from someuser:


[i]Thank you for closing this thread.[/i]

@Stefan-MyBB Stefan-MyBB modified the milestones: 1.8.10, 1.8.11 Jan 8, 2017
@Stefan-MyBB Stefan-MyBB modified the milestones: 1.8.11, 1.8.12 Apr 1, 2017
@Stefan-MyBB Stefan-MyBB modified the milestones: 1.8.12, 1.8.13 May 22, 2017
@Eldenroot
Copy link
Contributor

I am working on redesing for notification emails (html template with css support for a better look). My job is almost done, just few adjustments are needed. It would be nice to fix this issue, BBCode in emails looks ugly. I would like to fix that and pull a PR but I am not sure how to do that properly (my php coding skills are not good at all). Thank you in advance!

@Shade-
Copy link
Contributor

Shade- commented Sep 17, 2017

Missing from text_parse_message() (leaving here for future reference):

  • align
  • size
  • video

@Stefan-MyBB Stefan-MyBB modified the milestones: 1.8.13, 1.8.14 Nov 6, 2017
@dvz dvz removed this from the 1.8.14 milestone Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b:1.8 Branch: 1.8.x s:confirmed Status: Confirmed. Retested and found the issue exists t:bug Type: Bug. An issue causing error / flaw / malfunction
Projects
None yet
Development

No branches or pull requests

7 participants