Presales Questions about Custom Fields in AJAX Register

12 years 1 week ago #6804 by Rogmon
Hello,

I´m interested in AJAX Register, and would like to ask a couple of questions:

- When Custom Fields are added in the registration form, is the user able to edit them in the future via an 'Edit User Profile' link? (once they are registered).

- Likewise, are the Custom Fields available to Admins if they manually edit a user in the Backend?

- Are the Custom Fields added to the User object so they could be accessed inside a PHP script using something similar to this:
$user = JFactory::getUser();
echo $user->CustomField1;

Thanks in advance!

Best regards,
Roger.

Please Log in or Create an account to join the conversation.

12 years 1 week ago - 12 years 1 week ago #6805 by Saka
Hello,

Thanks for your interest in AJAX Register.

- When Custom Fields are added in the registration form, is the user able to edit them in the future via an 'Edit User Profile' link? (once they are registered).

Yes! It is visible from last 2 images on screenshots page .

- Likewise, are the Custom Fields available to Admins if they manually edit a user in the Backend?

Yes! It is also visible from image nr. 6 on screenshots page .

- Are the Custom Fields added to the User object so they could be accessed inside a PHP script using something similar to this:

$user = JFactory::getUser();
echo $user->CustomField1;

They are not. But this is actually very good idea and I will put it on my TODO list for next version.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

12 years 1 week ago #6811 by Rogmon
Hello Saka,

thank you very much.

In fact, we are interested in adding custom fields in orther to segment our users, but without them knowing it (we will create each user account manually, it´s a kind of restricted site).

Would it be possible to have Custom Fields that only the Admin could 'see', so they wouldn´t be showed if the user edit it´s own details?

If the option of easily accesing Custom Fields via PHP is added, this is going to be a killer extension, as it will allow for a lot of cool things! Is there any estimated time of release for the nest version?

Thanks!
Roger.

Please Log in or Create an account to join the conversation.

12 years 1 week ago #6812 by Saka
I can take a look on that for next version too. Currently it's possible to have extra fields on registration and/or user profile (including admin). It's probably possible to have admin only fields too (non-required).

Should be out in the beginning of next month.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

11 years 10 months ago - 11 years 10 months ago #6856 by Saka
Hi,

The new version is out and the extra fields are now attached to the user object so they can be accessed via:
$user = JFactory::getUser();
print_r($user->extra);

Also added an option to display extra fields to admin only.

Emir Sakic
www.sakic.net

Please Log in or Create an account to join the conversation.

11 years 9 months ago - 11 years 9 months ago #6874 by misshooter

Hi,

The new version is out and the extra fields are now attached to the user object so they can be accessed via:

$user = JFactory::getUser();
print_r($user->extra);

How should I exactly use this code to get acces to one extra field?
Should I replace 'extra' with the field name?

Like ($user->postalcode) or something?

Please Log in or Create an account to join the conversation.

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch