Verfasst: 22.08.2007 14:22
SUCHE:
ERSETZE MIT:
SUCHE:
ERSETZE MIT:
SUCHE:
ERSETZE MIT:
SUCHE:
ERSETZE MIT:
SUCHE:
ERSETZE MIT:
Zudem fehlen Dir einige Codes aus dem Update von 2.0.18 ! in der bbcode.php -->
Vielleicht wäre es einfacher, du verwendest eine frische bbcode.php auf dem phpbb 2.0.22 Paket
Code: Alles auswählen
$text = bbencode_first_pass_pda($text, $uid, '/\[quote=(\\\".*?\\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=\\1]");
Code: Alles auswählen
$text = bbencode_first_pass_pda($text, $uid, '/\[quote=\\\\"(.*?)\\\\"\]/is', '[/quote]', '', false, '', "[quote:$uid=\\\"\\1\\\"]");
Code: Alles auswählen
if( preg_match('#\[quote=\\\"#si', $possible_start, $match) && !preg_match('#\[quote=\\\"(.*?)\\\"\]#si', $possible_start) )
{
// OK we are in a quote tag that probably contains a ] bracket.
// Grab a bit more of the string to hopefully get all of it..
if ($close_pos = strpos($text, '"]', $curr_pos + 9))
{
$possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 2);
}
}
Code: Alles auswählen
if( preg_match('#\[quote=\\\"#si', $possible_start, $match) && !preg_match('#\[quote=\\\"(.*?)\\\"\]#si', $possible_start) )
{
// OK we are in a quote tag that probably contains a ] bracket.
// Grab a bit more of the string to hopefully get all of it..
if ($close_pos = strpos($text, '"]', $curr_pos + 14))
{
if (strpos(substr($text, $curr_pos + 14, $close_pos - ($curr_pos + 14)), '[quote') === false)
{
$possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 7);
}
}
}
Code: Alles auswählen
bbcode_array_push($stack, $match);
Code: Alles auswählen
array_push($stack, $match);
Code: Alles auswählen
$match = bbcode_array_pop($stack);
Code: Alles auswählen
$match = array_pop($stack);
Code: Alles auswählen
if (sizeof($stack) > 0)
{
$match = bbcode_array_pop($stack);
Code: Alles auswählen
if (sizeof($stack) > 0)
{
$match = array_pop($stack);
Zudem fehlen Dir einige Codes aus dem Update von 2.0.18 ! in der bbcode.php -->
Code: Alles auswählen
/**
* This function does exactly what the PHP4 function array_push() does
* however, to keep phpBB compatable with PHP 3 we had to come up with our own
* method of doing it.
* This function was deprecated in phpBB 2.0.18
*/
function bbcode_array_push(&$stack, $value)
{
$stack[] = $value;
return(sizeof($stack));
}
/**
* This function does exactly what the PHP4 function array_pop() does
* however, to keep phpBB compatable with PHP 3 we had to come up with our own
* method of doing it.
* This function was deprecated in phpBB 2.0.18
*/
function bbcode_array_pop(&$stack)
{
$arrSize = count($stack);
$x = 1;
while(list($key, $val) = each($stack))
{
if($x < count($stack))
{
$tmpArr[] = $val;
}
else
{
$return_val = $val;
}
$x++;
}
$stack = $tmpArr;
return($return_val);
}
Vielleicht wäre es einfacher, du verwendest eine frische bbcode.php auf dem phpbb 2.0.22 Paket
