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!
Links Block in new window
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.
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.
-
Topic author - Active Member
- Posts: 13
- Joined: 8. February 2008 17:16
-
Topic author - Active Member
- Posts: 13
- Joined: 8. February 2008 17:16
Re: Links Block in new window
if someone need it
in template/portal/blocks/links.html
search
and replace with
in template/portal/blocks/links.html
search
Code: Select all
<li><a href="{link.URL}" title="{link.TEXT}>{link.TEXT}</a></li>
Code: Select all
<li><a href="{link.URL}" title="{link.TEXT}" target="_blank">{link.TEXT}</a></li>
-
- 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
Hola,el_Vindicador wrote:if someone need it
in template/portal/blocks/links.html
searchand replace withCode: Select all
<li><a href="{link.URL}" title="{link.TEXT}>{link.TEXT}</a></li>
Code: Select all
<li><a href="{link.URL}" title="{link.TEXT}" target="_blank">{link.TEXT}</a></li>
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 |
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 |
Re: Links Block in new window
So in your opinion replacement should be
yes?
Code: Select all
<li><a href="{link.URL}" title="{link.TEXT}" onclick="window.open(this.href); return false;">{link.TEXT}</a></li>
Re: Links Block in new window
works fine, thanks
-
Topic author - Active Member
- Posts: 13
- Joined: 8. February 2008 17:16
Re: Links Block in new window
hola!!
i moded...like my post...and works perfect!!
its wrong?
i moded...like my post...and works perfect!!
its wrong?
-
- 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
Hi el_Vindicador,el_Vindicador wrote:hola!!
i moded...like my post...and works perfect!!
its wrong?
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 |
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 |