Seite 1 von 1

URL im Beitrag in neuen Fenster öffnen

Verfasst: 06.03.2008 14:11
von arek76
Hallo zusammen,

ich hab phpBB 3 installiert das verlief alles ohne Problem.

Einziges Problem was ich habe ist:
Wenn ich ein URL im Beitrag anklicke öffnet sich die in demselben Fenster.

Hab schon hier im Forum gesucht aber nichts gefunden.

Meine Frage.

Wo kann ich das einstellen?

Vielen Dank

Gruß
Arek

Verfasst: 06.03.2008 14:16
von franki
Bitte das nächste mal die Sufu verwenden :wink:
http://www.phpbb.com/community/viewtopic.php?f=70&t=581660

Verfasst: 06.03.2008 14:33
von arek76
Hab gerade getestet, es funktioniert.
Vielen Dank :-)

Ich hab gesucht aber irgendwie falsch.

Gruß
Arek

Verfasst: 06.03.2008 14:33
von gunfran
feini. genau diese Problematik hat mich auch beschäftigt. Vielen Dank für die Info. Das ging schneller als die Suchfunktion, wenn auch per Zufall. :)

Verfasst: 06.03.2008 18:50
von nerospeed
Wie habt ihr denn den string eingebunden?

Bei mir will das ganze nicht so wirklich gehen.

Gruß Nero

Verfasst: 06.03.2008 21:44
von arek76
hallo,

hast Du das nach der "installation instructions.xml" gemacht.?

ich hab nach dem ich das gemacht haben habe ich mich einmal abgemeldet und wieder angemeldet und den Cache gelöscht.

Dann hat es funktioniert.

Gruß
Arek

Verfasst: 07.03.2008 20:21
von nerospeed
Habe das nun so in der functions_content.php stehen

Code: Alles auswählen

/**
* custom version of nl2br which takes custom BBCodes into account
*/
function bbcode_nl2br($text)
{
	// custom BBCodes might contain carriage returns so they
	// are not converted into <br /> so now revert that
	$text = str_replace(array("\n", "\r"), array('<br />', "\n"), $text);
	return $text;
}

//-- mod: Prime Links -------------------------------------------------------//
	if (!function_exists('prime_links'))
	{
		global $phpEx;
		include($phpbb_root_path . 'includes/prime_links.' . $phpEx);
	}
	$text = prime_links($text);
//-- end: Prime Links -------------------------------------------------------//

/**
* Smiley processing
*/
function smiley_text($text, $force_option = false)
{
	global $config, $user, $phpbb_root_path;

	if ($force_option || !$config['allow_smilies'] || !$user->optionget('viewsmilies'))

	{
		return preg_replace('#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/.*? \/><!\-\- s\1 \-\->#', '\1', $text);
	}
	else
	{
		return preg_replace('#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/(.*?) \/><!\-\- s\1 \-\->#', '<img src="' . $phpbb_root_path . $config['smilies_path'] . '/\2 />', $text);
	}
}
In der prime_links.php ist es ja Standard auf "ein"

Cache habe ich auch schon gelöscht, sowie das an und abmelden. Komisch

Verfasst: 08.03.2008 10:54
von nickvergessen
Du hast es falsch eingebaut
richtig wäre:

Code: Alles auswählen

/**
* custom version of nl2br which takes custom BBCodes into account
*/
function bbcode_nl2br($text)
{
	// custom BBCodes might contain carriage returns so they
	// are not converted into <br /> so now revert that
	$text = str_replace(array("\n", "\r"), array('<br />', "\n"), $text);
	return $text;
}

/**
* Smiley processing
*/
function smiley_text($text, $force_option = false)
{
	global $config, $user, $phpbb_root_path;

//-- mod: Prime Links -------------------------------------------------------//
	if (!function_exists('prime_links'))
	{
		global $phpEx;
		include($phpbb_root_path . 'includes/prime_links.' . $phpEx);
	}
	$text = prime_links($text);
//-- end: Prime Links -------------------------------------------------------//


	if ($force_option || !$config['allow_smilies'] || !$user->optionget('viewsmilies'))
	{
		return preg_replace('#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/.*? \/><!\-\- s\1 \-\->#', '\1', $text);
	}
	else
	{
		return preg_replace('#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/(.*?) \/><!\-\- s\1 \-\->#', '<img src="' . $phpbb_root_path . $config['smilies_path'] . '/\2 />', $text);
	}
}

Verfasst: 08.03.2008 15:50
von nerospeed
Ohh, ja wer lesen kann ist klar im Vorteil :oops: . Ok ich danke Dir es geht so natürlich :)

Danke

Gruß Nero