Support

  1. krnsgrffn
  2. Support
  3. Thursday, May 14 2015, 05:32 PM
Hi-

I am integrating Jevents' RSVPPro into a website I am developing. I will also be using Easy Profile. In order to fulfill the requirements of this job, I will need to be able to create users when people register for events via RSVPPro. How do I make sure that RSVPPro plays well with Easy Profile?
admin Accepted Answer
Admin
Hi,
Easy Profile extends Joomla user management, so registration and edit profile form are the same of Joomla*.

* tabs are generated by javascript and custom fields are added by user plugin.
  1. more than a month ago
  2. Support
  3. # 1
krnsgrffn Accepted Answer
Pro
That does not help me. RSVPPro creates the user and assumes that only the users table needs to be updated and that you are going to have only one name field. I will be using First Name and Last Name for Easy Profile, and the user info needs to be updated in both jsn_users and the users table. I have found the code where the user is created in RSVPPro. It looks like I will be recoding how it determines the name for users and then also making sure jsn_users is updated. This is going to be messy if I have to update RSVPPro, but such is life.
  1. more than a month ago
  2. Support
  3. # 2
krnsgrffn Accepted Answer
Pro
okay. I think I just figured this out. I just make sure I assign the correct data to the fields in the jsn_users table and the jsn_users plugin will do the rest and the jsn_users plugin will be called when the user plugins are loaded. Is this correct?

I noticed that the jsn_users plugin combines the firstname and lastname when present, so I don't even have to do that, do I? Beautiful!
  1. more than a month ago
  2. Support
  3. # 3
admin Accepted Answer
Admin
okay. I think I just figured this out. I just make sure I assign the correct data to the fields in the jsn_users table and the jsn_users plugin will do the rest and the jsn_users plugin will be called when the user plugins are loaded. Is this correct?
Yes, but I recommend to use our API to fill jsn_users table, try to read docs here: https://www.easy-profile.com/docs/38-jsnuser-object.html

So
- Create Joomla user with normal way
- Load JSN User with API
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser($joomlaUser->id);

- Fill Jsn User object with your value
$user->alias_of_field="your value";
$user->firstname="your value";
$user->lastname="your value";

- Save Jsn User
$user->save();
  1. more than a month ago
  2. Support
  3. # 4
krnsgrffn Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 5
krnsgrffn Accepted Answer
Pro
karen griffin wrote:

Okay. I believe I understand this. RSVPPro loads the user plugins to create the user. The user would then be added to both the users table and jsn_users. Then I use the jsn API to fill in the rest of the fields, correct?
  1. more than a month ago
  2. Support
  3. # 6
krnsgrffn Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 7
admin Accepted Answer
Admin
Okay. I believe I understand this. RSVPPro loads the user plugins to create the user. The user would then be added to both the users table and jsn_users. Then I use the jsn API to fill in the rest of the fields, correct?
Yes you can use it, but I see your posted code, you can try to add at this code before line 110:
$joomlauser->set('firstname','here the firstname');

if this work is more powerful
  1. more than a month ago
  2. Support
  3. # 8
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

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.