Disable quoting of a media site


Well-known member
So I have made a new media site definition and when it get's quoted in another post , it throws a whole bunch of errors...this is only when it is quoted though.

I am in need of a way to either:

disable quoting of a specific 'media=mediasite'
change the contents of the bbcode itself so it renders as a link or something else...even nothing would be fine.

Can anyone point me in the right direction?

Jake Bunce

XenForo moderator
Staff member

Extend XenForo_ControllerPublic_Post::actionQuote or XenForo_Model_Post::getQuoteTextForPost. That should allow you to operate on the quoted text to add plain tags around any media tags.