By Rachel Jollie on Monday, 08 August 2016
Posted in Technical Issues
Likes 0
Views 390
Votes 0
I created a user through the "Users" section in the Joomla backend, aka the default way of creating a user.

I see this user does automatically show up in EasySocial which is great! But it is not assigned a default profile type. I was wondering if I'm missing a setting or how I can set a default profile type.

I would like my desired registration flow to be:
- User signs up to website with Membership Pro and pays a fee
- Membership pro creates the user account and assigns them to a user group
- User is imported into Easy social with the default profile type
- (it would be great to also control the profile type based on the joomla user group, but I don't think that's possible right?)

Thank you for the advice!
Hi Rachel Jollie,

Regarding your inquiry you can automatically assign the user register at the backend to default group (EasySocial) by:
1. Click EasySocial>Profile Type>starred the profile type that you want to the user automatically assigned to
·
Monday, 08 August 2016 12:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for telling me about the default profile type. But I am still experiencing the same issue:

In joomla backend > Users > New User, I create a testuser.
I go to components > easy social > users.

I see my testuser appear in easysocial, but no profile is added. Under the profile type it says "not available," and that user is marked as an orphan user. If I'm doing this wrong, please let me know.

Another option is to add php script upon the creation of a new user, so I'd also like to know the function to set a profile type. I see in the developer documentation there is a "getProfile()," - what is the function to "setProfile" ?
·
Monday, 08 August 2016 20:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,


I see my testuser appear in easysocial, but no profile is added. Under the profile type it says "not available," and that user is marked as an orphan user. If I'm doing this wrong, please let me know.

If you are using joomla user registration at backend, you have to set first "New User Registration Group" at Backend>Global Configuration>User>Component and enable "Allow User Registration" then it will show "New User Registration Group" as shown http://prntscr.com/c3ck9j. Please give it a try and see how it goes .
·
Tuesday, 09 August 2016 11:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for your reply, but I believe you are misunderstanding me.

I do not need to set a joomla user group. I don't need anything with "groups."
I need to set the "profile type," the term specifically used in EasySocial.

When I create a user in the joomla backend, it appears in "Components > EasySocial > Users" WITHOUT a profile type. Please see the screenshot.

If it isn't possible assign a profile type by creating users in the joomla backend, please direct me to the php function in which I can assign the profile type myself. I'm assuming it would be close to "setProfile(userid, profileid)" or something like that?
·
Tuesday, 09 August 2016 15:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

I am sorry for the confusion above. I suspected that maybe you haven't created any "Profiles Types" at Backend>Comopnents>EasySocial>Profiles types as shown http://prntscr.com/c3ewo0 or maybe you can provide us with your backend and FTP access for further check on this issue? Please advice.


If it isn't possible assign a profile type by creating users in the joomla backend, please direct me to the php function in which I can assign the profile type myself. I'm assuming it would be close to "setProfile(userid, profileid)" or something like that?

Actually, it is possible to assign profile types at backend. Maybe there's a bug and we need to access your backend in order to have better view of this issues. Thanks for understanding.
·
Tuesday, 09 August 2016 16:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello again.
I have created 4 profile types, and assigned one as default - I've pretty much followed the online documentation to configure all the settings, so everything is in place.

It is simply the automatic assignment of a "profile type" upon the creation of a user in the joomla backend that isn't working.
Perhaps I would need to turn off a plugin?
This might indeed be a bug.

Unfortunately the website I'm working on is for a client and I cannot give you back-end access. At this point, it would be great if you could answer my initial question about the php function to assign a profile type.

Thank you.
·
Tuesday, 09 August 2016 16:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Rachel Jollie,

We've tried our best to replicate this issue locally where we cannot simply know the exact caused for this as you cannot give us the access
However, we've came across on one possible testing, where it could be you've disable one plugin (User - EasySocial) where it functioned as synchronizing the Joomla user with EasySocial.
Can you double check it is you have enable this plugin and try to create a new user at Joomla backend, it is the new user still not assigned to the default profile type.
If this issue still persist, you can try to edit in the function onUserAfterSave in the file:
JOOMLA_FOLDER\plugins\user\easysocial\easysocial.php
·
Tuesday, 09 August 2016 17:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,
Your response actually led me to the right answer - it was the "OS Membership - Easysocial plugin" that I needed to disable. That was preventing my user to be created properly in EasySocial.

Thank you also for redirecting me to the right php files as well.
·
Wednesday, 10 August 2016 02:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Rachel Jollie,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Wednesday, 10 August 2016 10:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post