Comments (10)
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.
OK, thank you for your feedback!
from thank-you-like-system.
So this is a mybb core related?
from thank-you-like-system.
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.
Maybe disallowing parser option mycode by default and parsing the message before cutting.
from thank-you-like-system.
@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.
@Eldenroot Please check the modification fbe254f
from thank-you-like-system.
@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.
@Eldenroot for testing you dont need to reinstall ... just replace plugin files on server.
from thank-you-like-system.
Closing as complete.
from thank-you-like-system.
Related Issues (20)
- Restructure the plugin's files HOT 1
- Refactor, update, test, and rename the converter.php script HOT 1
- Can I get a list of all the variables I can use? HOT 1
- [Question] Upgrade from 2.1 to 3.4 HOT 1
- Freezing when I give a like out HOT 1
- Add a new "sort by" option into forumdisplay_threadlist HOT 1
- Compatibility with PHP 8.0/8.1? HOT 1
- Introduce files deletion feature HOT 3
- Variables with stats in boardstats table index HOT 1
- Problems after upgrading to PHP 8 HOT 7
- how to add total like threads in forumdisplay_thread template? HOT 1
- Add the `tyl_tnumtyls` column back in HOT 1
- `{1}` not being replaced in jGrowl popup messages on adding/removing tyls
- PHP warnings on post preview
- PHP 8 warning: Undefined property: MyLanguage::$thankyoulike
- Update MyAlerts formatter for new MyAlerts hook `myalerts_register_client_alert_formatters` HOT 1
- PHP 8 warnings at ACP ยป User Group Promotions ยป Add New Promotion
- PHP 8 warnings - "Undefined array key" - when previewing when posting as guest
- Traces!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thank-you-like-system.