Recordad que para pedir soporte alguno, debéis facilitar los datos de soporte oportunos por favor, mirad aquí y leer las Normas generales del foro, esto nos servirá de ayuda para dar el mejor soporte..

Gracias.

La Administración de phpBB España.

Deshabilitar envio de mails al entrar en un grupo

🔓 Foros cerrados y son sólo de lectura
Cerrado
miguelon
Observador/a
Mensajes: 12
Registrado: 24 Ago 2005, 00:36

Deshabilitar envio de mails al entrar en un grupo

#1

Mensaje por miguelon »

Hola, estoy funcionando con un foro phpBBXS actualizado a la í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?ºltima versií?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?³n de phpBB y estoy interesado en deshabilitar el enví?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?­o de mails cuando meto a un usuario en un determinado grupo.
Existe algí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?ºn mod o alguna forma toqueteando el cí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?³digo para que phpBB no enví?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?­e estos avisos?

Intentí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?©, tras buscar en phpbb.com comentar la linea de groupcp.php que dice $emailer->send();, dentro del if (!$is_autogroup_enable) pero sin resultados

Muchas gracias de antemano

Avatar de Usuario
ThE KuKa
Administrador
Mensajes: 10432
Registrado: 04 Ene 2004, 19:27
Género:
Edad: 50

#2

Mensaje por ThE KuKa »

Ni idea miguelon, no me suena un [acronym="Un aí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?±adido para una mejora en el foro"]MOD[/acronym] asi, lo siento.

📌 Raul [ThE KuKa] en phpBB 📌
✅ Jr. Extension Validator - Jr. Styles Validator - Style Customisations - Translator - International Support Team
✅

Si te gustan mis estilos, traducciones, etc. y quieres mostrar algo de aprecio, no dudes en hacer una donación Imagen
:flag_es: phpBB España - En línea desde 2003 :heart:



miguelon
Observador/a
Mensajes: 12
Registrado: 24 Ago 2005, 00:36

Re: Deshabilitar envio de mails al entrar en un grupo

#3

Mensaje por miguelon »

gracias por responder theKuka, ya lo he conseguido... me confundí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?­ al comentar el $emailer->send();.
Por si a alguien le sirve de algo, en groupcp.php:
buscar

Código: Seleccionar todo

					//
					// Get the group name
					// Email the user and tell them they're in the group
					//
					$group_sql = "SELECT group_name 
						FROM " . GROUPS_TABLE . " 
						WHERE group_id = $group_id";
					if ( !($result = $db->sql_query($group_sql)) )
					{
						message_die(GENERAL_ERROR, 'Could not get group information', '', __LINE__, __FILE__, $group_sql);
					}

					$group_name_row = $db->sql_fetchrow($result);

					$group_name = $group_name_row['group_name'];

					include($phpbb_root_path . 'includes/emailer.'.$phpEx);
					$emailer = new emailer($board_config['smtp_delivery']);

					$emailer->from($board_config['board_email']);
					$emailer->replyto($board_config['board_email']);

					$emailer->use_template('group_added', $row['user_lang']);
					$emailer->email_address($row['user_email']);
					$emailer->set_subject($lang['Group_added']);

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

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

Código: Seleccionar todo

					//
					// Get the group name
					// Email the user and tell them they're in the group
					//
					$group_sql = "SELECT group_name 
						FROM " . GROUPS_TABLE . " 
						WHERE group_id = $group_id";
					if ( !($result = $db->sql_query($group_sql)) )
					{
						message_die(GENERAL_ERROR, 'Could not get group information', '', __LINE__, __FILE__, $group_sql);
					}

					$group_name_row = $db->sql_fetchrow($result);

					$group_name = $group_name_row['group_name'];

					include($phpbb_root_path . 'includes/emailer.'.$phpEx);
					$emailer = new emailer($board_config['smtp_delivery']);

					$emailer->from($board_config['board_email']);
					$emailer->replyto($board_config['board_email']);

					$emailer->use_template('group_added', $row['user_lang']);
					$emailer->email_address($row['user_email']);
					$emailer->set_subject($lang['Group_added']);

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

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

Avatar de Usuario
ThE KuKa
Administrador
Mensajes: 10432
Registrado: 04 Ene 2004, 19:27
Género:
Edad: 50

#4

Mensaje por ThE KuKa »

Si sirve miguelon, es mas lo paso a FAQS de este sitio...

S@lu2

📌 Raul [ThE KuKa] en phpBB 📌
✅ Jr. Extension Validator - Jr. Styles Validator - Style Customisations - Translator - International Support Team
✅

Si te gustan mis estilos, traducciones, etc. y quieres mostrar algo de aprecio, no dudes en hacer una donación Imagen
:flag_es: phpBB España - En línea desde 2003 :heart:



Cerrado

Volver a “Archivo phpBB 2.0”