MyBB Community Forums

Full Version: Custom Fields in member list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to show custom profile fields in member list?

YEs it is.

in Admin CP > Templates > Modify/ Delete > Expand > member list templates > memberlist_row

find

<td class="trow2">$users[postnum]</td>

below it add

<td class="trow1">$users[fidX]</td>

X represents the custom field ID, you can find it in the custom profiles fields manager.

Now in Admin CP > Templates > Modify/ Delete > Expand > member list templates > memberlist

fin 2 times

 colspan="8"

make it
colspan="9"

in the same place, find
<td class="tcat"><span class="smalltext"><strong>$lang->posts</strong></span></td> 

below it add

 <td class="tcat"><span class="smalltext"><strong>Custom Filed:</strong></span></td>


regards
Wow Zaher Thanks a lot. It worked perfectly.

Maybe I can ask for your help once more:

I want to have TWO different member lists. The one with the custom fields I want to use only for a Group with access to certain forums (I thought I would put the link for this Special Member List in the forum itself).

I created two new templates:

-memberlist2
-memberlist2_row

Now the problem I have is how to create a link and to access this templates. I get the following message:

No input file specified.

Any Advice?

Thank you in advance!


ok, now you have 2 new templates.

Open memberlist.php

find

 eval("\$member .= \"".$templates->get("memberlist_row")."\";");


replace with

 eval("\$member .= \"".$templates->get("memberlist2_row")."\";");

find

 eval("\$memberlist = \"".$templates->get("memberlist")."\";");

replace with

 eval("\$memberlist = \"".$templates->get("memberlist2")."\";");

Save the file as memberlist2.php and upload it to you host.

regards
Great. Thanks again, Zaher.
How Can I Add Custom Fields in version 1.4.8? Huh

I want to delete

JOINED - Last Visit - Post Count

And Replaced them with the ones I created.

Username - Last Name - First Name - Position - DivisiĆ³n - Company


Can u help me? Thanks U!
J