Links Block in new window

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
el_Vindicador
Active Member
Posts: 13
Joined: 8. February 2008 17:16

Links Block in new window

Post by el_Vindicador »

My renquest its easy,...

Some mod to open the links (of Links Blck) in a new window??

thank!!

pd: i just installed the rc1 version....its awesome!!! very happy for the election of this portal!

Topic author
el_Vindicador
Active Member
Posts: 13
Joined: 8. February 2008 17:16

Re: Links Block in new window

Post by el_Vindicador »

if someone need it

in template/portal/blocks/links.html

search

Code: Select all

<li><a href="{link.URL}" title="{link.TEXT}>{link.TEXT}</a></li>
and replace with

Code: Select all

<li><a href="{link.URL}" title="{link.TEXT}" target="_blank">{link.TEXT}</a></li>
:D
User avatar

thomas.d
Former Team Member
Posts: 625
Joined: 19. January 2008 23:56
phpBB.de User: thomas.d
phpBB.com User: thomas.d
Contact:

Re: Links Block in new window

Post by thomas.d »

el_Vindicador wrote:if someone need it

in template/portal/blocks/links.html

search

Code: Select all

<li><a href="{link.URL}" title="{link.TEXT}>{link.TEXT}</a></li>
and replace with

Code: Select all

<li><a href="{link.URL}" title="{link.TEXT}" target="_blank">{link.TEXT}</a></li>
:D
Hola,

thanks for your suggestion.

But keep in mind that "Target" is not allowed in XHTML 1.0 Strict what the portal is based on!

Better (and still XHTML 1.0 Strict) is

Code: Select all

onclick="window.open(this.href); return false;"

what makes the same but does only work with JavaScript activated.

(viewtopic.php?p=737#p737)
Viele Grüße

Thomas

Deutsche Sprachdateien für
[Alpha] phpBB Calendar 0.0.8 (alightner) | [RC] phpBB Arcade 1.0.RC8 |
ACP Add User MOD 1.0.0 |

JirkaX
Translator
Posts: 67
Joined: 19. April 2008 14:47

Re: Links Block in new window

Post by JirkaX »

So in your opinion replacement should be

Code: Select all

<li><a href="{link.URL}" title="{link.TEXT}" onclick="window.open(this.href); return false;">{link.TEXT}</a></li>
yes?
User avatar

Ice
Former Team Member
Posts: 359
Joined: 20. January 2008 23:43
Location: England, United Kingdom

Re: Links Block in new window

Post by Ice »

That's correct. :)
Board3 Portal Dev & English Tech Support

JirkaX
Translator
Posts: 67
Joined: 19. April 2008 14:47

Re: Links Block in new window

Post by JirkaX »

works fine, thanks

Topic author
el_Vindicador
Active Member
Posts: 13
Joined: 8. February 2008 17:16

Re: Links Block in new window

Post by el_Vindicador »

hola!!

i moded...like my post...and works perfect!!

its wrong?
User avatar

thomas.d
Former Team Member
Posts: 625
Joined: 19. January 2008 23:56
phpBB.de User: thomas.d
phpBB.com User: thomas.d
Contact:

Re: Links Block in new window

Post by thomas.d »

el_Vindicador wrote:hola!!

i moded...like my post...and works perfect!!

its wrong?
Hi el_Vindicador,

it's not a question of right or wrong and sure your modding works.

The phpBB-Forum is written in compliance with the XHTML 1.0 Strict standard and so is the portal.

In this standard "Target" is not allowed as the user shall decide wether he opens a new window with a click a link.

The workaround with the JavaScript is according to the standard and it does what you intended.

So it would be better to use the Java instead of the "Target".
Viele Grüße

Thomas

Deutsche Sprachdateien für
[Alpha] phpBB Calendar 0.0.8 (alightner) | [RC] phpBB Arcade 1.0.RC8 |
ACP Add User MOD 1.0.0 |
Locked

Return to “board3 Portal 1.0.x - English Support”