Support Forum

Pre-forum agreement, and User Photo uploads

19 Answers

New Answer

FO Focus97
Focus97
Member

Guys – quick question (hopefully). The user photo uploads were working, but now they’re not. It’s strange.

My profile: http://www.ornishspectrum.com/forum/profile/Spectrum-admin/ is visible with photos I’ve uploaded.

Now, though, other users are trying to upload photos, which is successful, but they cannot view them in the front end.

Here, for example: http://www.ornishspectrum.com/forum/profile/Anne+Ornish/ …even though she has photos uploaded, which I can see when I go to Edit the profile and view what’s uploaded, nothing shows on the front-end.

I’ve verified all storage locations are ok in the back, and I know the photos are being stored in the forum-image-uploads folder, but nothing’s being retrieved for the front. Any thoughts?

MP Mr Papa
Mr Papa
Member

I will have to look into but right now in my dev version the file uploader is broken so I have to fix that first…

MP Mr Papa
Mr Papa
Member

ah yes… there is one key ingredient here that is required that you are probably missing…

in the spProfileView.php template file in the sp theme you are using, find where the photos template tag is called… to the first argument, at the end, add

&showEmpty=1

without that, the file uploader cannot hook into the process…  I have not come up with a better way yet…

FO Focus97
Focus97
Member

Terrific! Just wired it up and it’s perfect.

That’s an easy fix – so a better way isn’t needed, IMHO.

Many thanks!