Hey,
Ik ben bezig met een ubb-parser en dit topic gebruik ik om vragen te stellen
vraag 1:
Waarom werkt dit niet?:
De code staat in een functie en onderaan de pagina echo ik dus de ubbCount
Opgelost
Vraag 2:
Ik heb de volgende code:
Moet ik een forach gebruiken om ze te parsen?
zoja hoe?
Opgelost:
http://www.one2xs.com/forum/topic?p=last&id=13462#186500
Vraag 3:
Ik heb de volgende code:
nu krijg ik deze error:
Warning: preg_replace() [function.preg-replace]: Unknown modifier ( in /home/niels/***/public_html/***/includes/ubb_parser.inc.php on line 20
(lijn 20 is de preg_replace)
Opgelost
Vraag 4:
Hoe gebruik ik geshi?
Ik wil alles wat tussen de
http://qbnz.com/highlighter/index.php
Dit waren mijn vragen tot nu toe
Als ik meer vragen heb wordt deze post aangepast
Als je reageert graag erbij zetten welke vraag
Alvast bedankt, Niels
Ik ben bezig met een ubb-parser en dit topic gebruik ik om vragen te stellen
vraag 1:
Waarom werkt dit niet?:
[COLOR= #0000BB]<? $ubbCount[/COLOR][COLOR= #007700]++;[/COLOR] ?> De code staat in een functie en onderaan de pagina echo ik dus de ubbCount
Opgelost
Vraag 2:
Ik heb de volgende code:
[COLOR= #0000BB]<? $imgs[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]:D[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]biggrin.gif[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]:)[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]happy.gif[/COLOR][COLOR= #007700]);[/COLOR] ?> Moet ik een forach gebruiken om ze te parsen?
zoja hoe?
Opgelost:
http://www.one2xs.com/forum/topic?p=last&id=13462#186500
Vraag 3:
Ik heb de volgende code:
[COLOR= #0000BB]<?php[/COLOR] [COLOR= #FF8000]/* array */[/COLOR]
[COLOR= #0000BB]$codes[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000][b](.*)[/b][/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]<strong>\1</strong>[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]/* codes parsen */[/COLOR]
[URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$codes[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$ubb[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$html[/COLOR][COLOR= #007700]){[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ubb[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$html[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]);
}[/COLOR]
?> nu krijg ik deze error:
Warning: preg_replace() [function.preg-replace]: Unknown modifier ( in /home/niels/***/public_html/***/includes/ubb_parser.inc.php on line 20
(lijn 20 is de preg_replace)
Opgelost
Vraag 4:
Hoe gebruik ik geshi?
Ik wil alles wat tussen de
tags staar parsen maar hoe?http://qbnz.com/highlighter/index.php
Dit waren mijn vragen tot nu toe
Als ik meer vragen heb wordt deze post aangepast
Als je reageert graag erbij zetten welke vraag
Alvast bedankt, Niels


(van internet)