PHP UBB Quote in quote

Gestart doorMilan3 reacties32 weergaven

4 berichten · pagina 1 van 1

Milan

Lid · Topicstarter

Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hey,

Ik wil dus meerdere quotes in elkaar kunnen hebben

Quote:

Quote:
zoals dit.

En ik heb deze regel daarvoor:

[COLOR= #0000BB]<?php
$string[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"#[QUOTE](.*?)[/quote]#si"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<strong>\1:</strong><div style="border: 1px #ccc solid; padding: 5px;">\2</div>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$string[/COLOR][COLOR= #007700]);[/COLOR]  

?>


Maar ik krijg:

Quote:
Milan schreef:
Citaat
testoo

Jetestwel veel
Weet ik

Weet iemand hoe ik dit kan verhelpen?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"(([QUOTE](.+?)[/quote])|([quote](.+?)[/quote]))is"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$string[/COLOR][COLOR= #007700])) {[/COLOR]
            [COLOR= #0000BB]$string[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"([QUOTE](.+?)[/quote])is"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]<strong>$1:</strong><div style="border: 1px #ccc solid; padding: 5px;">$2</div>[/COLOR] [COLOR= #007700],[/COLOR][COLOR= #0000BB]$string[/COLOR][COLOR= #007700]);[/COLOR]
            [COLOR= #0000BB]$string[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"([quote](.+?)[/quote])is"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]<strong>Quote</strong><div style="border: 1px #ccc solid; padding: 5px;">$1</div>[/COLOR] [COLOR= #007700],[/COLOR][COLOR= #0000BB]$string[/COLOR][COLOR= #007700]); 
        }[/COLOR]
?>
0
Milan

Lid · Topicstarter

Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Thanks biggrin
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Credits to Bas Milius (Superb), komt uit zijn UBB Class biggrinIk heb het alleen aangepast naar jou huidige code smile
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren