Support

  1. jsanglier
  2. General
  3. Sunday, November 07 2021, 01:55 PM
  4.  Subscribe via email
Hi,
I'm using Convert Form plugin for my registration form.
https://www.tassos.gr/joomla-extensions/convert-forms/docs/how-to-create-a-custom-joomla-user-registration-form

I have email, fistname, lastname and password as fields.
But, when a user is created with the code, it didn't add the fistname.
Can you help me for the PHP code to add to update the fistname field ?
admin Accepted Answer
Admin
Hi,
you can use JsnUser object http://docs.easy-profile.com/index.php/article/jsnuser-object
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser($user_id);
$user->firstname = $user_firstname;
$user->save();
NOTE: you should fill variables $user_id and $user_firstname with correct values
  1. 2 weeks ago
  2. General
  3. # 1
jsanglier Accepted Answer
Pro
Content Protected
  1. 2 weeks ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,
unfortunately I does not know how to works Convert Form, so we are not aware how to get variables like user ID and firstname.

Also there is an error in line 6, this
$jsnuser=JsnHelper::getUser($new_user>id);
should come
$jsnuser=JsnHelper::getUser($new_user->id);
But probably variable $lastname is not filled with the form value.
  1. 2 weeks ago
  2. General
  3. # 3
jsanglier Accepted Answer
Pro
Content Protected
  1. 2 weeks ago
  2. General
  3. # 4
admin Accepted Answer
Admin
Hi,
normally the table #__jsn_users is filled when user update or create an account, the sync button create a empty row for each pre-existing user in the Easy Profile user table to avoid problems with third party components. Basically if you does not have errors then this button is useless.
  1. 2 weeks ago
  2. General
  3. # 5
jsanglier Accepted Answer
Pro
Hi,
I have an issue to update a radio button with this code. $user_type contain either prospect-B2B, prospect-B2C
$jsnuser->contact_type = $user_type;

contact_type is a field with
Public|Non défini
prospect-B2C|Prospect B2C
prospect-B2B|Prospect B2B
client-B2C|Client B2C
client-B2B|Client B2B
client-B2B-premium|Client B2B Premium

>> What is the right code the select the value ?
  1. one week ago
  2. General
  3. # 6
jsanglier Accepted Answer
Pro
It' finally working #typo
  1. one week ago
  2. General
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.