Presales Questions about Custom Fields in AJAX Register
- Rogmon
- Topic Author
- Offline
- New Member
- Thank you received: 0
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.
- Saka
- Offline
- Administrator
Thanks for your interest in AJAX Register.
Yes! It is visible from last 2 images on screenshots page .- 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 also visible from image nr. 6 on screenshots page .- Likewise, are the Custom Fields available to Admins if they manually edit a user in the Backend?
They are not. But this is actually very good idea and I will put it on my TODO list for next version.- 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;
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- Rogmon
- Topic Author
- Offline
- New Member
- Thank you received: 0
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.
- Saka
- Offline
- Administrator
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.
- Saka
- Offline
- Administrator
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.
- misshooter
- Offline
- New Member
- Thank you received: 0
How should I exactly use this code to get acces to one extra field?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);
Should I replace 'extra' with the field name?
Like ($user->postalcode) or something?
Please Log in or Create an account to join the conversation.