[BBCode] Source of URL native BBCode (3.0.2)

Mods, snippets and styles postet and supported by the users
Forum rules
As the forum title says this is for User Contributions
Post a support request in this forum and you will be banned!
Desiderius
BBCoder I
BBCoder I
Posts: 1
Joined: 31 Dec 2014, 10:41
BBCodes: 1

[BBCode] Source of URL native BBCode (3.0.2)

Post by Desiderius » 31 Dec 2014, 10: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

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 :)