Support Forum

Custom Profile Fields not showing corretly

EL Efrain Lora
Efrain Lora
Member

I have added two custom fields to user’s profiles under Edit Profile. Right not they are set to Select type with 4 options. I can select one of the options via dropdown and update profile. However after going back into the profile these fields do reflect the current stored value, instead they show the first value of the list (currently a blank). Any idea how to fix this? Thanks.

2 Answers

New Answer

EL Efrain Lora
Efrain Lora
Member

Nevermind I got this. I had spaces between the comma delimiters. I have another question though. What would be the best way to have it show up in the ProfilePopup:

If you add sp_CustomProfileFieldsDisplay() in spProfilePopupShow.php the formatting isn’t added as this is part of the sp_profileShow functions. Any recommendations?

 

MP Mr Papa
Mr Papa
Member

for the profile display, try using:

echo '<div class="spColumnSection spProfileLeftCol">';
echo '<p>Favorite:</p>';
echo '</div>';
echo '<div class="spColumnSection spProfileSpacerCol"></div>';
echo '<div class="spColumnSection spProfileRightCol">';
echo '<p>';
sp_CustomProfileFieldsDisplay('Favorite', $spProfileUser->user_id);
echo '</p>';
echo '</div>';

of course replace the two occurrences of Favorite with your profile field/label…