Smilie systeem

Gestart doorMarvinn16 reacties42 weergaven

17 berichten · pagina 1 van 2

Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hooi!

Ik heb deze code:

[COLOR= #0000BB]<?[/COLOR]
[COLOR= #FF8000]// © Bart S. mail: websmile@home.nl[/COLOR]


[COLOR= #007700]function[/COLOR] smilies[COLOR= #007700]([/COLOR][COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700])
{[/COLOR]
    [COLOR= #FF8000]// smilies code[/COLOR]
    [COLOR= #0000BB]$smilies[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]":D"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]":)"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]":("[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]":|"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]";)"[/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #FF8000]// smilies images[/COLOR]
    [COLOR= #0000BB]$images[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"lachen.gif"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"glimlach.gif"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"verdrietig.gif"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"verbaasd.gif"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"knipoog.gif"[/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #FF8000]// ff tellen[/COLOR]
    [COLOR= #0000BB]$aantal[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/count"]count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$smilies[/COLOR][COLOR= #007700])-[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR]
        
    [COLOR= #FF8000]// loopie[/COLOR]
    [URL="http://www.php.net/for"]for[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]<=[/COLOR][COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700];[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++)
    {[/COLOR]
        [COLOR= #FF8000]// de boel vervangen[/COLOR]
        [COLOR= #0000BB]$tekst[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$smilies[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #DD0000]"<img src="images/smilies/"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$images[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""WIDTH="15" HEIGHT="15">"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700]); 
    }[/COLOR]
    [COLOR= #FF8000]// en $tekst terug geven[/COLOR]
    [URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$tekst[/COLOR][COLOR= #007700];
}[/COLOR]



?>


Die wil ik graag hier in hebben:

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

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][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]nid[/COLOR][COLOR= #007700]])) {[/COLOR]

    [COLOR= #0000BB]$nid[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]999[/COLOR][COLOR= #007700]));[/COLOR]

    [COLOR= #FF8000]// Toevoegen van reacties //[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]])) {[/COLOR]
    
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$timeoutseconds[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$timestamp[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]();[/COLOR]
            [COLOR= #0000BB]$timeout[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$timestamp[/COLOR][COLOR= #007700]-[/COLOR][COLOR= #0000BB]$timeoutseconds[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"DELETE FROM nieuws_reacties_ip WHERE moment<$timeout AND ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
            
            [COLOR= #0000BB]$sql_spam[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM nieuws_reacties_ip WHERE ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
    
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_spam[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span style=color: red; font-weight: bold;>Je mag maar 1 keer in de 5 minuten een reactie posten.<br /><a href=javascript:history.go(-1)>Ga terug</a></span>"[/COLOR][COLOR= #007700];
            }[/COLOR][URL="http://www.php.net/else"]else[/URL][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][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]200[/COLOR][COLOR= #007700]));[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO nieuws_reacties (nieuws_id,ip,member_id,bericht,datum) 
                            VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nid[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",NOW())"[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO nieuws_reacties_ip (ip,moment) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$timestamp[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE leden SET muntjes=muntjes + "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bedragperreactie[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE member_id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]    
                            
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]() ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span style=color: green; font-weight: bold;>Reactie is succesvol toegevoegd.<br>Je hebt hiermee "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bedragperreactie[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" muntjes verdient.</span>"[/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]"<span style=color: red; font-weight: bold;>Reactie is niet toegevoegd, er is iets fout gegaan.<br>Misschien heeft iemand hetzelfde bericht gepost<br></span>"[/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]"Je moet ingelogd zijn om een reactie te posten.<br /><a href=# onclick=history.go(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
        }
    }[/COLOR]
    
    [COLOR= #FF8000]// Eind van reacties //[/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 nieuws_berichten WHERE nieuws_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nid[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #0000BB]$row[/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]    
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"aan"[/COLOR][COLOR= #007700]) {[/COLOR]
        
        [COLOR= #0000BB]$sql_member[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT gebruikersnaam FROM leden WHERE member_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$row_member[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_member[/COLOR][COLOR= #007700]);[/COLOR]
        
        [COLOR= #FF8000]//// Laat nieuws bericht zien ////[/COLOR]
        
        ?>
        <table>
            <tr>
                <td><h2>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]]);[/COLOR] ?></h2></td>
            </tr>
            <tr>
                <td><i>Gepost door <strong>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row_member[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]];[/COLOR] ?></strong> op <strong>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]datum[/COLOR][COLOR= #007700]];[/COLOR] ?></strong></i><br><hr></td>
            </tr>
            <tr>
                <td>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langbericht[/COLOR][COLOR= #007700]]);[/COLOR] ?></td>
            </tr>
        </table>
        <hr>
        <strong>Reacties</strong><br><br>

        [COLOR= #0000BB]<?php


        
    
        
        $sql_reacties[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM nieuws_reacties WHERE nieuws_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nid[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_reacties[/COLOR][COLOR= #007700])) {[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) {[/COLOR]
    
                [COLOR= #0000BB]$sql_member[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT gebruikersnaam FROM leden WHERE member_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
                [COLOR= #0000BB]$row_member[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_member[/COLOR][COLOR= #007700]);[/COLOR]
                ?><br>
    
                <table>




                    
                        <td><strong>Reactie van <a href=?p=profiel&mid=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]];[/COLOR] ?>>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row_member[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]];[/COLOR] ?></a></strong><br />
                    <img src="http://www.habbo.nl/habbo-imaging/avatarimage?hb=img&user=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row_member[/COLOR]

[COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]];[/COLOR] ?>&action=std&gesture=sml&size=b&direction=2&head_direction=3" />



[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/wordwrap"]wordwrap[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]9999[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"
"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]),[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]9999[/COLOR][COLOR= #007700])));[/COLOR] ?></td>
                    </tr>
                    <tr><td>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/wordwrap"]wordwrap[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langbericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]9999[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"
"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]),[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]9999[/COLOR][COLOR= #007700])));[/COLOR] ?></td>
                    </tr>
                    <tr>
                        <td><i>Geplaatst op [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]datum[/COLOR][COLOR= #007700]];[/COLOR] ?></i></td>
                    </tr>
                </table><hr>
                [COLOR= #0000BB]<?php[/COLOR]
            [COLOR= #007700]}
        }[/COLOR]
        


        
        
        ?>

// Toevoegen van reactie //
<br><br>
        [COLOR= #0000BB]<?php[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]])) {[/COLOR] ?>
            <form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]][/COLOR] ?>?p=nieuws&nid=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nid[/COLOR][COLOR= #007700];[/COLOR] ?>" method="post">
                <strong> Post jou reactie hier</strong><br>
                <textarea cols="30" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size:11px;" name="bericht" rows="8"></textarea><br>
                <input type="submit" name="submit" value="Reageren">

            </form>
            [COLOR= #0000BB]<?php[/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]"<strong>Log in om een reactie te plaatsen.</strong>"[/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]"Dit nieuwsbericht staat momenteel uit.<br>"[/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]"Je heb geen ID opgegeven.<br><a href=# onclick=history.go(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR]

?>


Hij moet bij dat reactie stuk maar mij lukt het niet?
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Je wilt dus smileys in je berichten?
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nee dat bv: : D > biggrin Wordt
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, dat bedoel ik dus. Ik zal even mijn UBB systeempje uploaden en hier neer zetten, hij is heel makkelijk te gebruiken, heb er namelijk een soort van demo bijgemaakt.smile
EDIT:

Heb mn scriptje even geüploaded!

http://www.onehosted.nl/ubbcodes_JosVanMarrewijk.rar

Als bijv. $row[bericht]; je bericht ophaalt, moet je dat nu veranderen in: ubb($row[bericht]);

Alsjeblieftsmile
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik snap er maar niks van...
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wie kan hem inbouwen in:

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

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][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]nid[/COLOR][COLOR= #007700]])) {[/COLOR]

    [COLOR= #0000BB]$nid[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]nid[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]999[/COLOR][COLOR= #007700]));[/COLOR]

    [COLOR= #FF8000]// Toevoegen van reacties //[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]) && ![/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]])) {[/COLOR]
    
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]])) {[/COLOR]
            [COLOR= #0000BB]$timeoutseconds[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]
            [COLOR= #0000BB]$timestamp[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]();[/COLOR]
            [COLOR= #0000BB]$timeout[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$timestamp[/COLOR][COLOR= #007700]-[/COLOR][COLOR= #0000BB]$timeoutseconds[/COLOR][COLOR= #007700];[/COLOR]
            [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"DELETE FROM nieuws_reacties_ip WHERE moment<$timeout 

AND ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
            
            [COLOR= #0000BB]$sql_spam[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM nieuws_reacties_ip WHERE 

ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
    
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_spam[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span style=color: red; font-weight: bold;>Je mag 

maar 1 keer in de 5 minuten een reactie posten.<br /><a href=javascript:history.go(-1)>Ga 

terug</a></span>"[/COLOR][COLOR= #007700];
            }[/COLOR][URL="http://www.php.net/else"]else[/URL][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][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR]

[COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]200[/COLOR][COLOR= #007700]));[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO nieuws_reacties 

(nieuws_id,ip,member_id,bericht,datum) 
                            VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nid[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR]

[COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",NOW())"[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO nieuws_reacties_ip (ip,moment) 

VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$timestamp[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"UPDATE leden SET muntjes=muntjes + "[/COLOR][COLOR= #007700].[/COLOR]

[COLOR= #0000BB]$bedragperreactie[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" WHERE member_id="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]    
                            
                [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]() ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) {[/COLOR]
                    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<span style=color: green; font-weight: 

bold;>Reactie is succesvol toegevoegd.<br>Je hebt hiermee "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$bedragperreactie[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" muntjes 

verdient.</span>"[/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]"<span style=color: red; font-weight: 

bold;>Reactie is niet toegevoegd, er is iets fout gegaan.<br>Misschien heeft iemand 

hetzelfde bericht gepost<br></span>"[/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]"Je moet ingelogd zijn om een reactie te posten.<br /><a 

href=# onclick=history.go(-1)>Ga terug</a>"[/COLOR][COLOR= #007700];
        }
    }[/COLOR]
    
    [COLOR= #FF8000]// Eind van reacties //[/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 nieuws_berichten WHERE nieuws_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nid[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
    
    [COLOR= #0000BB]$row[/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]    
    
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]actief[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"aan"[/COLOR][COLOR= #007700]) {[/COLOR]
        
        [COLOR= #0000BB]$sql_member[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT gebruikersnaam FROM leden WHERE member_id 

= "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
        [COLOR= #0000BB]$row_member[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_member[/COLOR][COLOR= #007700]);[/COLOR]
        
        [COLOR= #FF8000]//// Laat nieuws bericht zien ////[/COLOR]
        
        ?>
        <table>
            <tr>
                <td><h2>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]]);[/COLOR] ?></h2></td>
            </tr>
            <tr>
                <td><i>Gepost door <strong>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row_member[/COLOR]

[COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]];[/COLOR] ?></strong> op <strong>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]datum[/COLOR][COLOR= #007700]]; ?

><[/COLOR]/strong[COLOR= #007700]><[/COLOR]/i[COLOR= #007700]><[/COLOR]br[COLOR= #007700]><[/COLOR]hr[COLOR= #007700]><[/COLOR]/td[COLOR= #007700]>
            <[/COLOR]/tr[COLOR= #007700]>
            <[/COLOR]tr[COLOR= #007700]>
                <[/COLOR]td[COLOR= #007700]>[/COLOR][COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langbericht[/COLOR][COLOR= #007700]]);[/COLOR] ?></td>
            </tr>
        </table>
        <hr>
        <strong>Reacties</strong><br><br>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]class/smiley.class.php[/COLOR][COLOR= #007700]);[/COLOR]

        
        [COLOR= #FF8000]/// Reacties ///[/COLOR]
        
        [COLOR= #0000BB]$sql_reacties[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM nieuws_reacties WHERE nieuws_id = 

"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nid[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_reacties[/COLOR][COLOR= #007700])) {[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]] !=[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]) {[/COLOR]
    
                [COLOR= #0000BB]$sql_member[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT gebruikersnaam FROM leden 

WHERE member_id = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
                [COLOR= #0000BB]$row_member[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sql_member[/COLOR][COLOR= #007700]);[/COLOR]
                ?><br>


    
                <table>
                    
                        <td><strong>Reactie van <a href=?

p=profiel&mid=[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]member_id[/COLOR][COLOR= #007700]];[/COLOR] ?>>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row_member[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]]; ?

><[/COLOR]/a[COLOR= #007700]><[/COLOR]/strong[COLOR= #007700]><[/COLOR]br /[COLOR= #007700]>
                    <[/COLOR]img src[COLOR= #007700]=[/COLOR][COLOR= #DD0000]"http://www.habbo.nl/habbo-

imaging/avatarimage?hb=img&user=<?php echo $row_member

[gebruikersnaam]; ?>&action=std&gesture=sml&size=b&direction=2&head_direction=3"[/COLOR] /[COLOR= #007700]>[/COLOR]



[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars[COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/wordwrap"]wordwrap[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]
,[/COLOR][COLOR= #0000BB]9999[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"n"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]),[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]9999[/COLOR][COLOR= #007700])));[/COLOR] ?></td>
                    </tr>
                    <tr><td>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/stripslashes"]stripslashes[/URL][COLOR= #007700]([/COLOR]htmlspecialchars

[COLOR= #007700]([/COLOR][URL="http://www.php.net/substr"]substr[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/wordwrap"]wordwrap[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]langbericht[/COLOR][COLOR= #007700]],[/COLOR][COLOR= #0000BB]9999[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"n"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]),[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]9999[/COLOR][COLOR= #007700])));[/COLOR] ?></td>
                    </tr>
                    <tr>
                        <td><i>Geplaatst op [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR]

[COLOR= #007700][[/COLOR][COLOR= #DD0000]datum[/COLOR][COLOR= #007700]];[/COLOR] ?></i></td>
                    </tr>
                </table><hr>
                [COLOR= #0000BB]<?php[/COLOR]
            [COLOR= #007700]}
        }[/COLOR]
        
        [COLOR= #FF8000]// Toevoegen van reactie //[/COLOR]
        
        ?>

<br><br>
        [COLOR= #0000BB]<?php[/COLOR] 
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]])) {[/COLOR] ?>
            <form action="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]][/COLOR] ?>?p=nieuws&nid=[COLOR= #0000BB]<?php[/COLOR] 

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$nid[/COLOR][COLOR= #007700];[/COLOR] ?>" method="post">
                <strong> Post jou reactie hier</strong><br>
                <textarea cols="30" style="font-family: Verdana, Arial, 

Helvetica, sans-serif; font-size:11px;" name="bericht" rows="8"></textarea><br>
                <input type="submit" name="submit" value="Reageren">

            </form>
            [COLOR= #0000BB]<?php[/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]"<strong>Log in om een reactie te plaatsen.</strong>"[/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]"Dit nieuwsbericht staat momenteel uit.<br>"[/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]"Je heb geen ID opgegeven.<br><a href=# onclick=history.go(-1)>Ga 

terug</a>"[/COLOR][COLOR= #007700];
}[/COLOR]

?>


Want mij lukt het niet bloos
Ik krijg steeds: Parse error: syntax error, unexpected ; in /home/nickjexx/domains/habbotjes.be/public_html/pagina/nieuwsbekijken.php on line 91
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Als je de functie alleen include in je bestand, hoef je alleen maar ubb voor de string te zetten die de tekst laat zien.
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja maar ik snap het hele systeem niet
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Josnl schreef:
Ja, dat bedoel ik dus. Ik zal even mijn UBB systeempje uploaden en hier neer zetten, hij is heel makkelijk te gebruiken, heb er namelijk een soort van demo bijgemaakt.smile
EDIT:

Heb mn scriptje even geüploaded!

http://www.onehosted.nl/ubbcodes_JosVanMarrewijk.rar

Als bijv. $row[bericht]; je bericht ophaalt, moet je dat nu veranderen in: ubb($row[bericht]);

Alsjeblieftsmile
En als je nu alleen [b] doet?

Juist, dan is heel je pagina opeens dikgedrukt.
0
Marvinn

Lid · Topicstarter

Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Rik schreef:
Eerdere citaten tonen
Josnl schreef:
Ja, dat bedoel ik dus. Ik zal even mijn UBB systeempje uploaden en hier neer zetten, hij is heel makkelijk te gebruiken, heb er namelijk een soort van demo bijgemaakt.smile
EDIT:

Heb mn scriptje even geüploaded!

http://www.onehosted.nl/ubbcodes_JosVanMarrewijk.rar

Als bijv. $row[bericht]; je bericht ophaalt, moet je dat nu veranderen in: ubb($row[bericht]);

Alsjeblieftsmile
En als je nu alleen doet?

Juist, dan is heel je pagina opeens dikgedrukt.
Hoe moet het dan wel?
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Rik schreef:
Eerdere citaten tonen
Josnl schreef:
Ja, dat bedoel ik dus. Ik zal even mijn UBB systeempje uploaden en hier neer zetten, hij is heel makkelijk te gebruiken, heb er namelijk een soort van demo bijgemaakt.smile
EDIT:

Heb mn scriptje even geüploaded!

http://www.onehosted.nl/ubbcodes_JosVanMarrewijk.rar

Als bijv. $row[bericht]; je bericht ophaalt, moet je dat nu veranderen in: ubb($row[bericht]);

Alsjeblieftsmile
En als je nu alleen [b] doet?

Juist, dan is heel je pagina opeens dikgedrukt.
Sorry hoor, maar wie doet er dan ook alleen [b]? Als je iets beters voor hem hebt moet je dat geven, wees blij dat ik nog iemand probeer te helpen...
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik gebruik zelf altijd NBBC als parser. Tut
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Josnl schreef:
Eerdere citaten tonen
Rik schreef:
Eerdere citaten tonen
Josnl schreef:
Ja, dat bedoel ik dus. Ik zal even mijn UBB systeempje uploaden en hier neer zetten, hij is heel makkelijk te gebruiken, heb er namelijk een soort van demo bijgemaakt.smile
EDIT:

Heb mn scriptje even geüploaded!

http://www.onehosted.nl/ubbcodes_JosVanMarrewijk.rar

Als bijv. $row[bericht]; je bericht ophaalt, moet je dat nu veranderen in: ubb($row[bericht]);

Alsjeblieftsmile
En als je nu alleen [b] doet?

Juist, dan is heel je pagina opeens dikgedrukt.
Sorry hoor, maar wie doet er dan ook alleen [b]? Als je iets beters voor hem hebt moet je dat geven, wees blij dat ik nog iemand probeer te helpen...
Ik bedoelde het als opbouwende kritiek. Ik zie nu ook dat het een beetje verkeerd over kon komen.
0
Berichten
3.461
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Maakt niet uit hoor Rik!yummie En als je hier ook alleen [b] doet word ook alles vetgedrukt volgens mij?
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Niet de hele pagina volgens mij hoor
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