PDA

View Full Version : Display custom fields in memberlist search results


muan
04-14-2008, 11:28 AM
I cant find anywhere in any of the template files to enable me to display a couple of custom fields I've setup under the users name in the member search results list, as shown below. Can anyone help me out ? (Running VB3.7 RC3)

Lynne
04-14-2008, 02:24 PM
Perhaps this thread will help you: https://vborg.vbsupport.ru/showthread.php?t=172106&highlight=fields

muan
04-14-2008, 05:59 PM
Thanks for trying Lynne, but thats not what I'm after doing at all .................

SEOvB
04-14-2008, 11:55 PM
If you want the custom fields to show up under the members name you'll need to edit the memberlist template

You could also enable the "serachable on memberlist" feature, but they won't appear under the member name.

muan
04-15-2008, 07:05 PM
Thanks FRDS, sort of figured it but just having trouble displaying the value of the profile field on the page. Am I wrong in trying to use the $post command to achieve this ?

Lynne
04-15-2008, 07:09 PM
No, I don't believe you have access to the $post variables on that page. The thread I pointed to originally is from someone else trying to do the same thing. They get pointed to this thread which helped them use the variables: https://vborg.vbsupport.ru/showthread.php?t=124580

SEOvB
04-16-2008, 08:36 AM
Thanks FRDS, sort of figured it but just having trouble displaying the value of the profile field on the page. Am I wrong in trying to use the $post command to achieve this ?

Yes i dont think the $post variable will evaulate very well on the memberlist.

I'm not sure of the variable you need to use, try $userinfo[fieldX] maybe, i'm honestly not real sure for the member list though.

muan
04-20-2008, 10:05 AM
Thanks, I'll have another go ..............

--------------- Added 1208690091 at 1208690091 ---------------

I'm not sure of the variable you need to use, try $userinfo[fieldX] maybe

That got it, thanks for the help, both of you :):up: