Add-on Nested qoutes

Sunka

Well-known member
I need that someone create addon for nested quotes.

In XF1 we could change code in library/XenForo/ControllerPublic/Post.php and we can have nested quotes in posts.

Find:
Code:
$quote = $postModel->getQuoteTextForPost($post);

Replace:
Code:
$quote = $postModel->getQuoteTextForPost($post, -1);

I could pay 10 dollars for that
 
Do you mean nested quotes like:

c03524fa9c.png


If so, that's already in the core in XF2 (if it wasn't in XF1).
 
@Sunka

Ah OK, I see now. The wording was unclear to me initially.

Go to XF2_root/src/XF/Str/Formatter.php
Comment out line 671.

So the function should now look like:
1aaf5edee5.png
That is working
Thanks @Robust

Any downside of this?

Also, there is no way to do that with addon?
I have to comment that line every time when I upgrade xenforo
 
Any downside of this?
Well, the purpose of that line is to strip quotes from BBCode when preparing a quote (hence to prevent the nested quotes effect you are aiming to keep).

The function above is called 3 times:
  • Conversations
  • Threads
  • Posts
It's also likely 3rd party add-ons would use this.

As long as the above functionality is what you want in all 3 of these areas, then no, there's no downsides to you.

Also, there is no way to do that with addon?
I have to comment that line every time when I upgrade xenforo
\XF\Str\Formatter can be extended so yes, you can do this exact thing with an add-on (I would recommend using an add-on). You'd need to enable development mode, create an add-on and extend the class and override the function.
 
As long as the above functionality is what you want in all 3 of these areas, then no, there's no downsides to you.
Yep, if it only allow nested quotes, than that is what I want.

\XF\Str\Formatter can be extended so yes, you can do this exact thing with an add-on (I would recommend using an add-on). You'd need to enable development mode, create an add-on and extend the class and override the function.
It is beyond my knowledge. :confused:
 
\XF\Str\Formatter can be extended so yes, you can do this exact thing with an add-on (I would recommend using an add-on). You'd need to enable development mode, create an add-on and extend the class and override the function.

Anyone have time and knowledge to do this little addon and share with us?
 
Top Bottom