Page 1 of 1

<!-- IF --> BBcode

Posted: Wed Oct 06, 2010 4:56 pm
by Candyman
Hey crew, here's a puzzle for ya that's doing my brain in, please help me understand.

I thought I could make a BBcode that relates to the PHPbb3 forum <!-- IF --> statements so i could make an effective private message system for the mChat.

However it seems the IF statements are ignored by the BBcode output for some reason?

Here's what I have tried:
BBcode usage

Code: Select all

[pm]{SIMPLETEXT1},{SIMPLETEXT2}[/pm]
HTML replacement:

Code: Select all

<!-- IF S_USERNAME eq "{SIMPLETEXT1}" -->
{SIMPLETEXT2}
<!-- ENDIF -->
Now, when using the pm tags the username is not displayed but the message is and everyone can see it?
1/ Why does this not work?
2/ Is there a way to make this work?
3/ If there is no way to make this work, is there some other way to do this?

Thanks in advance crew

Re: <!-- IF --> BBcode

Posted: Tue Nov 02, 2010 6:49 pm
by theendfear
phpbb does not allow php in the template,you can ability this option in your acp and it should works...
sorry for my bad english...