Avisos
Vaciar todo

Buddypress no envía el correo de confirmación después del registro  

 
Fonsi
 Fonsi
Nuevo usuario

Buenas!

Estamos creando una comunidad en nuestra web. La cosa es que hace un año instalamos Buddypress y lo configuramos y todo iba bien, pero no movíamos el suficiente tráfico para generar comunidad y lo desactivamos hasta hace poco.

Ahora tras hacer un nuevo registro de usuario, Buddypress no envía el correo de confirmación a este, y por tanto esto provoca que los usuarios lo intenten en reiteradas ocasiones con distintos mails, nombres, etc, creando varios perfiles para una sola persona y la mayoría se largan frustrados, además de que nosotros tengamos que estar pendientes para dar de alta el usuario manualmente.
Vemos esto inviable, y en pocas semanas se nos avecina miles de registros por una acción que vamos a tener con un influencer, por lo que seguramente no podamos hacerla si no solucionamos esto.

Instalé WP Mail SMTP y lo configuré para ver si así desaparecía el problema, pero sigue igual.

También he leído que hay que tocar buddypress/bp-core/bp-core-functions.php y cambiar unas líneas de código.

¿Sabéis una forma de solucionar esto sin tener que estar modificando el bp-core? Gracias!!

URL del sitio: Contenido solo visible a usuarios registrados

Citar
Respondido : 14/05/2019 4:55 am
Pepe
 Pepe
Soporte CMS Webempresa Admin

Hola Fonsi.

Tienes que modificar el archivo bp-core-functions.php

.- Accede a tu cuenta de cPanel -> Administrador de archivo.
.- Accede a la carpeta wp-content -> plugins -> buddypress -> bp-core -> bp-core-functions.php
.- Busca el siguiente código que tiene que estar sobre la línea 3435 hasta la 3453

'core-user-registration' => array(
			/* translators: do not remove {} brackets or translate its contents. */
			'post_title'   => __( '[{{{site.name}}}] Activate your account', 'buddypress' ),
			/* translators: do not remove {} brackets or translate its contents. */
			'post_content' => __( "Thanks for registering!nnTo complete the activation of your account, go to the following link and click on the Activate button:n{{{activate.url}}}nnIf the 'Activation Key' field is empty, copy and paste the following into the field - {{key}}", 'buddypress' ),
			/* translators: do not remove {} brackets or translate its contents. */
			'post_excerpt' => __( "Thanks for registering!nnTo complete the activation of your account, go to the following link and click on the 'Activate' button: {{{activate.url}}}nnIf the 'Activation Key' field is empty, copy and paste the following into the field - {{key}}", 'buddypress' )
		),
		'core-user-registration-with-blog' => array(
			/* translators: do not remove {} brackets or translate its contents. */
			'post_title'   => __( '[{{{site.name}}}] Activate {{{user-site.url}}}', 'buddypress' ),
			/* translators: do not remove {} brackets or translate its contents. */
			'post_content' => __( "Thanks for registering!nnTo complete the activation of your account and site, go to the following link: {{{activate-site.url}}}.nnAfter you activate, you can visit your site at {{{user-site.url}}}.", 'buddypress' ),
			/* translators: do not remove {} brackets or translate its contents. */
			'post_excerpt' => __( "Thanks for registering!nnTo complete the activation of your account and site, go to the following link: {{{activate-site.url}}}nnAfter you activate, you can visit your site at {{{user-site.url}}}.", 'buddypress' ),
			'args'         => array(
				'multisite' => true,
			),
		),

Sustituye ese bloque por el siguiente:

'core-user-registration' => array(
/* translators: do not remove {} brackets or translate its contents. */
'post_title' => __( '[{{{site.name}}}] Activate your account', 'buddypress' ),
/* translators: do not remove {} brackets or translate its contents. */
'post_content' => __( "Thanks for registering!nnTo complete the activation of your account, go to the following link: {{{activate.url}}}", 'buddypress' ),
/* translators: do not remove {} brackets or translate its contents. */
'post_excerpt' => __( "Thanks for registering!nnTo complete the activation of your account, go to the following link: {{{activate.url}}}", 'buddypress' ),
),
'core-user-registration-with-blog' => array(
/* translators: do not remove {} brackets or translate its contents. */
'post_title' => __( '[{{{site.name}}}] Activate {{{user-site.url}}}', 'buddypress' ),
/* translators: do not remove {} brackets or translate its contents. */
'post_content' => __( "Thanks for registering!nnTo complete the activation of your account and site, go to the following link: {{{activate-site.url}}}.nnAfter you activate, you can visit your site at {{{user-site.url}}}.", 'buddypress' ),
/* translators: do not remove {} brackets or translate its contents. */
'post_excerpt' => __( "Thanks for registering!nnTo complete the activation of your account and site, go to the following link: {{{activate-site.url}}}nnAfter you activate, you can visit your site at {{{user-site.url}}}.", 'buddypress' ),

),

Nota: antes de realizar la modificación recuerda descargar una copia del archivo para tener el original.

Un saludo

ResponderCitar
Respondido : 14/05/2019 1:59 pm

wpdoctor-revisa-la-salud-de-tu-wordpress

Fonsi
 Fonsi
Nuevo usuario

He hecho exactamente lo que dices y no carga ahora la web. Por eso no quería tocar el bp-core.

¿Qué puedo hacer?

ResponderCitar
Respondido : 15/05/2019 9:12 am
Pepe
 Pepe
Soporte CMS Webempresa Admin

Hola Fonsi.

Lo primero descarga una copia del archivo original antes de realizar las modificaciones.
.- Sustituye el código que te indique antes por el siguiente:

'core-user-registration' => array(
/* translators: do not remove {} brackets or translate its contents. */
'post_title' => __( '[{{{site.name}}}] Activate your account', 'buddypress' ),
/* translators: do not remove {} brackets or translate its contents. */
'post_content' => __( "Thanks for registering!nnTo complete the activation of your account, go to the following link: {{{activate.url}}}", 'buddypress' ),
/* translators: do not remove {} brackets or translate its contents. */
'post_excerpt' => __( "Thanks for registering!nnTo complete the activation of your account, go to the following link: {{{activate.url}}}", 'buddypress' ),
),
'core-user-registration-with-blog' => array(
/* translators: do not remove {} brackets or translate its contents. */
'post_title' => __( '[{{{site.name}}}] Activate {{{user-site.url}}}', 'buddypress' ),
/* translators: do not remove {} brackets or translate its contents. */
'post_content' => __( "Thanks for registering!nnTo complete the activation of your account and site, go to the following link: {{{activate-site.url}}}.nnAfter you activate, you can visit your site at {{{user-site.url}}}.", 'buddypress' ),
/* translators: do not remove {} brackets or translate its contents. */
'post_excerpt' => __( "Thanks for registering!nnTo complete the activation of your account and site, go to the following link: {{{activate-site.url}}}nnAfter you activate, you can visit your site at {{{user-site.url}}}.", 'buddypress' ),

),

En este enlace tienes los pasos:
-> https://github.com/danicotillas/comunicacionabierta.net/blob/master/_posts/2018-10-30-soluciona-el-envio-de-email-de-activacion-en-buddypress.md

Una vez tengas añadido el código configura la cuenta de correo por SMTP, puedes utilizar el siguiente plugin:
-> https://es.wordpress.org/plugins/easy-wp-smtp/

En esta entrada del blog tienes los pasos para configurar el plugin:
-> https://www.webempresa.com/blog/smtp-en-wordpress.html

un saludo

ResponderCitar
Respondido : 15/05/2019 4:36 pm

Gestor de Contraseñas - VPN Conexión Segura - Gestor 2FA (Segundo Factor de Autenticación