Bienvenido, Invitado
Recordarme

TEMA:

Skip already registered user - BF Registration Form 8 meses 2 semanas antes #263251

  • Autor del tema
  • geeksscript
  • Fuera de línea
  • Senior Breezer
  • Senior Breezer
  • Mensajes: 117
  • Gracias recibidas: 1
Hello!

I hope you're doing well.

I am using BF Registration along with additional form fields for guest users. There are instances when the user submitting the form is already registered on the website and when they try to submit the form, it shows user already registered message.

How can I skip account creation for such users and simply save the form data they entered?

Please guide me.

Regards,
Sanchit

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Skip already registered user - BF Registration Form 8 meses 2 semanas antes #263256

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 10135
  • Karma: 3
  • Gracias recibidas: 682
Hi,

this form is for registration, and if user is already registered he can't submit it again (this is the reason why this meesage is showed).

But here is another form which you can use when user is already registered:
crosstec.org/en/downloads/free/form-apps...omla-login-form.html

Hope this helps

Let me know if you need more help

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Skip already registered user - BF Registration Form 8 meses 2 semanas antes #263322

  • Autor del tema
  • geeksscript
  • Fuera de línea
  • Senior Breezer
  • Senior Breezer
  • Mensajes: 117
  • Gracias recibidas: 1
Thanks for your reply, Tihana.

I am not looking for a login form when the user is registered. I have a form with around 10 fields (including email/username/password). After submission it then creates an account for the user in case s/he is not registered.

I am looking for a solution that would skip only the registration part for users that are already registered. Is this possible? Please let me know.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Skip already registered user - BF Registration Form 8 meses 2 semanas antes #263330

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 10135
  • Karma: 3
  • Gracias recibidas: 682
Hi,

I am not 100% sure this is possible, but I will check it and let you know :)

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Skip already registered user - BF Registration Form 8 meses 2 semanas antes #263406

  • Autor del tema
  • geeksscript
  • Fuera de línea
  • Senior Breezer
  • Senior Breezer
  • Mensajes: 117
  • Gracias recibidas: 1
I guess I was able to achieve it, simply by checking email from database in Begin Submit as:
$the_email_field = ff_getSubmit('email');
$dba_email = JFactory::getDBO();
$sql_email_query = "SELECT id FROM #__users WHERE email like '".$the_email_field."'";
$dba_email->setQuery($sql_email_query);
$userid = $dba_email->loadResult();

if (empty($userid)) {

// registration code goes here

}

I hope this code is okay according to you. Let me know if you have any suggestions.

Regards,
Sanchit

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Skip already registered user - BF Registration Form 8 meses 2 semanas antes #263409

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 10135
  • Karma: 3
  • Gracias recibidas: 682
Hi,

yep.
Did you test it?

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

  • Página:
  • 1
  • 2
  • 3
Moderadores: ForumSupport
Tiempo de carga de la página: 0.056 segundos