Using HTML condition in a custom BB Code

Get help developing custom BBCodes or request one.
Post Reply
kubko
Registered User
Posts: 6
Joined: Sun Dec 31, 2017 10:11 pm

Using HTML condition in a custom BB Code

Post by kubko »

Hey, I'm trying to do [hide] bb code, which should hide text inside of the post for non-admin users.

So I added this into my [hide] tag:

Code: Select all

<!-- IF U_ACP -->{TEXT}<!-- ENDIF -->
However, this is not working. I have tried to apply that condition somewhere in my template and it worked here, but I have no idea, what's the problem with BBcode. Thank you very much.
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

Re: Using HTML condition in a custom BB Code

Post by JoshyPHP »

You'll need to write an extension for that. See https://area51.phpbb.com/docs/dev/exten ... parameters
I wrote the library that handles markup in phpBB 3.2+.
Post Reply

Return to “Custom BBCode Development and Requests”