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

desactivar verificacionn por mail, y notificaciones

Estas en el tema de desactivar verificacionn por mail, y notificaciones en el foro de Sistemas de gestión de contenidos en Foros del Web. les cuento mas o menos como es el asunto: tengo k hacer un foro (con chat incluido) para una red que tien bloqueados los servicios ...
  #1 (permalink)  
Antiguo 01/05/2008, 15:44
 
Fecha de Ingreso: agosto-2006
Mensajes: 141
Antigüedad: 17 años, 8 meses
Puntos: 0
Pregunta desactivar verificacionn por mail, y notificaciones

les cuento mas o menos como es el asunto: tengo k hacer un foro (con chat incluido) para una red que tien bloqueados los servicios de mail (puertos bloqueados etc etc)
despues de pelear varios dias logre implementar el chat () el asunto es que a la hora de registrar un nuevo usuario para probar correctamente las funciones del chat, me salio un error de envio de mail
(Failed sending email :: PHP ::

DEBUG MODE

Line : 234
File : emailer.php), probe las 3 opciones(ninguno,usuario,administrador) k hay en el panel de administracion para corregir esto y con las 3 es lo mismo.
trate de encontrar en el fuente la linea k obliga a enviar el correo, pero no he dado con ella
alguien sabe cual es?
  #2 (permalink)  
Antiguo 01/05/2008, 20:49
 
Fecha de Ingreso: agosto-2006
Mensajes: 141
Antigüedad: 17 años, 8 meses
Puntos: 0
Re: desactivar verificacionn por mail, y notificaciones

ya que no soy muy bueno esperando (no lo tomen a mal), segui buscando y vi que en varios temas mandaban a buscar codigos a una pagina y encontre el siguiente codigo
Cita:
#
#-----[ OPEN ]
templates/subSilver/profile_add_body.tpl
#-----[ FIND ]-
<tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_REPLY}:</span><br />
<span class="gensmall">{L_NOTIFY_ON_REPLY_EXPLAIN}</span></td>
<td class="row2">
<input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} />
<span class="gen">{L_YES}</span>&nbsp;&nbsp;
<input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_PRIVMSG}:</span></td>
<td class="row2">
<input type="radio" name="notifypm" value="1" {NOTIFY_PM_YES} />
<span class="gen">{L_YES}</span>&nbsp;&nbsp;
<input type="radio" name="notifypm" value="0" {NOTIFY_PM_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#-----[ REPLACE WITH ]
<!--<tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_REPLY}:</span><br />
<span class="gensmall">{L_NOTIFY_ON_REPLY_EXPLAIN}</span></td>
<td class="row2">
<input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} />
<span class="gen">{L_YES}</span>&nbsp;&nbsp;
<input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_PRIVMSG}:</span></td>
<td class="row2">
<input type="radio" name="notifypm" value="1" {NOTIFY_PM_YES} />
<span class="gen">{L_YES}</span>&nbsp;&nbsp;
<input type="radio" name="notifypm" value="0" {NOTIFY_PM_NO} />
<span class="gen">{L_NO}</span></td>
</tr> -->
#-----[ SAVE/CLOSE ]
#-----[ OPEN ]
templates/subSilver/posting_body.tpl
#-----[ FIND ]---
<!-- BEGIN switch_notify_checkbox -->
<tr>
<td>
<input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
</td>
<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
</tr>
<!-- END switch_notify_checkbox -->

#
#-----[ REPLACE WITH ]
<!-- BEGIN switch_notify_checkbox -->

<!--<tr>
<td>
<input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
</td>
<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
</tr> -->
<!-- END switch_notify_checkbox -->

#[ SAVE/CLOSE ]

#[ OPEN ]-
includes/usercp_register.php

#[ FIND ]-
'NOTIFY_REPLY_YES' => ( $notifyreply ) ? 'checked="checked"' : '',
'NOTIFY_REPLY_NO' => ( !$notifyreply ) ? 'checked="checked"' : '',

#[ REPLACE WITH ]-
/*'NOTIFY_REPLY_YES' => ( $notifyreply ) ? 'checked="checked"' : '',
'NOTIFY_REPLY_NO' => ( !$notifyreply ) ? 'checked="checked"' : '',*/


#[ FIND ]-
$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']),
'USERNAME' => $username,
'PASSWORD' => $password_confirm,
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']),

'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey)
);
}

$emailer->send();
$emailer->reset();

#[ IN-LINE, FIND ]-
$emailer->send();

#[ REPLACE WITH ]-
// $emailer->send();

# [ SAVE/CLOSE ]
#[ OPEN ]
groupcp.php
#[ FIND ]

$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'GROUP_MODERATOR' => $moderator['username'],
'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',

'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . "=$group_id&validate=true")
);
$emailer->send();
$emailer->reset();

#[ IN-LINE, FIND ]
$emailer->send();

#
#-----[ REPLACE WITH ]----

// $emailer->send();

#
#-----[ FIND ]--

$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'GROUP_NAME' => $group_name,
'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',

'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . "=$group_id")
);
$emailer->send();
$emailer->reset();

#
#-----[ IN-LINE, FIND ]--
$emailer->send();

#
#-----[ REPLACE WITH ]-

// $emailer->send();

#-----[ FIND ]-----------

$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'GROUP_NAME' => $group_name,
'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',

'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . "=$group_id")
);
$emailer->send();
$emailer->reset();

#
#-----[ IN-LINE, FIND ]-
$emailer->send();

#
#-----[ REPLACE WITH ]-

// $emailer->send();

#
#-----[ SAVE/CLOSE ]------------------------------------------
#
#-----[ OPEN ]----
templates/subSilver/admin/user_edit_body.tpl

#
#-----[ FIND ]----
<tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
<td class="row2">
<input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} />
<span class="gen">{L_YES}</span>&nbsp;&nbsp;
<input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_PRIVMSG}</span></td>
<td class="row2">
<input type="radio" name="notifypm" value="1" {NOTIFY_PM_YES} />
<span class="gen">{L_YES}</span>&nbsp;&nbsp;
<input type="radio" name="notifypm" value="0" {NOTIFY_PM_NO} />
<span class="gen">{L_NO}</span></td>
</tr>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- <tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
<td class="row2">
<input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} />
<span class="gen">{L_YES}</span>&nbsp;&nbsp;
<input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_NOTIFY_ON_PRIVMSG}</span></td>
<td class="row2">
<input type="radio" name="notifypm" value="1" {NOTIFY_PM_YES} />
<span class="gen">{L_YES}</span>&nbsp;&nbsp;
<input type="radio" name="notifypm" value="0" {NOTIFY_PM_NO} />
<span class="gen">{L_NO}</span></td>
</tr>-->

#
#-----[ SAVE/CLOSE ]------------------------------------------
#


#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<span class="gensmall">{S_WATCH_TOPIC}</span><br />
&nbsp;<br />

#
#-----[ REPLACE WITH ]------------------------------------------
#

<!-- <span class="gensmall">{S_WATCH_TOPIC}</span><br />
&nbsp;<br />-->

#
#-----[ SAVE/CLOSE ]
#-----[open]-
login.php

#
#-----[ FIND ]

'L_ENTER_PASSWORD' => $lang['Enter_password'],
'L_SEND_PASSWORD' => $lang['Forgotten_password'],

'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),

#
#-----[ IN-LINE, FIND ]
#
'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"),


#
#-----[ REPLACE WITH ]------------------------------------------
#
'U_SEND_PASSWORD' => "mailto:[email protected]?subject=I forgot my password&body=Tell me your login, a new password will be send to you to the e-mail address in your profile.",


#
#-----[ SAVE/CLOSE ]------------------------------------------
#


#
#-----[ OPEN ]------------------------------------------
#
privmsg.php

#
#-----[ FIND ]------------------------------------------
#

$emailer->send();

#
#-----[ REPLACE WITH ]------------------------------------------
#

// $emailer->send();

#
#[ SAVE/CLOSE ]

#[ RUN SQL QUERIES ]


DELETE FROM phpbb_topics_watch

UPDATE phpbb_users SET user_notify=0

UPDATE phpbb_users SET user_notify_pm=0

continua en el siguiente post
  #3 (permalink)  
Antiguo 01/05/2008, 20:49
 
Fecha de Ingreso: agosto-2006
Mensajes: 141
Antigüedad: 17 años, 8 meses
Puntos: 0
Re: desactivar verificacionn por mail, y notificaciones

aunque al leerlo se entiende que deberian detenerse los envios de los correos con este mod, lamentablemente seguia con el mismo problema asi k volvi a revisar el usercp_register y encontre que son 4 $emailer->send(); que habia k comentar, una vez echo eso me permitia el registro, pero al intentar loguear al usuario la pagina login quedaba en blanco, volvi a revisar (esta vez en la bd) y note que el usuario no habia sido activado (cambie el valor del campo user_active=1) y en ese momento me permitio loguearme, por lo que el ultimo cmabio a realizar es el sig
Cita:
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
por
Cita:
$sql = "INSERT INTO " . USERS_TABLE . " (user_id,user_active, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_actkey)
VALUES ($user_id,1, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 1, ";
espero k esto le sirva a alguien mas
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 21:53.