By Altitudes on Saturday, 26 March 2016
Posted in Technical Issues
Replies 15
Likes 0
Views 785
Votes 0
Hello

While creating user accounts in backend, I found 2 issues:

1- On creation page, tabs and fields are available only if they are set with "Appear During Editing" = Yes (in Profile Type Custom Fields). I think all the tabs and fields should be there, as they do when you edit a user in backend (the parameters "Appear During..." only apply to frontend).

2- If you check "Also approve this user" on the creation page, account is created Unpublished instead of Published (if you leave this option unchecked, account is created Pending which is OK).

Thanks

.Fixed in ES 1.4.9
Hi Altitudes,

Hm, that is weird. I just tried to replicate the issue on your test site but it seems like the privacy is showing up correctly (not appear during user creation but appear during editing). Refer my video link here, http://screencast.com/t/NjSNglesrsMi . Am I missing something here?
·
Friday, 01 April 2016 19:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here. Please find my response to your inquiry below:


1- On creation page, tabs and fields are available only if they are set with "Appear During Editing" = Yes (in Profile Type Custom Fields). I think all the tabs and fields should be there, as they do when you edit a user in backend (the parameters "Appear During..." only apply to frontend).

I believe in one of the initial releases, we actually had this behavior but users were misunderstanding that these fields will appear for the user as well. Therefore we have removed this behavior. I would suggest that you post this at http://stackideas.com/voices/easysocial and let other users vote for this


2- If you check "Also approve this user" on the creation page, account is created Unpublished instead of Published (if you leave this option unchecked, account is created Pending which is OK).

Looks like there is a bug here Good catch!
·
Monday, 28 March 2016 01:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark

Sorry but I don't understand your sentence "users were misunderstanding that these fields will appear for the user as well".

What would possibly make sense is that tabs and fields set with "Appear During Registration" = Yes appear when an admin creates a user in backend, rather than fields set with "Appear During Editing" = Yes.

But since in fact all tabs and fields appear during editing, I don't see the point of not having them all during creation... It looks like not many of your customers use backend user creation anyway, otherwise the other bug I mentioned would have been found a long time ago!
·
Monday, 28 March 2016 02:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitudes,

I am really sorry for the delay of this reply.

Can you download my attachment below and place it inside your /administrator/components/com_easysocial/views/users/ folder and see how it goes?
·
Monday, 28 March 2016 16:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello

Thank you. I tested user creation in backend on my dev site and:

- All tabs are displayed whatever the "Appear During..." options are
- But tab is empty if it is set with "Appear During Registration" = No
- If a field is set with "Appear During Registration" = No it is not displayed
- Issue 2- I mentioned is not fixed
·
Tuesday, 29 March 2016 18:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitudes,

Can you try this file instead and see how it goes?
·
Tuesday, 29 March 2016 18:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, this is much better

- All tabs and fields are displayed whatever the "Appear During..." options are
- But "Birth year privacy" should not be visible (not working, privacy options are not available during creation in general)
- Issue 2- I mentioned in my 1st message is not fixed
·
Tuesday, 29 March 2016 20:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitudes,

I am really sorry for the delay of this reply.

I am sorry I've missed your second issue previously. Kindly download my attachment below and place it inside your /administrator/components/com_easysocial/controllers/ folder and see how it goes.

Regarding on the birthday birth year privacy issue, unfortunately it is not possible to distinguish if the field is being loaded from backend or frontend, hence it is not possible currently to hide the privacy options when creating the user from backend. Hope you understand.
·
Wednesday, 30 March 2016 16:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, you fix for approving the user is working fine

Regarding the "Birth year privacy" that should not show during creation:
- today, in frontend, it is no showing when a user is registering
- today, in backend, when editing a user, it is showing but cannot be modified

Can't we have one of those two behaviors when creating a user in backend? (Not showing would be the best of course )
·
Wednesday, 30 March 2016 21:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitudes,

I am really sorry for the delay of this reply.

Can you download my attachment below and place it inside your /media/com_easysocial/apps/fields/user/datetime/ folder and see how it goes?
·
Friday, 01 April 2016 15:31
·
0 Likes
·
0 Votes
·
0 Comments
·
With this modification, "Birth year privacy" in backend has disappeared from forms in both creation and modification of a user account. It should be removed from creation form only (and should appear on modification, in read only as for the other privacy preferences).
·
Friday, 01 April 2016 17:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Altitudes,

Good catch. Can you go to your /media/com_easysocial/apps/fields/user/datetime/datetime.php and edit the following code at line 223 and see how it goes?
if ($app->isAdmin()) {
$yearPrivacy = false;
}

// replace it with

if ($app->isAdmin() && !$user->id) {
$yearPrivacy = false;
}
·
Friday, 01 April 2016 17:57
·
0 Likes
·
0 Votes
·
0 Comments
·
With this code change, the "Birth year privacy" is back in user creation form in backend
·
Friday, 01 April 2016 19:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Ooops... I don't know what I did exactly but you're right, this is working fine!

Which means that every is OK now, I will wait until the next ES release to have all this on my production site.

Thank you
·
Friday, 01 April 2016 19:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Altitudes, glad that your issues are resolved now.
·
Sunday, 03 April 2016 15:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post