Forum

Gestart doorShahiem6 reacties64 weergaven

7 berichten · pagina 1 van 1

Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bij me forum script als ik een bericht wil bewerken krijg ik dit bij me smilies:

Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt./> Afbeelding niet beschikbaarDe oorspronkelijke afbeelding of link ontbreekt..

Hoe kan ik ervoor zorgen dat ze gewoon ubb tags zijn.
Code:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/require_once"]require_once[/URL] [COLOR= #DD0000]inc/header.php[/COLOR][COLOR= #007700];[/COLOR]
          [COLOR= #0000BB]$Query[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT gebruikersnaam,status FROM leden WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]log_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR]or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
          [COLOR= #0000BB]$Qfetch[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$Query[/COLOR][COLOR= #007700]);[/COLOR]
          
          [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$Qfetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]status[/COLOR][COLOR= #007700]] >=[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700]){[/COLOR]
?>
<script type="text/javascript" language="javascript">
<!-- Smilies invoegen
function addSmilie(code)
{
document.form.bericht.value+=code;
document.form.bericht.focus();
}
-->
</script>
[COLOR= #0000BB]<?[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]berwerktopic[/COLOR][COLOR= #007700]])){[/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]$titel[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]]);[/COLOR]
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]);[/COLOR]
        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE forum  SET topic = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]", bericht = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/trim"]trim[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]berwerktopic[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
         [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#B22222">
                        <tr>
                        <td width="100%" align="center" bgcolor="#DC143C">
                        <font color="white">Topic is succervol gewijzigt. <a href="#" onclick="history.go(-2)" class="link"><font color="white"><b>(Terug naar het topic)</b></font></a>.</font></td>
                        </tr>
               </table>[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$Qfetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]status[/COLOR][COLOR= #007700]] >=[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700]){[/COLOR]
        [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM forum WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/trim"]trim[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]berwerktopic[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR]or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM forum WHERE id = "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/trim"]trim[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]berwerktopic[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]"  AND door_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$log_id[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR]or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
        }[/COLOR]
        [COLOR= #0000BB]$check[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$check[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#B22222">
                        <tr>
                        <td width="100%" align="center" bgcolor="#DC143C">
                        <font color="white">Je kan alleen je eigen berichten bewerken <a href="#" onclick="history.go(-2)" class="link"><font color="white"><b>(Terug naar het topic)</font></b></a>.</font></td>
                        </tr>
               </table>[/COLOR][COLOR= #007700];
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$show[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql[/COLOR][COLOR= #007700])) {[/COLOR]
        [COLOR= #0000BB]$titel[/COLOR] [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$show[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]topic[/COLOR][COLOR= #007700]]);[/COLOR] 
        [COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$show[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]);[/COLOR]

        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<form method="POST" action="" name="form">[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#B22222">
        <tr>
        <td width="100%" align="center" bgcolor="#DC143C"><font color="white">Reactie:</font></td>
        </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
        <tr>
        <td align="center">[/COLOR][COLOR= #007700];[/COLOR]
         ?>
         
<img src="smilies/blij.gif" alt=":D" title=":D" onclick="javascript:addSmilie(:D)" />
<img src="smilies/knipoog.gif" alt=";)" title=";)" onclick="javascript:addSmilie(;))" />
<img src="smilies/lachje.gif" alt=":)" title=":)" onclick="javascript:addSmilie(:))" />
<img src="smilies/verdrietig.gif" alt=":(" title=":(" onclick="javascript:addSmilie(:()" />
<img src="smilies/verrast.gif" alt=":O" title=":O" onclick="javascript:addSmilie(:O)" />
<img src="smilies/ongelooflijk.gif" alt=":shock:" title=":shock:" onclick="javascript:addSmilie(:shock:)" />
<img src="smilies/raar.gif" alt=":S" title=":S" onclick="javascript:addSmilie(:S)" />
<img src="smilies/cool.gif" alt="8)" title="8)" onclick="javascript:addSmilie(8))" />
<img src="smilies/lol.gif" alt=":lol:" title=":lol:" onclick="javascript:addSmilie(:lol: )" />
<img src="smilies/boos.gif" alt=":x" title=":x" onclick="javascript:addSmilie(:x)" />
<img src="smilies/blijtjes.gif" alt=":P" title=":P" onclick="javascript:addSmilie(:P )" />
<img src="smilies/rodegezicht.gif" alt=":$" title=":$" onclick="javascript:addSmilie(:$)" />
<img src="smilies/huilen.gif" alt=":*(" title=":*(" onclick="javascript:addSmilie(:*()" />
<img src="smilies/monster.gif" alt=":evil:" title=":evil:" onclick="javascript:addSmilie(:evil:)" />
<img src="smilies/monster2.gif" alt=":twisted:" title=":twisted:" onclick="javascript:addSmilie(:twisted:)" />
<img src="smilies/rologen.gif" alt="%)" title="%)" onclick="javascript:addSmilie(%))" />
<img src="smilies/uitroepteken.gif" alt=":!:" title=":!:" onclick="javascript:addSmilie(:!: )" />
<img src="smilies/vraagteken.gif" alt=":question:" title=":question:" onclick="javascript:addSmilie(:question:)" />
<img src="smilies/idee.gif" alt=":idee:" title=":idee:" onclick="javascript:addSmilie(:idee:)" />
<img src="smilies/oops.gif" alt=":|" title=":|" onclick="javascript:addSmilie(:|)" />
<img src="smilies/grotelach.gif" alt=":mrgreen:" title=":mrgreen:" onclick="javascript:addSmilie(:mrgreen:)" />
<img src="smilies/wijzer.gif" alt=":arrow:" title=":arrow:" onclick="javascript:addSmilie(:arrow:)" />&nbsp;
          [COLOR= #0000BB]<?php[/COLOR]
   [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</td>
         </tr>
         <tr>
         <td align="center">
         <b>Titel:</b><br /><input type="text" name="titel" value="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$titel[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"/><br />[/COLOR][COLOR= #007700];[/COLOR]  
         [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<textarea name="bericht" cols="55" rows="8">[/COLOR][COLOR= #007700].[/COLOR]ubb[COLOR= #007700]([/COLOR]parseQuotes[COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700])).[/COLOR][COLOR= #DD0000]</textarea><br />[/COLOR][COLOR= #007700];[/COLOR]
         [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<input type="submit" name="submit" value="Bewerken"><br />[/COLOR][COLOR= #007700];[/COLOR]
         [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</td>[/COLOR][COLOR= #007700];[/COLOR]
         [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</tr>
         </table>[/COLOR][COLOR= #007700];[/COLOR]
         [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</form>[/COLOR][COLOR= #007700];
        }        
       }
      }[/COLOR]

         [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/is_numeric"]is_numeric[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bewerkreactie[/COLOR][COLOR= #007700]])){[/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]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]);[/COLOR]
         [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE berichten SET bericht = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" 
         WHERE id ="[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bewerkreactie[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR]or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
         [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#B22222">
                        <tr>
                        <td width="100%" align="center" bgcolor="#DC143C">
                        <font color="white">Reactie is succervol gewijzigt. <a href="#" onclick="history.go(-2)" class="link"><font color="white"><b>(Terug naar het topic)</b></font></a>.</font></td>
                        </tr>
               </table>[/COLOR][COLOR= #007700];
         }[/COLOR]
         
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$Qfetch[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]status[/COLOR][COLOR= #007700]] >=[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700]){[/COLOR] 
        [COLOR= #0000BB]$sql2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM berichten WHERE  id = "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/trim"]trim[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bewerkreactie[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR]or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [COLOR= #0000BB]$sql2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM berichten WHERE  id = "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/trim"]trim[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bewerkreactie[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]" AND door_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$log_id[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700])[/COLOR]or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
        }[/COLOR]
        [COLOR= #0000BB]$check2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql2[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$check2[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]){[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="CFAF76">
                        <tr>
                        <td width="100%" align="center" bgcolor="#DC143C">
                        <font color="white">Je kan alleen je eigen berichten bewerken <a href="#" onclick="history.go(-2)" class="contentlinks"><font color="white"><b>(Terug naar het topic)</b></font></a>.</font></td>
                        </tr>
               </table>[/COLOR][COLOR= #007700];
        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$show2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql2[/COLOR][COLOR= #007700])) {[/COLOR]
        [COLOR= #0000BB]$bericht2[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$show2[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]];[/COLOR]
    
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<form method="POST" action="" name="form">[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#B22222">
        <tr>
        <td width="100%" align="center" bgcolor="#DC143C"><font color="white">Reactie:</font></td>
        </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
        <tr>
        <td bgcolor="#F5F5F5" align="center">[/COLOR][COLOR= #007700];[/COLOR]
         ?>
         
<img src="smilies/blij.gif" alt=":D" title=":D" onclick="javascript:addSmilie(:D)" />
<img src="smilies/knipoog.gif" alt=";)" title=";)" onclick="javascript:addSmilie(;))" />
<img src="smilies/lachje.gif" alt=":)" title=":)" onclick="javascript:addSmilie(:))" />
<img src="smilies/verdrietig.gif" alt=":(" title=":(" onclick="javascript:addSmilie(:()" />
<img src="smilies/verrast.gif" alt=":O" title=":O" onclick="javascript:addSmilie(:O)" />
<img src="smilies/ongelooflijk.gif" alt=":shock:" title=":shock:" onclick="javascript:addSmilie(:shock:)" />
<img src="smilies/raar.gif" alt=":S" title=":S" onclick="javascript:addSmilie(:S)" />
<img src="smilies/cool.gif" alt="8)" title="8)" onclick="javascript:addSmilie(8))" />
<img src="smilies/lol.gif" alt=":lol:" title=":lol:" onclick="javascript:addSmilie(:lol: )" />
<img src="smilies/boos.gif" alt=":x" title=":x" onclick="javascript:addSmilie(:x)" />
<img src="smilies/blijtjes.gif" alt=":P" title=":P" onclick="javascript:addSmilie(:P )" />
<img src="smilies/rodegezicht.gif" alt=":$" title=":$" onclick="javascript:addSmilie(:$)" />
<img src="smilies/huilen.gif" alt=":*(" title=":*(" onclick="javascript:addSmilie(:*()" />
<img src="smilies/monster.gif" alt=":evil:" title=":evil:" onclick="javascript:addSmilie(:evil:)" />
<img src="smilies/monster2.gif" alt=":twisted:" title=":twisted:" onclick="javascript:addSmilie(:twisted:)" />
<img src="smilies/rologen.gif" alt="%)" title="%)" onclick="javascript:addSmilie(%))" />
<img src="smilies/uitroepteken.gif" alt=":!:" title=":!:" onclick="javascript:addSmilie(:!: )" />
<img src="smilies/vraagteken.gif" alt=":question:" title=":question:" onclick="javascript:addSmilie(:question:)" />
<img src="smilies/idee.gif" alt=":idee:" title=":idee:" onclick="javascript:addSmilie(:idee:)" />
<img src="smilies/oops.gif" alt=":|" title=":|" onclick="javascript:addSmilie(:|)" />
<img src="smilies/grotelach.gif" alt=":mrgreen:" title=":mrgreen:" onclick="javascript:addSmilie(:mrgreen:)" />
<img src="smilies/wijzer.gif" alt=":arrow:" title=":arrow:" onclick="javascript:addSmilie(:arrow:)" />&nbsp;
          [COLOR= #0000BB]<?php[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</td>
         </tr>
         <tr>
         <td bgcolor="#F5F5F5" align="center">[/COLOR][COLOR= #007700];[/COLOR]  
         [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<textarea name="bericht" cols="55" rows="8">[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR]ubb[COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht2[/COLOR][COLOR= #007700]))).[/COLOR][COLOR= #DD0000]</textarea><br />[/COLOR][COLOR= #007700];[/COLOR]
         [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<input type="submit" name="submit" value="Bewerken"><br />[/COLOR][COLOR= #007700];[/COLOR]
         [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</td>[/COLOR][COLOR= #007700];[/COLOR]
         [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</tr>
         </table>[/COLOR][COLOR= #007700];[/COLOR]
         [URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]</form>[/COLOR][COLOR= #007700];
         }
      } 
   }
}[/COLOR] 
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]deze acties zijn alleen mogelijk voor admin en moderators.[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/require_once"]require_once[/URL] [COLOR= #DD0000]inc/footer.php[/COLOR][COLOR= #007700];[/COLOR]
?>
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
komt door stripslashes
PS: unblok me @ msn
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedankt Niels smile
EDIT:
Heb het nog steeds
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoe staan ze in de database? Als ubb of als html code?
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
html code.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Je moet ze als UBB code in je database zetten, en daarna pas (bij het weergeven dus) omzetten naar HTML.
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ze worden eerst wel ingevoerd als ubb maar daarna zie je de html in de textarea

Edit:
Het is gelukt, bedankt voor jullie medewerking 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