XF 1.3 Member List vs Search Results (custom field not returned)

lmnop

Member
I've been poking around in the XF forums and on our forum templates for several hours and have not been able to solve this mystery.

I've been successful in adding a custom filed (full name), a "Start a Conversation" button and some dates - to the member list page by editing the member_list_item template.

Screen Shot 2015-03-01 at 4.35.42 PM.webp


However, when I search for users at "Brandeis University" ( or another field) you'll notice that the person's full name no longer shows up.
Screen Shot 2015-03-01 at 4.38.02 PM.webp

Am I missing a coding phrase for this custom field? Am I putting the code in the wrong place? I've gotten pretty good at looking at examples on XF and working them in to my own templates, but now I'm at a total loss.

Thanks for any help!
M
 
I'm using the Advanced Member Profile Search add-on as the search form. If I search in the city field (not custom and I've changed the phrase from "city" to "host site"), I get a list of results that look similar to the member list, except that the person's full name (a custom field) is not appearing. I'm just not understanding why it disappeared. What's the difference between the full member list and the search return list in terms of custom field visibility?
Screen Shot 2015-03-01 at 5.05.36 PM.webp
 
Thank you.
Now that I know the correct template, I'm still having trouble figuring out where to put the code or even if my code is correct. This is what I used for the member list page:
<div class="userInfo">{xen:helper userFieldValue, $userFieldsInfo.name, $user, {$user.customFields.name}}</div>

1. Is this correct? If not what code should I use?
2. Where exactly should it go in the search_results template

As always, help and guidance is much appreciated! M
Screen Shot 2015-03-02 at 7.38.55 AM.webp
 
It's possible the variables aren't exposed to that template.

You can check by dumping {xen:helper dump, $search.users} in the template, just above the sidebar
 
Top Bottom