<!-- IF --> BBcode

A selection of BBCodes for use on your phpBB3 Forums.
Post Reply
Candyman
Forum Member
Forum Member
Posts: 12
Joined: Sun May 30, 2010 4:04 pm

<!-- IF --> BBcode

Post by Candyman » Wed Oct 06, 2010 4:56 pm

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

theendfear
Forum Member
Forum Member
Posts: 10
Joined: Tue Oct 26, 2010 11:49 pm

Re: <!-- IF --> BBcode

Post by theendfear » Tue Nov 02, 2010 6:49 pm

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...

Post Reply