Forums

e-mail as Username

lselbach 12 Jan, 2012
Hi ChronoEngine team!
(before posting it I´ve found some answers for V3 or J1.5)

I´m using Chronoforms V4 on Joomla 1.7.3

I´m trying to create a form for user registration WITHOUT username, just using e-mail as username.

(the usual way, with username, like explained in V4 tutorial has worked fine)

I put username as a hidden field.
Created a custom code field BEFORE registration with:
<?php
$username =$email;
?>


didn´t worked.

Any hint?

(I also want to record some other information, is it possible??)

Cheers!
Lucas
GreyHead 13 Jan, 2012
Hi Lucas,

Unfortunately you can't just make up variable names and expect them to take on the correct values :-(

In this case: in the Joomla! Registration action you can put the name of the Email input into the Username box as well as the Email box.

Bob
lselbach 13 Jan, 2012
Hi Bob!
I tried this one (it was my second try, I forgot to mention).
It´s just like the image attached.
But when I fill the form and submit, it doesn´t work...

Anything else??

Lucas
GreyHead 15 Jan, 2012
Hi Lucas,

It works OK here. What error do you get?

Bob
lselbach 15 Jan, 2012
Hi Bob,

I took off the username textbox (attached img).
(to avoid user mistake, I think that less is the best)
[attachment=1]form empreendedor.jpg[/attachment]

This is the error (attached img).
[attachment=0]form empreendedor-front.jpg[/attachment]

I tried to keep username textbox hidden, but didn´t worked out too.

Lucas
GreyHead 15 Jan, 2012
Hi lselbach,

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
GreyHead 16 Jan, 2012
Hi Lucas,

A few problems with the form but nothing major:
[list=a]
  • You have a hidden input with name='username'; please remove this it isn't needed.

  • The Custom code action has some code in it that does nothing, you can delete this action too.

  • In the Joomla! Registration action you have 'username' in the Username box; you need to have email there to set the email as the username.

  • You should also move the Check Captcha action to the top of the On Submit event so that it is checked before the registration and not after it.
  • [/list:o]

    Bob
    lselbach 16 Jan, 2012
    Hi Bob,
    Just did that, but the error persists.
    Anything else??

    ps: did another attempts:
    1. removed captcha
    2. Inserted textbox Username again (now it doesn´t work)...

    Lucas
    GreyHead 16 Jan, 2012
    Hi Lucas,

    It works OK here once I'd removed the Submit URL (you almost never need that entry).

    Bob
    lselbach 19 Jan, 2012
    Ok Grey,
    Since I removed the Submit URL it worked ok.

    I´ll figure out how to make everything work.
    Thanks for all your support.

    Once I have an International CC I´ll make a donation.

    Best Regards
    Lucas
    This topic is locked and no more replies can be posted.