BBcodes

Gestart doorWiitse12 reacties15 weergaven

13 berichten · pagina 1 van 1

Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik ben de bb-codes voor een forum van mijn toekomstige site aan het instellen maar ik loop hierbij vast.
Ik wil nu de quote instellen maar wat is de html code voor zo´n quote block net zoals hier op dit forum is? Dan kan ik aan de hand daarvan de bb-code instellen.
Ik wil nu de code tag instellen maar het lukt niet. Ik heb wel gevonden dat het in html met moet maar als ik het dan uittest werken de codes die ik tussen die tags zet worden ze gewoon gebruikt in plaats van dat ze worden genegeerd. confused
0
Berichten
2.674
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
<html>
<style type="text/css">
blockquote {
background:#c0c0c0;

}

</style> 
<body>


<blockquote>
Quote hier?</blockquote>
</body>
</html>


Zoiets misschien?
0
Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe laat je dat er dan ook nog zo uitzien als bijvoorbeeld hier? En dat je de titel van de quote kunt veranderen?
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Een extra veld maken bij je input, en dan de waarde ophalen met $_GET[veldnaam]; en die plaatsen bovenin de quote.

Oh, en de opmaak kan je gewoon veranderen in de style,
bijvoorbeeld zoiets:

blockquote
{
background-color: #C0C0C0;
width: 580px;
padding: 10px;
border: 1px solid #000;
}
0
Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedankt! Ik red me denk ik hier wel mee. smile
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Graag gedaan, succes er mee! smile
0
Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik wil nu de code tag instellen maar het lukt niet. Ik heb wel gevonden dat het in html met moet maar als ik het dan uittest werken de codes die ik tussen die tags zet worden ze gewoon gebruikt in plaats van dat ze worden genegeerd. confused
0
Berichten
545
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?[/COLOR]php
[COLOR= #FF8000]// [b], [u], [i] en [s][/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]![u](.*?)[/u]![/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<u>1</u>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]![b](.*?)[/b]![/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<b>1</b>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]![i](.*?)[/i]![/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<i>1</i>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]![s](.*?)[/s]![/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<s>1</s>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]![enter](.*?)![/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<br>1"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// letter grootte
//$les_commentaar = preg_replace("#[size=([-+]?[1-2]?[0-9])](.*?)[/size]#si", "<font size=1>2</font>", $les_commentaar);

// letter kleur[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"#[color=(#[0-9A-F]{6}|[a-z-]+)](.*?)[/color]#si"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<font color=1>2</font>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// tags om een lijst te maken[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[list]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<ul>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[ulist]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<ul>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[*]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<li>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[li]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<li>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[/list]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"</ul>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[/li]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"</ol>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[/ulist]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"</ul>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[/listo]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"</ol>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/[list=([a1])]/si"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<ol type="1">"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #FF8000]// de [quote] tags...[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[quote]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<blockquote>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[/quote]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"</blockquote>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[center]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<center>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[/center]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"</center>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]![QUOTE]![/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<blockquote><small><font color="#ADADAD">Door <i>1</i></small></font><br /><br />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #FF8000]// de tags...[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[code]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"FORUMCODE0"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]![code=((w)*?)]![/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<code><i>Code:</i> 1<br /><br />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]![youtube=((w)*?)]![/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<object width=425 height=350><param name=movie value=http://www.youtube.com/v/1></param><param name=wmode value=transparent></param><embed src=http://www.youtube.com/v/1 type=application/x-shockwave-flash wmode=transparent width=425 height=350></embed></object>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[/youtube]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #FF8000]//[url] tags voor http link[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/eregi_replace"]eregi_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[url][[:space:]]*(http://)?([^[]*)[[:space:]]*[/url]"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"<a href="http://2" target="_blank">http://2</a>"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/[a](.+?)[/a]/ie"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]make_tag("1")[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/eregi_replace"]eregi_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[url=(http://)?([^[]*)][[:space:]]*([^[]*)[[:space:]]*[/url]"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"<a href="http://2" target="_blank"">3</a>"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]


[COLOR= #FF8000]// de [img][/img] tag Er mag alleen een link gemaakt worden naar het plaatje[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"#[img](http(s)?://)([a-z0-9-.,?!%*_#:;~&$@/=+]+)[/img]#si"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="13">"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// Smilies[/COLOR]

[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":)"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/smiley.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":)"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/smiley.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":-)"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/smiley.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":("[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/sad.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":("[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/sad.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":-("[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/sad.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":d"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/grin.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":D"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/grin.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]";)"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/wink.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]";-)"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/wink.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"(H)"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/cool.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"(h)"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/cool.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":o"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/shocked.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":O"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/shocked.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":p"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/tongue.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":P"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/tongue.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"(A)"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/angel.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"(a)"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<img src="http://koopeenscript.nl/images/smile/angel.gif" />"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #FF8000]// alle //s weghalen[/COLOR]
    [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]
    
    [COLOR= #FF8000]// loop will execute $times times.[/COLOR]
    [URL="http://www.php.net/while"]while[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/strstr"]strstr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700]) &&[/COLOR] [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700]) {[/COLOR]
        
        [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]=[/COLOR] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++;
        
    }[/COLOR]
?>
[/code]

Alstu
0
Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat moet ik hiermee? emo In mijn systeem ziet het er anders uit dus hier heb ik niet veel aan.
0
Berichten
545
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jij zoekt bbcodes dit zijn bbcodes..
enige wat ik je kan bieden, want als jij systeem niet post kan ik er niets van maken..
0
Wiitse

Lid · Topicstarter

Berichten
6.722
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kevmaus schreef:
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #FF8000]// de tags...[/COLOR]
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"[code]"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"FORUMCODE0"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR]
Dit was de enige code waar ik om vroeg. yummie Trouwens, ik weet wel hoe ik dit doe maar hoe zorg ik ervoor dat hij ook werkt? Dat staat hier niet. Als ik dit doe krijg ik gewoon hetzelfde als bij blockquote. De codes die ik tussen deze tags zet worden dus niet genegeerd! Dit moet je denk ik instellen buiten dit om net zoals het uiterlijk. Dat staat ook gewoon in de style.css en niet in deze lijst. Snappie? In ieder geval wel bedankt voor de moeite. smile
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien


Werkt dat niet?
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je kan het beter doen met de search and replay functie die je kan gebruiken in combinatie met arrays. Dat ziet er ongeveer zo uit:

[COLOR= #0000BB]<?php[/COLOR]

[COLOR= #007700]function[/COLOR] Ubb[COLOR= #007700]([/COLOR][COLOR= #0000BB]$string[/COLOR][COLOR= #007700])
{[/COLOR]
    [COLOR= #0000BB]$search[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
        [COLOR= #DD0000][i][/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000][/i][/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000][b][/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000][/b][/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000][url][/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000][/url][/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]:)[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]:([/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000];)[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]:D[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]:d[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]:O[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]:o[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]:S[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]:s[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000](A)[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000](a)[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000](H)[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000](h)[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]:p[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]:P[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]:$[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]:@[/COLOR][COLOR= #007700],
    );[/COLOR]
    [COLOR= #0000BB]$replace[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR]
        [COLOR= #DD0000]<i>[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]</i>[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<strong>[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]</strong>[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<url>[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]</url>[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/smile.gif" alt="Lachen" />[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/cry.gif" alt="Verdrietig" />[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/wink.gif" alt="Knipoog" />[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/shiny.gif" alt="Big smile" />[/COLOR][COLOR= #007700],[/COLOR]        [COLOR= #DD0000]<img src="images/smilies/shiny.gif" alt="Big smile" />[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/redface.gif" alt="Verbaasd" />[/COLOR][COLOR= #007700],[/COLOR]        [COLOR= #DD0000]<img src="images/smilies/redface.gif" alt="Verbaasd" />[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/confused.gif" alt="Verward" />[/COLOR][COLOR= #007700],[/COLOR]        [COLOR= #DD0000]<img src="images/smilies/confused.gif" alt="Verward" />[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/hypocrite.gif" alt="Engeltje" />[/COLOR][COLOR= #007700],[/COLOR]    [COLOR= #DD0000]<img src="images/smilies/hypocrite.gif" alt="Engeltje" />[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/cool.gif" alt="Cool" />[/COLOR][COLOR= #007700],[/COLOR]                [COLOR= #DD0000]<img src="images/smilies/cool.gif" alt="Cool" />[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/tongue.gif" alt="Tong" />[/COLOR][COLOR= #007700],[/COLOR]                [COLOR= #DD0000]<img src="images/smilies/tongue.gif" alt="Tong" />[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/blush.gif" alt="Blozen" />[/COLOR][COLOR= #007700],[/COLOR]
        [COLOR= #DD0000]<img src="images/smilies/frown.gif" alt="Boos" />[/COLOR][COLOR= #007700],
    );[/COLOR]

    [URL="http://www.php.net/return"]return[/URL] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$search[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$replace[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/nl2br"]nl2br[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strip_tags"]strip_tags[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$string[/COLOR][COLOR= #007700])));
}[/COLOR]

?>


PS: Als je hem wilt gebruiken wel eerst even vragen, is zelfgemaakt. 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