Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

Foro phpBB: Mensaje de Bienvenida a los usuarios nuevos

Estas en el tema de Foro phpBB: Mensaje de Bienvenida a los usuarios nuevos en el foro de Sistemas de gestión de contenidos en Foros del Web. Hola, tengo un foro php y me gustaria saber si hay alguna opcion para que le mande un mensaje de bienvenida a todos los usuarios ...
  #1 (permalink)  
Antiguo 03/06/2005, 06:47
Avatar de Nishikawa  
Fecha de Ingreso: mayo-2005
Mensajes: 11
Antigüedad: 19 años
Puntos: 0
Pregunta Mensaje de Bienvenida a los usuarios nuevos

Hola, tengo un foro php y me gustaria saber si hay alguna opcion para que le mande un mensaje de bienvenida a todos los usuarios nuevos que se registren en mi foro. La direccion, por si sirve de algo, de mi foro es: http://usuarios.lycos.es/promiselove/foro/
Espero que podais ayudarme por favor ya que tengo q estar mandandoles mensajes manualmente a todos los usuarios nuevos.
  #2 (permalink)  
Antiguo 03/06/2005, 06:57
Avatar de maralbust  
Fecha de Ingreso: febrero-2004
Ubicación: Santiago
Mensajes: 578
Antigüedad: 20 años, 2 meses
Puntos: 0
primero uffff cuanto amor

segundo aqui te envio un codigo, tendras que modificarlo a tu gusto

primera parte

registring.php
Código PHP:
<html>
<head>
<title>Register Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="estilo.css" rel="stylesheet" type="text/css">
<script>
function check_form()
    {
        if (document.form.nick.value == "")
        {
            alert("Please insert a User Name");
            document.form.nick.focus();
            return;
        }
        
        if (document.form.e_mail.value == "")
        {
           alert("Insert Your E-Mail");
           document.form.e_mail.focus();
           return false;
           }

        if (document.form.e_mail.value.indexOf('@', 0) == -1 ||
           document.form.e_mail.value.indexOf('.', 0) == -1) {
           alert("invalid E-Mail");
           document.form.e_mail.focus();
           return (false);
           }
        
        if (document.form.password.value == "")
        {
            alert("Please insert Your password");
            document.form.password.focus();
            return;
        }
        
        if (document.form.cpassword.value == "")
        {
            alert("Please insert Your password again");
            document.form.cpassword.focus();
            return;
        }
        
        if (document.form.first_name.value == "")
        {
            alert("Please insert Your First Name");
            document.form.first_name.focus();
            return;
        }
        
        if (document.form.last_name.value == "")
        {
            alert("Please insert Your Last Name");
            document.form.last_name.focus();
            return;
        }
        
        if (document.form.phone.value == "")
        {
            alert("Please insert Your Phone Number");
            document.form.phone.focus();
            return;
        }
        
        if (isNaN(document.form.phone.value))
        {
            alert ("Insert a valid Phone Number");
            document.form.phone.focus();
            return (false);
        }
        
        caracteres=document.form.phone.value.length;
        if(caracteres<7)
        {
             alert("Insert a valid Phone Number");
             document.form.phone.focus();
             return (false);
        }
        
        if (document.form.code.value == "")
        {
            alert("Insert a Code Number");
            document.form.code.focus();
            return;
        }
        
        if (isNaN(document.form.code.value))
        {
            alert ("Insert a valid Code Number");
            document.form.code.focus();
            return (false);
        }
        
        caracteres=document.form.code.value.length;
        if(caracteres<3)
        {
             alert("Insert a valid Code Number");
             document.form.code.focus();
             return (false);
        }

        document.form.submit();
    }
</script>
</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center"><img src="imagenes/tiulo(1).gif"> </div>
<form action="register_send.php" method="post" enctype="multipart/form-data" name="form">
<table width="327" height="280" border="0" align="center" background="imagenes/fondo_reg.gif">
    <tr> 
      <td width="144"> <b>*User Name:</b> </td>
      <td colspan="2"> <input type="text" name="nick" value="" class="t_n" size="17" maxlength="17"> 
      </td>
    </tr>
    <tr> 
      <td> <b>*E-mail address:</b> </td>
      <td colspan="2"> <input type="text" name="e_mail" value="" class="t_n" size="17"> 
      </td>
    </tr>
    <tr> 
      <td> <b>*Password</b> </td>
      <td colspan="2"> <input type="password" name="password" value="" class="t_n" size="17"> 
      </td>
    </tr>
    <tr> 
      <td> <b>*Confirm &nbsp;&nbsp;&nbsp;Password</b></td>
      <td colspan="2"> <input type="password" name="cpassword" value="" class="t_n" size="17"> 
      </td>
    </tr>
    <tr> 
      <td> <b>*First Name:</b> </td>
      <td colspan="2"> <input type="text" name="first_name" class="t_n" value="" size="17"> 
      </td>
    </tr>
    <tr> 
      <td> <b>*Last Name:</b> </td>
      <td colspan="2"> <input type="text" name="last_name" class="t_n" value="" size="17"> 
      </td>
    </tr>
    <tr> 
      <td><b>*Phone Number:</b> </td>
      <td width="20"><input type="text" maxlength="4" class="t_n" size="4" name="code"></td>
      <td width="149"><input type="text" name="phone" class="t_n" size="17" maxlength="7"></td>
    </tr>
    <tr> 
      <td> <b>Address:</b></td>
      <td colspan="2"> <input type="text" name="address" class="t_n" value="" size="17"> 
      </td>
    </tr>
    <tr> 
      <td> <b>Country:</b></td>
      <td colspan="2"> <select class="t_n" name="country">
          <option selected>Select Your Country</option>
          <?php
       $hostname 
"localhost";
       
$database "tudatabase";
       
$username "root";
       
$password "";
       
$coneccion mysql_pconnect($hostname$username$password) or die(mysql_error()); 
       
mysql_select_db($database$coneccion);
       
$query "SELECT * FROM paises ORDER BY id_pais";
       
$estados mysql_query($query$coneccion) or die(mysql_error());
       
$row_estados mysql_fetch_assoc($estados);
do {
      
$nombre $row_estados['nombre_pais'];
print  
"
      <option>" 
$nombre "</option>
      "

 } while (
$row_estados mysql_fetch_assoc($estados));
?>
        </select></td>
    </tr>
    <tr> 
      <td> <b>State:</b> </td>
      <td colspan="2"> <select name="state" class="t_n">
          <option Selected>Select Your State</option>
          <?php
       $hostname 
"localhost";
       
$database "tudatabase";
       
$username "root";
       
$password "";
       
       
$coneccion mysql_pconnect($hostname$username$password) or die(mysql_error()); 
       
mysql_select_db($database$coneccion);
       
$query "SELECT * FROM estados_usa ORDER BY id_est";
       
$estados mysql_query($query$coneccion) or die(mysql_error());
       
$row_estados mysql_fetch_assoc($estados);
do {
      
$nombre $row_estados['nombre_est'];
print  
"
      <option>" 
$nombre "</option>
      "

 } while (
$row_estados mysql_fetch_assoc($estados));
?>
        </select></td>
    </tr>
    <tr> 
      <td> <b>City:</b> </td>
      <td colspan="2"> <input type="text" name="city" class="t_n" value="" size="17"> 
      </td>
    </tr>
    <tr> 
      <td> <b>Zip Code:</b> </td>
      <td colspan="2"> <input type="text" name="zip_code" class="t_n" value="" size="17"> 
      </td>
    </tr>
    <tr> 
      <td> <b>Fax Number:</b> </td>
      <td colspan="2"><input type="text" name="fax" class="t_n" value="" size="17"></td>
    </tr>
    <tr> 
      <td><img src="imagenes/spacer.gif" width="1" height="5"></td>
    </tr>
    <tr> 
      <td colspan="3" align="right"> <div align="center"> 
          <input type="hidden" name="MM_insert" value="form">
          <input type="button" name="Submit" class="t_n" value="Send" onClick="check_form()">
          &nbsp; 
          <input type="reset" name="Reset" class="t_n" value="Reset">
          &nbsp; 
          <input type="button" name="Button" value="Close" class="t_n" onClick="self.close();return false">
        </div></td>
    </tr>
    <tr> 
      <td colspan="3">The Fields with ( * ) are required.</td>
    </tr>
  </table>
    
  <div align="center"></div>
</form>
</body>
</html>

saludos
__________________
..:: NADA SE PIERDE SOLO SE TRANSFORMA ::..
  #3 (permalink)  
Antiguo 03/06/2005, 06:58
Avatar de maralbust  
Fecha de Ingreso: febrero-2004
Ubicación: Santiago
Mensajes: 578
Antigüedad: 20 años, 2 meses
Puntos: 0
segunda parte

register_send.php
Código PHP:
<html>
<head>
<title>REGISTER</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link href="estilo.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#FFFFFF" BGPROPERTIES="fixed" leftmargin="0" topmargin="0" marginwidth="00" marginheight="0">
<center><img src="imagenes/tiulo(1).gif"></center><br>
<table width="318" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="318">
      <?php

if ((isset($HTTP_POST_VARS["MM_insert"])) && ($HTTP_POST_VARS["MM_insert"] == "form")) {

       
//datos del usuario
       
$sender_nombre = ($HTTP_POST_VARS['first_name']);
       
$sender_apellido = ($HTTP_POST_VARS['last_name']);   
       
$sender_direccion = ($HTTP_POST_VARS['address']);
       
$sender_ciudad = ($HTTP_POST_VARS['city']);
       
$sender_estado = ($HTTP_POST_VARS['state']);
       
$sender_pais = ($HTTP_POST_VARS['country']);
       
$sender_zip = ($HTTP_POST_VARS['zip_code']);
       
$sender_code = ($HTTP_POST_VARS['code']);
       
$sender_fono1 = ($HTTP_POST_VARS['phone']);
       
$sender_fono2 = ($HTTP_POST_VARS['fax']);
       
$sender_email = ($HTTP_POST_VARS['e_mail']);
       
$sender_username = ($HTTP_POST_VARS['nick']);
       
$sender_pasword = ($HTTP_POST_VARS['password']);
       
$sender_cpasword = ($HTTP_POST_VARS['cpassword']);
       
       
       
//valido password
       
if ($sender_pasword != $sender_cpasword) {
               print 
'
            <br>
            <div align="center" class="Texto"><b>
             <br><br><br><br><br>Your Password is Wrong<br><br>
             <input type="button" class=t_n" name="Button" value="GO BACK PLEASE" onClick="javascript:window.history.back()">
            </b><br></div>
            <br><br>'
;
            die();
       }
       
       
$queryPasswdPart md5($sender_pasword);
       
       
$hostname "localhost";
       
$database "tudatabse";
       
$username "root";
       
$password "";
       
$coneccion mysql_pconnect($hostname$username$password) or die(mysql_error());
       
       
//valido usuario
       
mysql_select_db($database$coneccion);
       
$query1 "SELECT * FROM members where UserName = '" $sender_username "'";
       
$consulta mysql_query($query1$coneccion) or die(mysql_error());
       
$row mysql_fetch_assoc($consulta);
       
$totalRows mysql_num_rows($consulta);
       if (
$totalRows 0) {
               print 
'
            <br>
            <div align="center" class="Texto"><b>
             <br><br><br><br><br>This UserName Already exist!.<br><br>
             <input class="t_n" type="button" name="Button" value="GO BACK PLEASE" onClick="javascript:window.history.back()">
            </b><br></div>
            <br><br>'
;
            die();
       }
       
       
//valido email
       
mysql_select_db($database$coneccion);
       
$query1 "SELECT * FROM members where Email = '" $sender_email "'";
       
$consulta mysql_query($query1$coneccion) or die(mysql_error());
       
$row mysql_fetch_assoc($consulta);
       
$totalRows mysql_num_rows($consulta);
       if (
$totalRows 0) {
               print 
'
            <br>
            <div align="center" class="Texto"><b>
             <br><br><br><br><br>This Email Already exist.!<br><br>
             <input type="button" name="Button" value="GO BACK PLEASE" onClick="javascript:window.history.back()">
            </b><br></div>
            <br><br>'
;
            die();
       }

       
//$telefono_completo='('.$_POST['$sender_code'].') '.$_POST['$sender_fono1'];
       
$insertSQL sprintf("INSERT INTO members (Name, LastName, Address, City, pais, State, Zip, area_code, Phone, Fax, Email, Username, Password)
                             VALUES (
                             '" 
$sender_nombre "',
                             '" 
$sender_apellido "',
                             '" 
$sender_direccion "',
                             '" 
$sender_ciudad "',
                             '" 
$sender_pais "',
                             '" 
$sender_estado "',
                             '" 
$sender_zip "',
                             '" 
$sender_code "',
                             '" 
$sender_fono1 "',
                             '" 
$sender_fono2 "',
                             '" 
$sender_email "',
                             '" 
$sender_username "',
                             '" 
$queryPasswdPart "')");
      
mysql_select_db($database$coneccion);
      
$Result1 mysql_query($insertSQL) or die('ERROR, please contact: <a href="mailto:[email protected]">[email protected]</a>');

       
       
//datos de la empresa
       
$recipient $sender_email;
       
$subject "Welcome to SpeakingSoft.com";
       
$mailheaders "From: [email protected] \n";
       
$mailheaders .= "Reply-To: [email protected] \n";
       
$mailheaders .= "Content-type: text/html; charset=iso-8859-1\n\n";
       
       
$Adate date("F d, Y",time());

       
//correo
       
$msg "
<html>
<head>
<link href=\"http://www.tupagina.com/estilo.css\" rel=\"stylesheet\" type=\"text/css\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
</head>

<body bgcolor=\"#FFFFFF\" text=\"#333333\">
<div align=\"center\"> 
  <TABLE width=776 border=0 align=\"center\" cellPadding=0 cellSpacing=0 bgcolor=\"#FFFFFF\">
      <TR> 
        <TD width=1></TD>
        <TD valign=\"top\"> 
          <div align=\"center\">
            <table width=724 border=0 align=\"center\" cellpadding=0 cellspacing=0>
                <tr valign=\"top\"> 
                  <td height=\"96\" colspan=2> <div align=\"center\"><img src=\"http://www.tupagina.com/imagenes/imagen.gif\"> 
                    </div></td>
                </tr>
                <tr> 
                  <td colspan=\"2\" valign=\"top\"> <div align=\"center\"> 
                      <table width=\"100%\" height=\"1\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#336699\">
                        <tr bgcolor=\"#FFFFFF\"> 
                          <td height=\"18\" colspan=\"2\" align=\"center\" valign=\"middle\"> 
                            <div align=\"center\"><font color=\"336699\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif Arial, Helvetica, sans-serif\">
                            $Adate
                            </font></div></td>
                        </tr>
                        <tr> 
                          <td width=\"601\" height=\"2\"></td>
                          <td width=\"148\"></td>
                        </tr>
                      </table>
                      <br>
                      <table width=100% border=0 align=\"left\" background=\"http://www.tupagina.com/imagenes/imagen.gif\" cellpadding=0 cellspacing=0>
                        <tr valign=\"top\"> 
                          <td height=18 colspan=3></td>
                        </tr>
                        <tr> 
                          <td width=\"100%\" valign=top> <div align=\"left\">
                          <font color=\"336699\" size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif Arial, Helvetica, sans-serif\">
                          WELCOME Mr. " 
$sender_apellido " to SpeakingSoft.com  <br><br>
       Dear " 
$sender_nombre ": <br><br>
       Welcome to SpeakingSoft.com, provider for Customized Business Software Solutions. <br>
       We are happy to have you as a member of our site. Your email address and profile have been recorded in our database. <br><br>
       Here is your member Access Information:</font><br><br>
       <font color=\"336699\" size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif Arial, Helvetica, sans-serif\"><strong>
       Username: " 
$sender_username "<br>
       Password: " 
$sender_pasword "<br><br>
       </strong></font>
       <font color=\"336699\" size=\"2\" face=\"Verdana, Arial, Helvetica, sans-serif Arial, Helvetica, sans-serif\">
       We will keep your information in absolute privacy. <br><br>
       Thank you for registering, if you have any questions or comments, feel free to contact us: <a href=\"mailto:[email protected]\">[email protected]</a> <br><br>
       Now your can find more information in our site: <a href=\"http://www.tupagina.com\">http://www.tupagina.com</a>
        </font></div></td>
                        </tr>
                        <tr> 
                          <td colspan=3 height=18></td>
                        </tr>
                      </table>
                    </div>
                  </td>
                </tr>
                <tr> 
                  <td width=\"100%\" height=\"1\" bgcolor=\"#336699\"></td>
                  <td width=\"791\"></td>
                </tr>
            </table>
            <br>
            <font size=\"-3\" face=\"Verdana, Arial, Helvetica, sans-serif\"><br>
            Nataniel Cox N&deg; 210 of. 55 &amp; 65, Santiago, Chile. Phone: (56-2) 
            688-9158, (56-2) 697-3056<br>
            Fax: (56-2) 688-5621. e-mail:<a href=\"mailto:[email protected]\">[email protected]</a></font></div></TD>
      </TR>
  </TABLE>
</div>
</body>
</html>"
;
       
       
mail($recipient$subject$msg$mailheaders) and print 
       
'<br>
       <div align="center" class="Texto">
       <font color="#336699" size="1" face="Verdana, Arial, Helvetica, sans-serif">WELCOME ' 
$first_name ' to SpeakingSoft.com <br>
       You will receive an e-mail containing your register data 
       <br>can enjoy to privileged information</font> 
       </b><br>
       <br><br><input type="button" name="Button" class="t_n" value="Close" onClick="self.close();return false"></div>'
;
}
?>
    </td>
  </tr>
</table>
</body>
</html>

saludos
__________________
..:: NADA SE PIERDE SOLO SE TRANSFORMA ::..
  #4 (permalink)  
Antiguo 03/06/2005, 07:17
Avatar de Nishikawa  
Fecha de Ingreso: mayo-2005
Mensajes: 11
Antigüedad: 19 años
Puntos: 0
Pero no hay ninguna opcion en el panel de administracion de los foros? Pq mi web esta exa por el frontpage (osea q no es php), lo que si es php es el foro y kiero q el mensaje de bienvenida sea enviado desde el foro cuando se registren en el. Espero q me entiendas lo q digo
  #5 (permalink)  
Antiguo 03/06/2005, 08:17
Avatar de maralbust  
Fecha de Ingreso: febrero-2004
Ubicación: Santiago
Mensajes: 578
Antigüedad: 20 años, 2 meses
Puntos: 0
y ese foro es phpbb, lo hiciste tu o que????
__________________
..:: NADA SE PIERDE SOLO SE TRANSFORMA ::..
  #6 (permalink)  
Antiguo 03/06/2005, 10:23
Avatar de Nishikawa  
Fecha de Ingreso: mayo-2005
Mensajes: 11
Antigüedad: 19 años
Puntos: 0
Me han movido el tema? a q foro me lo han mandao?:S q lio ^^' nunca acierto donde poner los mensajes jejejeje. Ese foro no lo he echo yo, elegi uno ya echo de una web donde ya venian echos.
  #7 (permalink)  
Antiguo 05/06/2005, 03:08
Avatar de ferny
Il capo della mafia
 
Fecha de Ingreso: febrero-2002
Ubicación: Al final del cable
Mensajes: 10.080
Antigüedad: 22 años, 2 meses
Puntos: 55
Este mod te servirá:
http://www.phpbbhacks.com/download/2044
Saludos
__________________
www.mundodivx.com || www.mundodivx.org

Pon tu mano en un horno caliente durante un minuto y te parecerá una hora.
Siéntate junto a una chica preciosa durante una hora y te parecerá un minuto.
Eso es la relatividad.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:18.