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 » Sun Dec 31, 2017 10:15 pm

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: 909
Joined: Mon Jul 11, 2011 12:28 am

Re: Using HTML condition in a custom BB Code

Post by JoshyPHP » Mon Jan 01, 2018 4:02 am

You'll need to write an extension for that. See https://area51.phpbb.com/docs/dev/exten ... parameters
I wrote the thing that does BBCodes in 3.2.

Post Reply

Return to “Custom BBCode Development and Requests”

Who is online

Users browsing this forum: No registered users and 4 guests