PDA

View Full Version : Userinfo for profile field?


Sylvus
09-27-2004, 12:24 AM
Anyone know what the correct variable for a user's profile field?

For instance, I can get $userinfo[username] or $userinfo[userid] to work just fine but what is the $userinfo for a particular profile field?

I've tried $userinfo[profilefieldid1] and $userinfo[field1]

I'm not looking for $post[field1] or $bbuserinfo[field1] but the variable that goes with $userinfo

Thanks for any help.

Lostnode
11-06-2004, 06:25 AM
Bump... i am looking for this too.. I was given $userinfo['fieldx'] but it is not working either,

Andreas
11-06-2004, 06:42 AM
Depends on the location you want to use this.
For template MEMBERINFO for example it should be $userinfo[fieldx].

Lostnode
11-06-2004, 07:12 AM
How about show groups?
More specificaly
showgroups_usergroupbit

Andreas
11-06-2004, 07:45 AM
For Template showgroups_usergroupbit it is most likely $user['fieldx']

Lostnode
11-06-2004, 07:52 AM
That doesn;t work either LOL (tried it) I thought of that too, but it does the same thing. Leaves it all blank.

As it currently stands I have it as

<if condition="$user['field6'] == '2'">
<img src="/forums/afterdark/misc/aadiv.gif" alt="Americas Army" />
</if>
<if condition="$user['field6'] == '1'">
<img src="/forums/afterdark/misc/czdiv.gif" alt="Condition Zero" />
</if>
<if condition="$user['field6']== '3'">
<img src="/forums/afterdark/misc/czdiv.gif" alt="Condition Zero" /><img src="/forums/afterdark/misc/aadiv.gif" alt="Americas Army" />
</if>
<if condition="$user['field6'] == ''">
&nbsp;
</if>