Forum Links to open in new tab - NOT BBCODE LINKS

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning

Forum Links to open in new tab - NOT BBCODE LINKS

Postby xtcskull » Fri Feb 20, 2009 2:13 pm

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
Last edited by xtcskull on Fri Feb 20, 2009 6:25 pm, edited 1 time in total.
xtcskull
Registered User
 
Posts: 29
Joined: Fri Feb 20, 2009 2:02 pm

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

Postby darcie » Fri Feb 20, 2009 5:20 pm

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.
User avatar
darcie
Moderator Team Member
Moderator Team Member
 
Posts: 4912
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin

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

Postby xtcskull » Fri Feb 20, 2009 5:33 pm

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?
xtcskull
Registered User
 
Posts: 29
Joined: Fri Feb 20, 2009 2:02 pm

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

Postby darcie » Fri Feb 20, 2009 5:52 pm

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?
User avatar
darcie
Moderator Team Member
Moderator Team Member
 
Posts: 4912
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin

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

Postby Mick » Fri Feb 20, 2009 6:22 pm

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.
Remember, it's not the magic wand it's the magician! All unsolicited PM's will be trashed.
Image
User avatar
Mick
Support Team Member
Support Team Member
 
Posts: 12996
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff - UK

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

Postby xtcskull » Fri Feb 20, 2009 6:27 pm

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
xtcskull
Registered User
 
Posts: 29
Joined: Fri Feb 20, 2009 2:02 pm

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

Postby darcie » Fri Feb 20, 2009 6:46 pm

OK. :) One solution for this was given recently here: http://area51.phpbb.com/phpBB/viewtopic ... 71&t=31522
User avatar
darcie
Moderator Team Member
Moderator Team Member
 
Posts: 4912
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin

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

Postby xtcskull » Sat Feb 21, 2009 9:00 am

Thank you so much, this is working! ;) Thanks
xtcskull
Registered User
 
Posts: 29
Joined: Fri Feb 20, 2009 2:02 pm

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

Postby BFW2009 » Sat Mar 21, 2009 9:17 am

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
BFW2009
Registered User
 
Posts: 33
Joined: Mon Jan 26, 2009 10:00 pm

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

Postby Mick » Sat Mar 21, 2009 9:35 am

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)
Remember, it's not the magic wand it's the magician! All unsolicited PM's will be trashed.
Image
User avatar
Mick
Support Team Member
Support Team Member
 
Posts: 12996
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff - UK

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

Postby BFW2009 » Wed Mar 25, 2009 7:27 pm

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
BFW2009
Registered User
 
Posts: 33
Joined: Mon Jan 26, 2009 10:00 pm

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

Postby Mick » Thu Mar 26, 2009 4:26 pm

No, you will have to use the mod, it's not difficult.

In the meantime you could tell your users to use right click ;)
Remember, it's not the magic wand it's the magician! All unsolicited PM's will be trashed.
Image
User avatar
Mick
Support Team Member
Support Team Member
 
Posts: 12996
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff - UK


Return to 3.0.x Support Forum

Who is online

Users browsing this forum: 5hocK, Google Adsense [Bot], whatdafrak, Yandex [Bot] and 76 guests