Page 1 of 1

Can urls be opened in new window?

Posted: 29 Feb 2012, 12:27
by Martin S
Each time I click a link from a post, it nearly always opens the url in the same window, therefore taking me away from PC. I would have thought keeping users on the site would be a bigger benefit than sending them elsewhere? I do find it frustrating to have to navigate back once I've finished browsing a site that has been posted (an example would be viewtopic.php?f=29&t=35403
Personally, I would much rather it opened in a new window. So I was wondering if it is possible (if no-one thinks its a bad idea) to set it so that any links are opened in a new window?

Martin

Re: Can urls be opened in new window?

Posted: 29 Feb 2012, 12:41
by Richard B
Don't we just have to right-click the link and select "open in new window" or open in new tab"?

Re: Can urls be opened in new window?

Posted: 29 Feb 2012, 12:56
by Silurus
Or if you have a multi-button mouse, you could always configure one of the buttons to open a link in a new window/tab.

Re: Can urls be opened in new window?

Posted: 29 Feb 2012, 13:13
by MatsP
Altneratively, CTRL-clicking, also opens the link in a new window.

I'm not sure how easy it is to make phpBB add "target='_blank'" to urls...

Edit: Refer to http://www.phpbb.com/kb/article/links-o ... w-windows/
Edit2: And http://www.phpbb.com/community/viewtopi ... &t=1104105

--
Mats

Re: Can urls be opened in new window?

Posted: 29 Feb 2012, 13:14
by Mike_Noren
Richard B wrote:Don't we just have to right-click the link and select "open in new window" or open in new tab"?
Yes. Also if you've got a mouse with three buttons/scrollwheel clicking the link with the middle button automatically opens in new tab.

Re: Can urls be opened in new window?

Posted: 01 Mar 2012, 07:57
by Martin S
OK, think it must just be me then! :) Maybe I'm just lazy :ymblushing: :-p
I only mrntioned it because on most other sites, clicking a link will nearly always open in a new window, and so I never consider using the right (or ctrl) and click unless I think about it.
I'll try and get into the habit of ctrl+click in future.
Thanks
Martin

Re: Can urls be opened in new window?

Posted: 01 Mar 2012, 08:37
by Jools
I think that's a lot of people being helpful and giving you advice on how to achieve this given the way the site is. It's actually my intention that it does open offsite links in new tabs/windows.

Jools

Re: Can urls be opened in new window?

Posted: 01 Mar 2012, 08:41
by Jools
MatsP wrote:Altneratively, CTRL-clicking, also opens the link in a new window.

I'm not sure how easy it is to make phpBB add "target='_blank'" to urls...

Edit: Refer to http://www.phpbb.com/kb/article/links-o ... w-windows/
Edit2: And http://www.phpbb.com/community/viewtopi ... &t=1104105
OK, so this is fine, but it breaks link monetization (viglink) which doesn't work if onlick javascript is used. A solution that uses target='_blank' is required. Shouldn't be that tricky though! ;-)

Jools