Links block: links open 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
User avatar

Topic author
ReconMarine
Active Member
Posts: 36
Joined: 9. December 2009 09:20
phpBB.com User: ReconMarine

Links block: links open in new window

Post by ReconMarine »

Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge

What have you done before the problem was there?
nothing new

What have you already tryed to solve the problem?
ask the question here

Description and Message
The links block, when you click a link the link opens in the parent window.

I want the link to open in a new window.

Can I overcome this by using tags in the ACP where you load links? Or do you have to edit code to fix this?

Semper Fi
User avatar

Marc
Dev
Posts: 2504
Joined: 17. July 2008 21:08
phpBB.de User: marc1706
phpBB.com User: Marc
Location: Clausthal-Zellerfeld / München
Contact:

Re: Links block: links open in new window

Post by Marc »

Open styles/*yourstyle*/template/portal/block/links.html

Find:

Code: Select all

<a href="{link.URL}" title="{link.TEXT}">{link.TEXT}</a>
Replace with:

Code: Select all

<a href="{link.URL}" title="{link.TEXT}" target="_blank">{link.TEXT}</a>
By the way, after this the block will not be XHTML valid anymore.
User avatar

Topic author
ReconMarine
Active Member
Posts: 36
Joined: 9. December 2009 09:20
phpBB.com User: ReconMarine

Re: Links block: links open in new window

Post by ReconMarine »

Ok I am lost on the "valid" issue, please explain.

What issues will that create?

Thanks
User avatar

Mike
Former Team Member
Posts: 1862
Joined: 3. July 2008 23:59
Location: Schwarzwald / FDS
Contact:

Re: Links block: links open in new window

Post by Mike »

Maybe this can help you ;)
kein Support per PN / Messenger
no Support via PM / Messenger
User avatar

Topic author
ReconMarine
Active Member
Posts: 36
Joined: 9. December 2009 09:20
phpBB.com User: ReconMarine

Re: Links block: links open in new window

Post by ReconMarine »

Mike wrote:Maybe this can help you ;)
Mike I understand the "ideal" behind the validation issue, but my issue was.....I want my window to remain on MY page when I click a link I have created for someone elses page. My site isn't based on a consumer, or retail environment....so I think my question revolved around "Do I care if it validates or not?"

Semper Fi
User avatar

Mike
Former Team Member
Posts: 1862
Joined: 3. July 2008 23:59
Location: Schwarzwald / FDS
Contact:

Re: Links block: links open in new window

Post by Mike »

I dont think so.
If it helps, my page isnt valid at all too... ;)
kein Support per PN / Messenger
no Support via PM / Messenger
Locked

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