Hallo,
ik zat vroeger op vele sites zoals Flubby, Whear etc.
Ze zeiden altijd als je vroeg of het wel zelfgemaakt was, dat ze alles hadden zelf gemaakt, buiten het UBB script.
Maar ik heb nu een soort heel mine UBB scriptje waar je maar 1 smiley kan mee veranderen:
Demo: http://sander.vanmarijn.nl/ubb.php
Maarrrrr...
Ik vraag me af of jullie ervaren scripters het ook op deze manier doen of het echt op een totaal andere manier moet.
Want ik weet nu niet echt hoe ik nu kan zorgen dat bv "clown" deze smiley wordt:
Ik heb dus graag jullie hulp nodig met dit
Thanks
ik zat vroeger op vele sites zoals Flubby, Whear etc.
Ze zeiden altijd als je vroeg of het wel zelfgemaakt was, dat ze alles hadden zelf gemaakt, buiten het UBB script.
Maar ik heb nu een soort heel mine UBB scriptje waar je maar 1 smiley kan mee veranderen:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700])
{[/COLOR]
[COLOR= #0000BB]$zin[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]zin[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$smiley[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]:D[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$vervang[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]<img src="http://www.one2xs.com/img/smileys/biggrin.gif">[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$zin[/COLOR] [COLOR= #007700]=[/COLOR] str_ireplace[COLOR= #007700]([/COLOR][COLOR= #0000BB]$smiley[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$vervang[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$zin[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$zin[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]<hr/>[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{
}[/COLOR]
?>
<form method="post" action="#">
Typ je zin:<input type="text" name="zin">
<input type="submit" value="Naar UBB">
</form> Demo: http://sander.vanmarijn.nl/ubb.php
Maarrrrr...
Ik vraag me af of jullie ervaren scripters het ook op deze manier doen of het echt op een totaal andere manier moet.
Want ik weet nu niet echt hoe ik nu kan zorgen dat bv "clown" deze smiley wordt:

Ik heb dus graag jullie hulp nodig met dit

Thanks

;
