Log in

View Full Version : How to display a value from the custom fields?


mahiraminc
11-30-2004, 11:45 AM
I added a custom field to my forum. Its is called field7 and is a option button for Male or Female. I am able to display this on the postbit template simply by typing "Gender: $post[field7]" in the postbit template.

I tried posting the same thing in the Who's Online page and it doesn't work. Anybody good at PHP can tell me what code I need to write to display field7's value on the Who's Online page?

Thanks!

sabret00the
11-30-2004, 12:05 PM
the WOL doesn't have the $post array, for that you're best off trying $bbuserinfo[field7] or something similar :)

Andreas
11-30-2004, 12:54 PM
Should be $userinfo[field7] - if custom fields are being loaded there (not sure)

mahiraminc
12-01-2004, 04:43 AM
$bbuserinfo displays my gender on everybody's column... so that won't work.

My first guess was $userinfo but it doesn't work. Yes, you are right... the custom fields are not loaded on that page. Does anyboyd know how to get this working?

Help is very much appreciated.