Ver Mensaje Individual
  #23 (permalink)  
Antiguo 26/04/2007, 08:44
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Ayuda para Citar en un post...!!!

Te digo debes de usar preg_replace:
Código PHP:
function parse($text) {
      
$search = array( "/\[quote\=(.*?)\](.*?)\[\/quote\]/is" ); 
      
$replace = array( '<div class="quote"><div class="userName">$1</div>$2</div>' );

      return 
preg_replace$search$replace$text );