Profile Picture or Image field

  • Philip Walton
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago - 5 years 4 months ago #120598 by Philip Walton
Profile Picture or Image field was created by Philip Walton
Hi Guys,
A little surprised not to see a photo field for user registration.

Can I use the the file field for the image and do an override to display the image in the users profile?

How do I pull out info from the user object in the override?
Last edit: 5 years 4 months ago by Philip Walton.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
5 years 4 months ago #120601 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Profile Picture or Image field
Hi

Maybe you can use built-in avatar feature instead? Go to Membership Pro -> Configuration, set Enable Profile Avatar config option to Yes and users will be able to upload avatar and it can be displayed on profile

I guess it will be easier to use that. If you still want to use File upload file type for that purchase, just use it. The data for that field (basically, is name of the file) is available. You will just have to modify code to show that field as image instead of just the value

Tuan

Please Log in or Create an account to join the conversation.

  • Philip Walton
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 3 months ago - 5 years 3 months ago #120667 by Philip Walton
Replied by Philip Walton on topic Profile Picture or Image field
Thanks Tuan, I had looked for it there, I promise...must have been a "man" look! ;-)
Last edit: 5 years 3 months ago by Philip Walton.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
5 years 3 months ago #120668 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Profile Picture or Image field
Hope that existing option works well for you

Regards,

Tuan

Please Log in or Create an account to join the conversation.