equote ist ein zusätzlicher BBcode den ich installiert habe. http://www.phpbbhacks.com/download/1034
Der Unterschied zu quote ist der, daß bei der Variante
[equote="Entnommen aus Wikipedia:"]Test[/equote]
nicht über dem Zitat
Entnommen aus Wikipedia: hat folgendes geschrieben:
steht, sondern
Entnommen aus Wikipedia:
Dieser Teil hier den wir im 2.0.19er Update ändern müssen existiert aber nur für quote, nicht für equote.
Code: Alles auswählen
#
#-----[ FIND ]---------------------------------------------
# Line 392
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))
{
if (strpos(substr($text, $curr_pos + 9, $close_pos - ($curr_pos + 9)), '[quote') === false)
{
$possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 2);
#
#-----[ REPLACE WITH ]---------------------------------------------
#
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);
Also mit Deinen obigen Änderungen funktionieren jetzt die Tags
[ quote ]Test[ /quote ]
[ quote="Autor" ]Text[ /quote ]
[ equote ]Text[ equote ]
Es funktioniert nicht:
[ equote="Quelle" ]Text[/equote]