Giter VIP home page Giter VIP logo

Comments (10)

lairdshaw avatar lairdshaw commented on July 29, 2024

I doubt that this issue has anything to do with MyBB core or core version, but perhaps I'm mistaken. It seems to be caused by the "Trophy post character cut-off" setting being set to a value other than zero, such that for this particular trophy post, the closing tags for [size] and [font] are cut off, meaning that the parser then renders the opening tags as-is, since it can't parse them.

The fix would probably best be handled - if at all - in core, rather than in this plugin: a sort of "auto-insert any missing closing MyCode tags prior to rendering" feature. That's probably not such an easy feature to implement though.

from thank-you-like-system.

Eldenroot avatar Eldenroot commented on July 29, 2024

OK, thank you for your feedback!

from thank-you-like-system.

Eldenroot avatar Eldenroot commented on July 29, 2024

So this is a mybb core related?

from thank-you-like-system.

lairdshaw avatar lairdshaw commented on July 29, 2024

It's a general problem that if we cut off closing tags, the parser doesn't render the message as if those closing tags were there - instead, it renders the opening tags as plain text. We could try to fix this ourselves, but better would be a solution in core which would reusable for others. Perhaps an alternative solution is rendering the message to plain text rather than to HTML. IIRC, that's how message fragments are rendered in search results.

from thank-you-like-system.

SvePu avatar SvePu commented on July 29, 2024

Maybe disallowing parser option mycode by default and parsing the message before cutting.

from thank-you-like-system.

Eldenroot avatar Eldenroot commented on July 29, 2024

@SvePu this idea is good, we can just display text, we do not need any formating of text here. It is just a part of text. Could you please make a PR?

from thank-you-like-system.

SvePu avatar SvePu commented on July 29, 2024

@Eldenroot Please check the modification fbe254f

from thank-you-like-system.

Eldenroot avatar Eldenroot commented on July 29, 2024

@SvePu - I would like to, but if I update to the latest version I will have to redo all my template modifications - see #302

I am going to install a test board for this, need some time.

Thank you!

from thank-you-like-system.

SvePu avatar SvePu commented on July 29, 2024

@Eldenroot for testing you dont need to reinstall ... just replace plugin files on server.

from thank-you-like-system.

Eldenroot avatar Eldenroot commented on July 29, 2024

Closing as complete.

from thank-you-like-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.