Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty existing profile fields on existing site #10

Closed
NoobyNoob1966 opened this issue Jun 14, 2013 · 4 comments
Closed

Empty existing profile fields on existing site #10

NoobyNoob1966 opened this issue Jun 14, 2013 · 4 comments

Comments

@NoobyNoob1966
Copy link

When I install profile manger and create different profile types on existing site, all existing users profile pages do not display any of their fields that were filled before.
All "Default" profile fields were imported through manager and added to "free user" profile category/profile type. This profile type is set to be a default in manager. When I go to edit these profiles, all fields data are still populated but until I click save, these fields do not display on profile page.

This is a problem on a site with lots of existing users. Any quick workarounds for this?
Thanks.

@NoobyNoob1966
Copy link
Author

I looked into profile_manager\views\default\profile\edit.php and compared with default profile\edit.php file, profile manager calls $value = $user->$metadata_name; while default profile edit file calls $value = $user->$shortname;
So it seems like user metadata has not been saved yet (until you click save) therefore it's not displaying even with default fields imported and info in those fields are still visible.
Maybe some kind of php if statement that checks if default fields exist and have any values in them could solve it.

@jdalsem
Copy link
Member

jdalsem commented Aug 30, 2013

This will not be solved, as it makes sense that it works in this way. The default profile type is only applied for new users. If you move all default profile fields to the 'free user' profile type, the will not be visible on existing users as they are not a 'free user'.

Why not use the default profile type as the free user? If that is not an option you will have to create a script to add all users to the new profile type.

@jdalsem jdalsem closed this as completed Aug 30, 2013
@NoobyNoob1966
Copy link
Author

Thanks for looking into the issue.

The problem with using "Default" for free user is that "Default" category/fields are displayed in any profile type so that beats purpose of having different profile category/profile type.
I've tried what you suggested but like I said "Default" fields were showing in my other profile type as Category.

Can you look into that aspect?

@jdalsem
Copy link
Member

jdalsem commented Sep 2, 2013

Default is supposed to be on all profile types, as they are the default fields for all users. If you have specific fields per profile type, you need to move them to profile types (with their own categories). However if the usecase is that you have fields that are for "default", but not for a specific profile type, you can not use this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants