MyBB Community Forums

Full Version: Custom Fields Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to get a value from a custom profile field, but it just gives me a single letter like "L" or "T" or nothing. I've tried everything I know...

{$memprofile['fid2']}
and
{$customfields['fid2']}
and
{$profile_fields['fid2']}
and
{$customfieldval['fid2']}
and
{$user['fid2']}

(Alot of "ands")
I was able to get all the values but I just want to get ONE.Sad
Hi,

Where are you attempting to get the value? (Which page - posts, profile, member list etc?)

Chris
I made a copy of the member.php file and edited it's main template from member_profile to a new template in the "Global Templates" set.
Template makes it resemble a "myspace" style profile
And, no I did NOT replace member.php with this.
I renamed this to "propro.php" and uploaded to root directory
Screenshot to explain better

EDIT: Also, the username, age, and last login are from mybb, not html text. It's the CUSTOM FIELDS I'm having problems with.
Just in case I misunderstood that(I thought U meant what I'm using for), the place I want to get values from is the memprofile. That way, the new page will be similar to the original member profile page in code structure, but not in template.

Like example Url would be
"propro.php?action=profile&uid=1"

working just like the member.php
("member.php?action=profile&uid=1")

The url query does allow me to get avatar, username, last login, age etc.

But, custom fields seem to be in a double array (field name and field value)

I want to get single VALUE at a time to put where required.
Not an array.
I'm only 15, so I'm somewhat of a newb, still.
Never mind Chris, I took a better look inside member.php's variables.
This works:
{$userfields['fid2']}
Thanx 4 Time