enlaces externos en foro phpbb3 se abren en una nueva ventan

Cuando cliko en un enlace externo de mi foro publicado en un mensaje,este se abre en la misma ventana en vez de hacerlo en una nueva, por lo cual el visitante se sale de mi sitio,alguien sabe como hacer que esto no ocurra?
Gracias
Eso lo estabamos investigando varios del foro con Jorgens, pero Jorgens como seha ido de vacaciones...
Por ahora no tenemos resultados, si lo descubrimos te avisamos :wink:
Y si alguien sabe que lo diga :lol:
Ok, yo solo llevo una semana con esto del foro y pensaba que había configurado algo mal, peros si me dices que tambien os pasa avosotros.
Intentaré averiguar algo sobre el tema ya diré algo si lo soluciono.
Un saludo
buscando he encontrado esto, esta en ingles yo por mi poca experiencia ni me atrevo a probarlo, alguien lo podria traducir y/o probrarlo yo lo haria,pero como me lo cargue no sabre como volver atras.
Edito y pongo el link donde lo encontre porque he visto que sale algo raro al copiar y pegar.
http://www.phpbb.com/kb/article/links-opening-new-windows/

Links Opening New Windows
Article ID: 145
Written By: zeroK
Written On: Sun Jan 13, 2008 2:32 pm
Description: Describes how to make links on phpBB3 boards open new windows.

Link to this article: Select All
Knowledge Base - Links Opening New Windows

--------------------------------------------------------------------------------

Compared to phpBB3, links in phpBB2 had a slightly different behaviour: When you clicked them, they opened a new window with the requested page. This was changed in phpBB3 for a couple of reasons, but one of the most important ones was the goal to achieve XHTML 1.0 Strict-validation for the whole board.


If you still want to get the same behaviour on your new phpBB3 board, there are a couple of small modifications have you to make, which this guide should hopefully explain in enough detail.

Modifying auto-detected links

First of all, make auto-detected links (those that you didn't wrap with the url-BBCode) open new windows when getting clicked. Therefor open the includes/functions_content.php and look for following line (which should be around line 592):


Code: Select all
$html = "$whitespace<a$class href=\"$url\">$text</a>$append";



And replace it with following line:


Code: Select all
if ($type == MAGIC_URL_EMAIL)
{
$html = "$whitespace<a$class href=\"$url\">$text</a>$append";
}
else
{
$html = "$whitespace<a$class href=\"$url\" onclick=\"window.open(this.href);return false;\">$text</a>$append";
}


BBCode URLs

Next open the bbcode.html of your style (if you're using prosilver, this would be the styles/prosilver/template/bbcode.html file) and look for following line:


Code: Select all
{DESCRIPTION}



Now replace it with this line:


Code: Select all
{DESCRIPTION}



Help phpBB read the output again

Last but not least, you should also do the following change which will allow the created HTML output to be parsed again by phpBB: Open the includes/functions.php and replace this segment which you should find around line 2740...


Code: Select all
case 'bbcode_htm':
return array(
'#<!\-\- e \-\->[correo eliminado]<!\-\- e \-\->#',
'#<!\-\- l \-\->{32})?"].*?<!\-\- l \-\->#',
'#<!\-\- () \-\->.*?<!\-\- \1 \-\->#',
'#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/.*? \/><!\-\- s\1 \-\->#',
'#<!\-\- .*? \-\->#s',
'#<.*?>#s',
);


... with this one:


Code: Select all
case 'bbcode_htm':
return array(
'#<!\-\- e \-\->[correo eliminado]<!\-\- e \-\->#',
'#<!\-\- l \-\->{32})?"].*?<!\-\- l \-\->#',
'#<!\-\- () \-\->.*?<!\-\- \1 \-\->#',
'#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/.*? \/><!\-\- s\1 \-\->#',
'#<!\-\- .*? \-\->#s',
'#<.*?>#s',
);


And since you've updated also a template file, don't forget to also purge your board's cache through the respective button on the frontpage of your board's admin panel.