Components - Avatars
Avatars
Rock's avatar feature provides the ability to create unique avatar images for each person record within the
system.
Rock's avatar feature provides the ability to create unique avatar images for each person record within the system. This
feature allows churches to easily identify members and visitors by providing a visual representation of each person, making
it easier to connect with them and personalize interactions. The avatar images generated by Rock RMS are dynamic and customizable,
allowing churches to choose from a range of styles and settings to best fit their needs. Enough talk though, let's look at how it works.
Note: The avatar feature requires Rock v15 or later.
Types of Avatars
There are two primary types of avatars: icons and initials. Each of these types are described below with details of each of their options.
Initials Avatar
Icon Avatar
Common Settings
All avatars share several settings. These settings are outlined below.
Initials Avatar Settings
Below are settings for avatars using initials.
|
Text This is the text to use for the initials. Only the first two characters will be use..
Sample <img src="/GetAvatar.ashx?Text=SM" />
|
Icon Avatar Settings
Below are settings for avatars using the icon style.


|
Gender This determines what gender icon to show.
Samples
<img src="/GetAvatar.ashx?Style=icon&Gender=0" />
Unknown
<img src="/GetAvatar.ashx?Style=icon&Gender=1" />
Male
<img src="/GetAvatar.ashx?Style=icon&Gender=2" />
Female
You can also provide the values of 'Male', 'Female' or 'Unknown' instead of the integer values.
|


|
Age Classification This determines what age classification the icon should be.
Samples
<img src="/GetAvatar.ashx?Style=icon&Gender=1&AgeClassification=0" />
Unknown
<img src="/GetAvatar.ashx?Style=icon&Gender=1&AgeClassification=1" />
Adult
<img src="/GetAvatar.ashx?Style=icon&Gender=1&AgeClassification=2" />
Child
|

|
RecordTypeId This displays a different icon for people and businesses. You only need to provide
this if you think you will have businesses in your data. Note the your values for RecordTypeId
will be different from server to server.
Samples
<img src="/GetAvatar.ashx?Style=icon&RecordTypeId=1" /> Person
<img src="/GetAvatar.ashx?Style=icon&RecordTypeId=2" /> Business
|
Tips
Below are some tips to keep in mind as you work with avatars.
-
For simplicity the Person model's PhotoUrl provides you the proper URL for an individual. You can customize this URL by appending
additional parameters to it.
-
If no color (background or foreground) is provided a random color will be used. This will mean that each avatar will
have a different color.
-
The images will be set to cache for 7 days on the client.
-
Keep in mind that the avatars are cached on the server based on the parameters you provide in the query string. Limit the number
of unique configurations to reduce the number of stored files. For example it's best not to provide a large number of different sizes
of avatars. For the most part use the default 128px size.