Log in

View Full Version : Using default profile fields in templates


Rawhide
11-14-2006, 09:16 PM
Is there a reference of all the existing profile field variables? My Google-fu and search-fu is inadequate.

I'll explain what I want to do. I have completely disabled avatars board wide, but I want something to appear when the user has selected "Show Avatars". The current code will only show information if avatars are enabled board wide, the user has selected Show Avatars and the user has uploaded an avatar using the now disabled code.
<if condition="$show['avatar']">I'm looking to modify that condition to only check the user editable option (not the board wide setting or if a user has uploaded an avatar using the internal avatar code), guests should always see it. As I was doing so I noticed a distinct lack of reference material and wasn't able to find the information I needed in the manual, vb.com, vb.org or via Google.

So, what I am looking for is a) information on how to do this and b) variable reference material.

Rawhide
11-16-2006, 11:41 AM
Thanks to Jake Bunce who has pointed out the correct variable:
$bbuserinfo[options] & 2
From that I have extrapolated that the code I needed was:
<if condition="$bbuserinfo[options] & 2 OR $bbuserinfo['userid'] == 0">

</if>