Log in

View Full Version : Grab user information in templates


TruthElixirX
12-10-2005, 02:52 AM
I need to grab userinfo from a specific field to be used in the templates. Would the correct syntax be:


$userinfo[field6];

to get user information and insert it somewhere like


<div style="background-color:$userinfo[field6];">
and on the field name do I use the id or name?

Right now using the above code I get:
<div style="background-color:;">

It isn't grabbing the profile field.

TyleR
12-10-2005, 02:54 AM
which template are you trying to use this in?

TruthElixirX
12-10-2005, 02:58 AM
spacer_open

Edit:: I figured it out with some help..somehow...O_o

TyleR
12-10-2005, 03:04 AM
as mentioned to ya, it would be $bbuserinfo[field6] for you ;)

- Tyler