How to Add New Variables

๐Ÿ“š Brilliant Directories Variable Reference

Hero Allies integrates with Brilliant Directories (BD) to power dynamic listings, member profiles, posts, and website templates. Below is the complete list of variables you can use in email templates, SEO tags, forms, and custom pages.


๐Ÿ”น System Arrays (PHP Variables)

Use these arrays in BD templates to access dynamic data:

Array Purpose
$w General website information (used on all pages)
$s Member Categories
$r Membership Feature Reviews
$p Post and group information
$g Similar to $group
$post Post information
$user Single user data (Member Profile page)
$user_data Multiple members data (Search Results)
$profs Filters (country, state, zipcode, top level, sub level)
$data_results Search Results
$dc Post settings/meta information
$page Current page related data
$group Groups/Post Types with multiple images
$photo Member logos and profile photos
$subscription Product settings/meta data
$profession Member Main Categories
$service Member Sub Categories
$lead Leads-related data
$review Member review process data
$label Text Labels
$_COOKIE, $_SERVER, $_REQUEST, $_FILES, $_GET PHP globals

๐Ÿ‘ค Member Variables (Email/SEO Templates)

Variable Description
%user_id% User ID
%first_name% First Name
%last_name% Last Name
%full_name% Full Name
%email% Email Address
%company% Company Name
%phone_number% Phone Number
%fax_number% Fax Number
%address1%, %address2% Address Lines
%city% City
%zip_code% Zip Code
%state_code% State Code
%state_ln% State Long Name
%country_code% Country Code
%country_ln% Country Long Name
%website% Member Website
%twitter%, %facebook%, %linkedin%, %blog% Social Links
%subscription_id% Subscription ID
%filename% Member Profile URL
%active% Active Status
%signup_date% Signup Date
%signup_date_format% Formatted Signup Date
%last_login% Last Login
%location% Location (City + State)
%position% Position / Job Title
%industry% Industry
%profession_id% Profession ID
%profession_name% Profession (Top Category)
%service_name% Sub Category
%verified% Verified Status
%nationwide% Nationwide Status
%listing_type% Listing Type (Individual/Company)
%subscription_name% Membership Plan Name
%previous_subscription_name% Previous Plan Name

๐Ÿ–ฅ Member Dashboard Variables

Variable Description
[me=first_name] Member's first name
[me=last_name] Member's last name
[me=company] Member's company name
[me=user_id] Member ID
[me=email] Member Email
[me=phone_number] Member Phone
[me=website] Member Website

๐Ÿ“ Post Variables

Variable Description
%post_title% Post Title
%post_caption% Post Caption/Description
%post_category% Post Category
%post_image% Post Image
%post_price% Post Price
%post_tags% Post Tags
%group_category% Group Category
%property_status% Property Status
%property_type% Property Type
%property_beds% Property Beds
%property_baths% Property Baths
%property_price% Property Price

๐ŸŒ Website Variables

Variable Description
%website_name% Website Name
%domain% Domain Name
%website_url% Website URL
%protocol_website_url% Full URL w/ protocol
%website_logo% Website Logo Path
%admin_email% Admin Email
%support_email% Support Email
%website_email% Website Contact Email
%website_phone% Website Contact Phone
%country% Country
%industry% Default Industry
%currency_code% Currency Code
%distance% Distance Unit

๐Ÿงพ Invoice Variables

Variable Description
%invoice_id% Invoice ID
%invoice_date% Invoice Date
%invoice_amount% Invoice Amount
%payment_method% Payment Method

๐Ÿš€ How to Add New Variables

  1. Use BDโ€™s Custom Fields Manager (Admin โ†’ Forms โ†’ Custom Fields) to create a new field.
  2. Assign a variable name like %custom_partner_tier% or %hero_discount_code%.
  3. Use the new variable in templates, emails, or SEO fields.
    ``