Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/03/2008, 15:49
Avatar de pato12
pato12
 
Fecha de Ingreso: septiembre-2007
Ubicación: Salta
Mensajes: 1.620
Antigüedad: 16 años, 7 meses
Puntos: 101
Re: APORTE: Crea tu foro con php

funciones.php
Código PHP:
<?php
function mostrarTemplate($tema$variables)
{
    
//var_dump($variables);
    
extract($variables);
    eval(
"?>".$tema."<?");
}

function 
parsearTags($mensaje)
{
    
$mensaje str_replace("[citar]""<blockquote><hr width='100%' size='2'>"$mensaje);
    
$mensaje str_replace("[/citar]""<hr width='100%' size='2'></blockquote>"$mensaje);
    
    
$mensaje str_replace("[b]""<b>"$mensaje);
    
$mensaje str_replace("[/b]""</b>"$mensaje);
    
    
$mensaje str_replace("[i]""<u>"$mensaje);
    
$mensaje str_replace("[/i]""</i>"$mensaje);

    
$mensaje str_replace("[php]"'<TABLE width="460" height="58" border="1" cellpadding="2" cellspacing="2" bordercolor="#CCCCCC" bgcolor="#000000">  <TBODY>    <TR>      <TD width="448" height="25" align="right" bgcolor="#FFFFFF"><font color="#000000"><strong>PHP</strong></font></TD>    </TR>    <TR>      <TD height="25" valign="top" bgcolor="#F0F0F0"><font color="#910000">'$mensaje);
    
$mensaje str_replace("[ / p h p]""</font></TD>  </TR>  </TBODY></TABLE>"$mensaje);


    return 
$mensaje;
}
?>
Bueno,
esta parte $mensaje = str_replace("[ / p h p]",
es haci:
$mensaje = str_replace("[/php]",
sino se me corta el php


lo que falta se intala automaticamente
espero que les alla servido
Gracias
Salu2
__________________
Half Music - www.halfmusic.com