PHP ver gevorderde | 
                         | 
                        zoek: 
    
    
        
            
                $select_sub_forum = "SELECT * FROM sub_forum WHERE id = '" . $show_topic->fid . "'";
        $query_sub_forum = mysql_query($select_sub_forum) or die ($foutmelding);
        $show_sub_forum = mysql_fetch_object($query_sub_forum); 
             
            $select_sub_forum = "SELECT * FROM sub_forum WHERE id = '" . $show_topic->fid . "'";         $query_sub_forum = mysql_query($select_sub_forum) or  die ($foutmelding); 
 
  
         
          
     
   
en plak daarboven dit 
    
    
        
            
                function ubb_smiley($show_topic->bericht, $dir = "smileys") {
         
    $show_topic->bericht = preg_replace("/\[B\](?U)((.|\n|\r)*)\[\/B\]/", "<B>\\1</B>", $show_topic->bericht);
    $show_topic->bericht = preg_replace("/\[U\](?U)((.|\n|\r)*)\[\/U\]/", "<U>\\1</U>", $show_topic->bericht);
    $show_topic->bericht = preg_replace("/\[I\](?U)((.|\n|\r)*)\[\/I\]/", "<I>\\1</I>", $show_topic->bericht);
    $bericht = preg_replace("/\[S\](?U)((.|\n|\r)*)\[\/S\]/", "<S>\\1</S>", $show_topic->bericht);
    $show_topic->bericht = eregi_replace("\\[COLOR=([^\\[]*)\\]([^\\[]*)\\[/COLOR\\]","<font color=\"\\1\">\\2</font>",$show_topic->bericht);     
      
    $show_topic->bericht = str_replace(":)", "<img src=\"$dir/blij.gif\">", $show_topic->bericht);
    $show_topic->bericht = str_replace(":(", "<img src=\"$dir/droevig.gif\">", $show_topic->bericht);
    $show_topic->bericht = str_replace(":s", "<img src=\"$dir/verward.gif\">", $show_topic->bericht);
      //Per 50 letters een nieuwe regel beginnen
    $show_topic->bericht = wordwrap($show_topic->bericht, 50);
     
    return $show_topic->bericht;
}
             
            function ubb_smiley($show_topic->bericht, $dir = "smileys") {       $show_topic->bericht = preg_replace("/\[B\](?U)((.|\n|\r)*)\[\/B\]/", "<B>\\1</B>", $show_topic->bericht);     $show_topic->bericht = preg_replace("/\[U\](?U)((.|\n|\r)*)\[\/U\]/", "<U>\\1</U>", $show_topic->bericht);     $show_topic->bericht = preg_replace("/\[I\](?U)((.|\n|\r)*)\[\/I\]/", "<I>\\1</I>", $show_topic->bericht);     $bericht = preg_replace("/\[S\](?U)((.|\n|\r)*)\[\/S\]/", "<S>\\1</S>", $show_topic->bericht);     $show_topic->bericht = eregi_replace("\\[COLOR=([^\\[]*)\\]([^\\[]*)\\[/COLOR\\]","<font color=\"\\1\">\\2</font>",$show_topic->bericht);            $show_topic->bericht = str_replace(":)", "<img src=\"$dir/blij.gif\">", $show_topic->bericht);     $show_topic->bericht = str_replace(":(", "<img src=\"$dir/droevig.gif\">", $show_topic->bericht);     $show_topic->bericht = str_replace(":s", "<img src=\"$dir/verward.gif\">", $show_topic->bericht);       //Per 50 letters een nieuwe regel beginnen     $show_topic->bericht = wordwrap($show_topic->bericht, 50);       return $show_topic->bericht; } 
 
  
         
          
     
   
daaronder plak je dit 
    
    
        
            
                $show_topic->bericht=ubb_smiley($show_topic->bericht); 
             
            $show_topic->bericht=ubb_smiley($show_topic->bericht); 
 
  
         
          
     
   
ik hoop dat het zo werkt,maar ik heb het niet geprobeerd en rap ff verzonnen |