viewtopic.php?p=165135#p165135
But (I admit) cannot understand well what is to do for working with it.
I see the short description in the relate page of ACP --> Posting --> BBCodes
phpBB3 wrote: Tokens are placeholders for user input. The input will be validated only if it matches the corresponding definition. If needed, you can number them by adding a number as the last character between the braces, e.g. {USERNAME1}, {USERNAME2}.
In addition to these tokens you can use any of lang string present in your language/ directory like this: {L_<stringname>} where <stringname> is the name of the translated string you want to add. For example, {L_WROTE} will be displayed as "wrote" or its translation according to user’s locale]
Perhaps because I'm not English speaking, this is not clear enogh for me.
Question is: May I use any word as a Token, or a Token should be a system defined word?
I hope to be more clear with an example.
Imagine I would try to make a BBCode installing images with the word running around it. This means, I think, an HTML as per:
Code: Select all
<div align="left"><p><img src="/whatyouwant/gear.png" alt="" align="left">Try this text!</p></div>
- An alignment definition
- The image path
Code: Select all
[imagealign={ALIGN}]{PATH}[/imagealign]
Code: Select all
<div align="{ALIGN}"><img src="{PATH}" alt="" align="{ALIGN}"></div>
Thanks.