Page 1 of 1

Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Fri Feb 20, 2009 2:13 pm
by xtcskull
Hello, I ve searched everywhere for this but I cannot find any solution. What I want is to make forum links to open in new tab. Meaning not just for me, but for everyone visiting my forums. By this I do not mean the post links, but the forums that I chose to be links in my website. I really need this because it is disturbing when visitors click a forum link and it opens in the same window.

Thanks

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Fri Feb 20, 2009 5:20 pm
by darcie
Are you meaning you want to force new tabs instead of new windows? IIRC, tabbed browsing is still a browser dependent feature. You can force a new window with target="_blank", but no such code exists to make a new tab. There are sometimes browser settings to open links set to open in a new window in a tab instead. But your own board's forums opening in a new window is not standard in phpBB; they should open in the same window. You may want to double check or rethink the edits done to those URLs.

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Fri Feb 20, 2009 5:33 pm
by xtcskull
What I meant was to open in new window. Or whatever your browser does. For example firefox openes new windows in new tabs. Internet explorer doesn't some times. So basically I meant to open in New window. Is t here any .php file I can edit? Or shall I add target="_blank" when puting a forum link? I ll try target="_blank" and let you know.

EDIT: Nop that doesnt work, ofc it wouldnt because it only accepts a link, not any coding.

So what shall I do?

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Fri Feb 20, 2009 5:52 pm
by darcie
OK, I am confused by this statement in your first post which sounds like you do NOT want new windows to open when a forum link is clicked. :?
xtcskull wrote:I really need this because it is disturbing when visitors click a forum link and it opens in a new window.
You want for the forums on your site to open a new window? Or do you want the link-type forums that go to external sites to open in a new window? Can you be more specific about exactly what you want?

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Fri Feb 20, 2009 6:22 pm
by Mick
Using target="_blank" depends on how your browser is set up. Firefox will automatically generate a new tab and some browsers will open a new browser window.

In most browsers, including Firefox, you can set it how you want in the setup.

Note: Right clicking the link gives you the option of a new browser or new tab.

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Fri Feb 20, 2009 6:27 pm
by xtcskull
darcie wrote:OK, I am confused by this statement in your first post which sounds like you do NOT want new windows to open when a forum link is clicked. :?
xtcskull wrote:I really need this because it is disturbing when visitors click a forum link and it opens in a new window.
You want for the forums on your site to open a new window? Or do you want the link-type forums that go to external sites to open in a new window? Can you be more specific about exactly what you want?
Sorry my mistake, I meant it is disturbing because it opens in same window*. Again, my mistake.
So basically I need link-type forums that go to external sites to open in new window. Thanks

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Fri Feb 20, 2009 6:46 pm
by darcie
OK. :) One solution for this was given recently here: http://area51.phpbb.com/phpBB/viewtopic ... 71&t=31522

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Sat Feb 21, 2009 9:00 am
by xtcskull
Thank you so much, this is working! ;) Thanks

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Sat Mar 21, 2009 9:17 am
by BFW2009
Hi,

Where do I find: forumlist_body.html ???

I've searched thru all my forum files & can't find it.

With regards to this link: http://area51.phpbb.com/phpBB/viewtopic ... 71&t=31522 I can't ask my question in that forum cause they've locked it.

& can someone please post the coding: to open this sample link: [ url = http://www.php.com] http://www.php.com [/url] in another tab (without using right click) or window?

Yes I've deliberately created spaces in the url so that you can see the bbcode, what I want to know is what additional code do I add to get the required result?

As the other poster says target="_blank" doesn't work.

Thanx in advance.

TK

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Sat Mar 21, 2009 9:35 am
by Mick
forumlist_body.html is in: /styles/yourstyle/template

The BBcode:

Code: Select all

[url]www.url.com[/url] 
won't open a new window/tab but there is a mod to do that.

Knlowledge Base - Links Opening New Windows

target="_blank" does work but it is HTML and doesn't conform to XHTML 1.0 Strict-validation rules anyway (you can use it in your HTML files it won't hurt anything)

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Wed Mar 25, 2009 7:27 pm
by BFW2009
BFW2009 wrote:
Mixstar wrote:won't open a new window/tab but there is a mod to do that.
Excluding the mod, can any registred member do it just by adding additional code to each individual post that he or she makes? If so what is the code?

To be even more specific what's the bbcode equivalent of target="_blank" ???

Thanx in advance,

TK

Re: Forum Links to open in new tab - NOT BBCODE LINKS

Posted: Thu Mar 26, 2009 4:26 pm
by Mick
No, you will have to use the mod, it's not difficult.

In the meantime you could tell your users to use right click ;)