Future fix Custom bbcodes are cites as html replacement not bbcode

Affected version
2.1.5

Azaly

Active member
I got custom bbcode:
[reply=post_number]@User_name[/reply]
with HTML replacement:
{text} <a href="/talk/goto/post?id={option}" data-xf-click="attribution" data-content-selector="#post-{option}"><i class="fas fa-level-up-alt"></i></a>

If I quote post with this code it would be inserted as plain text and bbcodes of HTML replacement instead of custom bbcode itself or trimmed version without link on icon. Maybe it possible to add some css class to element which are trimmed in quote?

Untitled-1.jpg
 
Last edited:

Chris D

XenForo developer
Staff member
I believe this will be the case if you use the "select to quote" feature where you highlight the post content and then click "Reply".

Due to the way this function works, it isn't really feasible at this time for it to convert the selected text into the raw BB code. We have to attempt to read which text is selected, and then somehow convert that to BB code. We do that for a number of our built in BB code but it isn't currently possible with custom BB code.

If you use the "Reply" link in the bottom corner of the post, that will pull the post content from the database and display it as intended.

For now, I'll move this to future fix as I have some vague ideas of how we might want to tackle that issue in the future.
 
Top