1 (edited by berVi 2006-05-13 13:34)

Topic: open links in new tab/window

i think it was much better to open posted links in a new window instead of the current.

and do this by default.

i saw a workaround here:
http://forum.arminvanbuuren.com/

i know it's really easy, only need to add a target="_blank" supplement to the a href tag.

Re: open links in new tab/window

there are lots of topics about this, basically
It is not valid xhtml strict to use target="_blank"
It is not desirable to force the user to open the link in a new window, if they want to open it in a new window, they can by middle or right click

3 (edited by berVi 2006-05-13 16:18)

Re: open links in new tab/window

Connorhd wrote:

there are lots of topics about this, basically
It is not valid xhtml strict to use target="_blank"
It is not desirable to force the user to open the link in a new window, if they want to open it in a new window, they can by middle or right click

ok it was just an example....

i think it is. a user who reads a thread usually dont want to leave the messages and then always go back to messages after finished browsing the site the link was pointing to.
and it is annoying to always right click - open link in new tab...

phpbb,vbulletin,ipb etc opens them in new window, punbb is the first one i met that opens them in the same window. couldn't i be right?

4 (edited by Smartys 2006-05-13 16:25)

Re: open links in new tab/window

No tongue
It's not a matter of right and wrong, it has to do with giving the user choice. With PunBB's way the user has choice, whereas the other way the user doesn't smile
Plus, as Connor also said, without javascript you would have invalid XHTML
And personally I don't think it's annoying to have to open a new window if you want one: I just hit Ctrl and then click to load a new tab tongue

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

5

Re: open links in new tab/window

Smartys wrote:

No tongue
It's not a matter of right and wrong, it has to do with giving the user choice. With PunBB's way the user has choice, whereas the other way the user doesn't smile
Plus, as Connor also said, without javascript you would have invalid XHTML
And personally I don't think it's annoying to have to open a new window if you want one: I just hit Ctrl and then click to load a new tab tongue

hmm.

what about a switch about this in the admin pane?

Re: open links in new tab/window

http://punbb.org/forums/viewtopic.php?id=4135
http://punbb.org/forums/viewtopic.php?id=11002
http://punbb.org/forums/viewtopic.php?id=10223
http://punbb.org/forums/viewtopic.php?id=8165
http://punbb.org/forums/viewtopic.php?id=9167
http://punbb.org/forums/viewtopic.php?id=8051
http://punbb.org/forums/viewtopic.php?id=6355
http://punbb.org/forums/viewtopic.php?id=5740
http://punbb.org/forums/viewtopic.php?id=5591
http://punbb.org/forums/viewtopic.php?id=5560

As i said before, this has been dicussed alot of times. Maybe you should read through those threads.

Re: open links in new tab/window

berVi wrote:

phpbb,vbulletin,ipb etc opens them in new window, punbb is the first one i met that opens them in the same window. couldn't i be right?

It's one of the many qualities of PunBB. And one of the many defects of these others softwares.

8 (edited by fhd_21 2006-05-22 22:21)

Re: open links in new tab/window

Smartys wrote:

No tongue
It's not a matter of right and wrong, it has to do with giving the user choice. With PunBB's way the user has choice, whereas the other way the user doesn't smile
Plus, as Connor also said, without javascript you would have invalid XHTML
And personally I don't think it's annoying to have to open a new window if you want one: I just hit Ctrl and then click to load a new tab tongue

As berVi said:

berVi wrote:

i think it is. a user who reads a thread usually dont want to leave the messages and then always go back to messages after finished browsing the site the link was pointing to.
and it is annoying to always right click - open link in new tab...

So, if it's a matter of choise, then most user useually wants most links to auto-open in a new win, and for those who don't they can just open the link then close the topic's win by r-c n' close! Wouldn't that be easier?

This way, less annoynes will face users! smile

فهد

Re: open links in new tab/window

berVi, instead of giving you a lecture I'll actually answer your question.

Its a very simple one line tweak.

Edit the file: include/parser.php
Find the handle_url_tag function
change the last line in this function from:
return '<a href="'.$full_url.'">'.$link.'</a>';
to
return '<a href="'.$full_url.'" target="_blank">'.$link.'</a>';

This may be frowned upon and not recommended but this is how you do it.

10

Re: open links in new tab/window

extension:

    <id>show_links_blank</id>
    <title>Show links in new window</title>
    <version>1.1</version>
    <description>Open all links from posts, signatures and user websites in new windows</description>
    <author>YonasH</author>

also solves that problem

http://rapidshare.com/files/183360759/s … 1.zip.html