Sorry, That works in the Template files but NOT as a BBCode. BBCode HTML replacement occurs after the HTML templates are read, not before, so that code would just be ignored and will just be sent to the browser.In the template you would use:MCP condition only works on index, viewtopic and viewforum.Code:
<!-- IF U_MCP or U_ACP -->// your HTML<!-- ENDIF -->
If you are looking to do something else or make this work in posting pane explain what you want more precisely.
And It does read that the OP wants a BBCode.
For instance, using that to attempt to hide text via a BBCode for instance resulted in outputing the following into my browser (found via inspect element):
Code:
<div class="content"><!-- IF U_MCP or U_ACP -->This should be hidden.<!-- ENDIF --></div>
Statistics: Posted by [Dimetrodon] — Wed Oct 16, 2024 6:11 am