[BBCode] Source of URL native BBCode (3.0.2)
Posted: 31 Dec 2014, 12:53
Hello World,
New at BBCodes, I would like to create a BBCode similar to the native URL BBCode in phpBB 3.0.2.
But this code would allow a link to be opened in a new tab of the browser.
I did this:
BBCode
HTML code W3C compliant
Help Line
And all this works perfectly well.
Now, if I wish to add the alternate syntax
I do not succeed to make it work.
Any clues, anyone?
The source of the native URL BBCode could help.
Thanks and a
HAPPY NEW YEAR
New at BBCodes, I would like to create a BBCode similar to the native URL BBCode in phpBB 3.0.2.
But this code would allow a link to be opened in a new tab of the browser.
I did this:
BBCode
Code: Select all
[exturl]{URL}[/exturl]
Code: Select all
<a href="{URL}" onclick="window.open(this.href); return false;">{URL}</a>
Code: Select all
[exturl]enter here URL link to be opened in a new page[/exturl]
Now, if I wish to add the alternate syntax
Code: Select all
[exturl={URL}]{SIMPLETEXT}[/exturl]
Any clues, anyone?
The source of the native URL BBCode could help.
Thanks and a
HAPPY NEW YEAR