Page 1 of 2

Link Button New Window BBCode

Posted: 06 Mar 2010, 13:31
by BBCode Bot
Link Button New Window BBCode

The Link Button New Window BBCode puts a Link Button New Window BBCode in the topics of Your phpBB3 Board.
Links are opened in a new window.
Image

BBCode:

Code: Select all

[link2]{INTTEXT},{URL}[/link2]
HTML:

Code: Select all

<input class="button2 btnlite" type="button" value="{INTTEXT}" onclick="window.open('{URL}', '_blank')" title="{URL}" />
Helpline:

Code: Select all

Link2 Button: [link2]Linktext,URL[/link2]
Example:

Code: Select all

[link2]StarTrekGuide,http://startrekguide.com/community/[/link2]
Demo:
[link2]Startrekguide,http://startrekguide.com/community/index.php[/link2]

Re: Link Button New Window BBCode

Posted: 05 Apr 2010, 12:16
by VID1973
Morning all.....a must be doing something wrong....as I cannot get this code to work.

Is txt only to be placed in the 1st part of the code?

Cheers

Vid

Re: Link Button New Window BBCode

Posted: 05 Apr 2010, 12:54
by peugeot405
the first part is de name of de website, de second part is de actual link (url)

Re: Link Button New Window BBCode

Posted: 05 Apr 2010, 13:13
by VID1973
Thats what I thought...but still does not seem to be working.

Re: Link Button New Window BBCode

Posted: 05 Apr 2010, 13:28
by VID1973
nope...tried it again here is what I have done...can anywone see anything wrong.

[link2]{RIVERCLYDEFISHING},{www.riverclydefishing.com}[/link2]

<input class="button2 btnlite" type="button" value="{INTTEXT}" title="{URL}" onclick="window.location.href='{URL}'" />

Link2 Button: [link2]Linktext,URL[/link2]

Re: Link Button New Window BBCode

Posted: 05 Apr 2010, 13:55
by peugeot405
try this

Code: Select all

[link2]RIVERCLYDEFISHING,http://www.riverclydefishing.com[/link2]
the linktext and url are without the {}

Re: Link Button New Window BBCode

Posted: 05 Apr 2010, 14:26
by VID1973
[link2]RIVERCLYDEFISHING,http://www.riverclydefishing.com[/link2]

I have changed to this...but still not working

Cheers

Re: Link Button New Window BBCode

Posted: 05 Apr 2010, 17:06
by Stoker
This bbcode will only work with phpBB version 3.0.7 or higher because it uses INTTEXT
If you are using earlier versions than 3.0.7 you can use SIMPLETEXT instead.

Re: Link Button New Window BBCode

Posted: 05 Apr 2010, 18:11
by VID1973
Have we got the old code somewhere?

Re: Link Button New Window BBCode

Posted: 05 Apr 2010, 18:20
by Stoker
Just replace INTTEXT with SIMPLETEXT in bbcode and html.