solved Profile Photo required on "Create Account"

Isleander
Isleander
@isleander
7 years ago
554 posts
We've specified that new members upload a profile photo at sign up. That part works fine, but the images do not show on their profile page (image holder).
What else do we need to do to associate the uploaded image with the member's profile account? Or is this even possible?
Many thanks,
Alex
updated by @isleander: 12/14/17 09:31:58AM
brian
@brian
7 years ago
10,148 posts
This is not going to work at this time - the problem is the signup form is not setup to handle any media - this is due to the fact that the user's profile_id is not created until the very END of the signup action (since it is handled via an event listener in the Profile module).

This _may_ be doable, but I won't know until I dig into it deeper and see if it is possible.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Isleander
Isleander
@isleander
7 years ago
554 posts
OK - Thanks Brian... always appreciated.
brian
@brian
7 years ago
10,148 posts
I've checked this out, and due to architectural and security reasons, it's not something that can be supported.

Instead, if your concern is that you don't want users without an image showing on the site, you can use the "require_image" option for your list calls to ensure only users with an image are shown in listings.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Isleander
Isleander
@isleander
7 years ago
554 posts
Thanks for looking into this Brian.
I'm not sure what you mean when you say "for your list calls". Could you explain?
Thank you.
michael
@michael
7 years ago
7,715 posts
List calls are any lists created by the jrCore_list function (which is pretty much every list of anything on the site)

Docs: "{jrCore_list}"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/89/jrcore-list

You'll see them everywhere in the templates,

Docs: "Using the Template Editor"
https://www.jamroom.net/the-jamroom-network/documentation/jamroom-admin-handbook/3183/using-the-template-editor

So if there is a list that you only want to show stuff that HAS an image, alter its {jrCore_list} call to include require_image=
{jrCore_list ............. require_image="profile_image"}
Isleander
Isleander
@isleander
7 years ago
554 posts
OK thank you, Michael
Isleander
Isleander
@isleander
7 years ago
554 posts
That worked great - much appreciated