[BBCode] Source of URL native BBCode (3.0.2)

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[BBCode] Source of URL native BBCode (3.0.2)

Post by Desiderius »

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

Code: Select all

[exturl]{URL}[/exturl]
HTML code W3C compliant

Code: Select all

<a href="{URL}" onclick="window.open(this.href); return false;">{URL}</a>
Help Line

Code: Select all

[exturl]enter here URL link to be opened in a new page[/exturl]
And all this works perfectly well.

Now, if I wish to add the alternate syntax

Code: Select all

[exturl={URL}]{SIMPLETEXT}[/exturl]
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 :)