Disable account change but allow users to change avatar

Suggestions, General Discussion and Feature Requests about eFront

Disable account change but allow users to change avatar

Postby trentv » Mon Jan 26, 2015 3:24 am

Is it possible to disable the Account Change option in the System Settings but still allow users to change/select/upload their avatar? I know it seems like a strange request but I've tied efront to a eCommerce software.

I've disabled the Account Change option to ensure that the APIs work properly which forces users to change their information from a single location. With that being said, they still use the forums in eFront and it would be nice to be able to allow them to select their own avatar or upload an image of themselves.

You can allow them to change their password but everything else in the PERSONAL INFO page is tied to a single Account Change setting in the System Settings. I'm not sure that make sense.
trentv
 
Posts: 10
Joined: Tue Jan 06, 2015 3:03 pm

Re: Disable account change but allow users to change avatar

Postby trentv » Mon Jan 26, 2015 4:18 am

Incidentally, I'm not able to change the avatars for users. I keep getting this error:

The specified node does not exist: /home/accountname/www/themes/default/images/avatars/system_avatars/unknown_small.png (1001)

I can change the rest of the account information for a user if I put a blank option for the avatar image.
trentv
 
Posts: 10
Joined: Tue Jan 06, 2015 3:03 pm

Re: Disable account change but allow users to change avatar

Postby vprountzos » Thu Jan 29, 2015 2:46 pm

Hello,

Can you please tell me what eFront version you have installed?

Kind regards

V. Prountzos
vprountzos
 
Posts: 589
Joined: Tue Feb 19, 2013 11:06 am

Re: Disable account change but allow users to change avatar

Postby tagenata » Wed Mar 18, 2015 4:34 pm

Maybe a bit too late, but in case it helps anyone:

We recently had the same requirement for two of our e-learning platforms (running eFront 3.6.12), and we solved it by making two changes to the file /libraries/includes/personal/profile.php:

1. Comment the following code (line 61):

Code: Select all
//$constrainAccess[] = 'file_upload';


2. Add this code after line 144:

Code: Select all
unset($allFields['file_upload']);
unset($allFields['file_upload_text']);
unset($allFields['sidenote']);
unset($allFields['system_avatar']);


Users can now upload their own avatars, while keeping the Account Change option disabled.
User avatar
tagenata
 
Posts: 2
Joined: Wed Mar 18, 2015 4:03 pm

Re: Disable account change but allow users to change avatar

Postby elpapath » Thu Mar 19, 2015 2:27 pm

Thanks for sharing this info :)

Eleftheria
elpapath
 
Posts: 786
Joined: Wed Jun 18, 2008 9:25 am

Re: Disable account change but allow users to change avatar

Postby trentv » Thu Sep 10, 2015 2:27 pm

I'm still getting an error even with the change you suggested. It allows a user to upload a file but when they go back to change somthing simple like their password, it gives this error:

The specified node does not exist: /home/mydirectory/www/themes/default/images/avatars/system_avatars/QuickForm Error: nonexistent html element (1001)

When I click "More info" I get:

#0 /home/mydirectory/libraries/includes/personal/profile.php(330): EfrontTree->seekNode('/home/mydirectory/w...')
#1 /home/mydirectory/libraries/includes/personal.php(109): require_once('/home/mydirectory/l...')
#2 /home/mydirectory/public_html/administrator.php(205): include('/home/mydirectory/l...')
#3 {main}

How do I get it to update without the error I'm seeing? Any thoughts?
trentv
 
Posts: 10
Joined: Tue Jan 06, 2015 3:03 pm

Re: Disable account change but allow users to change avatar

Postby trentv » Thu Sep 10, 2015 3:31 pm

Never mind. I found the issue in profile.php.
trentv
 
Posts: 10
Joined: Tue Jan 06, 2015 3:03 pm

Re: Disable account change but allow users to change avatar

Postby next594 » Wed Dec 21, 2016 10:22 am

I thank you for the information! I was looking for and could not find. You helped me!
upsers
next594
 
Posts: 3
Joined: Wed Dec 21, 2016 10:12 am


Return to eFront

Who is online

Users browsing this forum: No registered users and 2 guests

cron