URL BBcode

Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here.
Forum rules
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
User avatar
Nicholas the Italian
Registered User
Posts: 659
Joined: Mon Nov 20, 2006 11:19 pm
Location: 46°8' N, 12°13' E
Contact:

Re: URL BBcode

Post by Nicholas the Italian »

3247 wrote: Nowadays, as tabbed browsing has become more popular, it is extremly annoying: Opening a new window does, well, open a new window when the user actually wanted to reuse an existing tab in the existing window. But he can't just use that window and close the old one because the old one will likely contain the current browsing environment with multiple tabs.

Tabbed browsers should open "new windows" in new tabs (or let it be configured).
If they don't, that's browser's fault.

User avatar
goreSplatter
Registered User
Posts: 11
Joined: Mon Mar 19, 2007 9:44 pm
Location: Halle (Saale), Germany
Contact:

Re: URL BBcode

Post by goreSplatter »

There goes my sayin'...
There's only 10 kinds of people,
those that read binary and those who don't.

User avatar
TechieTW
Registered User
Posts: 1
Joined: Sat Oct 27, 2007 12:03 am
Location: Idaho, USA

Re: URL BBcode

Post by TechieTW »

I'm really new to BBcode and I simply want ALL links to open in a seperate window. So, what I did was modify bbcode.html line 36 as follows:

Code: Select all

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->
Inserting target="_blank"


I would love to add a custom BBcode to let the user decide. But until I figure out how to define it ALL links in posts will have to open in a seperate window. I found "common" BBcode information useful but I still believe that a "Target" to supplement the "URL" would be very useful. ;)

User avatar
jumborex
Registered User
Posts: 84
Joined: Wed Nov 08, 2006 12:33 pm
Location: Milano
Contact:

Re: URL BBcode

Post by jumborex »

TechieTW wrote:[...] I still believe that a "Target" to supplement the "URL" would be very useful. ;)
I think the same! But I also think that possibly one can define a Customer BBCode with a Target working in this way:
  1. If the target is defined, well: use it
  2. If the target is NOT reported, Ok, put no target inside.
Ok. I think this is possible using the customer definition for BBCodes (Posting->BBCodes), but I cannot do it myself: is somebody there who can suggest the way... :oops:
I have not failed. I've just found 10,000 ways that won't work.
(Thomas Alva Edison)

marcman
Registered User
Posts: 5
Joined: Wed Mar 01, 2006 4:39 am

Re: URL BBcode

Post by marcman »

goreSplatter wrote:
jumborex wrote: Note: By the way: do a HTML command exists to open a window in a new tag? I never have seen up to now! 8O
If a new tab is what you meant, then yes. There's a "command":

Code: Select all

<a href="http://www.phpbb.com/" target="_blank">www.phpbb.com</a>
That should do it. The target-Attribute also accepts these values:
  • _self - open link in the current window/tab
  • _top - when using framesets this link will kill all frames and open w/o frameset
  • _parent - almost the same as _top this will only kill the parent frameset
  • _blank - open in a new window
[/color]
Just what I was looking for.

OK, I made the BBCode change as was noted. Works perfectly.

That solves 1/2 the problem. One other item needs to be fixed related to this behavior.

In phpbb3, what about simple http://... without the URL tags that automatically turn to links in posts?

I also need those to open as _blank targets.

Anyone know the file and path with what I need to edit and where to add target="_blank"?

That would do it! :D

User avatar
darcie
Former Team Member
Posts: 189
Joined: Mon Mar 12, 2007 7:32 pm
Location: Davis, California
Contact:

Re: URL BBcode

Post by darcie »

Keep in mind that this topic is very old... the post you quoted is getting close to its second birthday. ;)

Instead, how about trying Knowledge Base - Links Opening New Windows?

marcman
Registered User
Posts: 5
Joined: Wed Mar 01, 2006 4:39 am

Re: URL BBcode

Post by marcman »

Will do! :D

Post Reply