If you want to display zodiac signs:
In global.php place anywhere (or if you are not planning using it anywere else, but on profile page, then place it in member.php, lets say below <?php ):$zodiac_array = array(
1 => array(19, "capricorn", "aquarius"),
2 => array(18, "aquarius", "pisces"),
3 => array(19, "pisces", "aries"),
4 => array(20, "aries", "taurus"),
5 => array(21, "taurus", "gemini"),
6 => array(21, "gemini", "cancer"),
7 => array(22, "cancer", "leo"),
8 => array(23, "leo", "virgo"),
9 => array(23, "virgo", "libra"),
10 => array(23, "libra", "scorpio"),
11 => array(22, "scorpio", "sagittarius"),
12 => array(21, "sagittarius", "capricorn"),
);
in Step 5 (in member.php) find: $birthday = explode("-",$user_row[$user_table_fields['birthday']]);
Insert below: $zodiac = "";
$month = intval($birthday[1]);
if ($month)
{
$day = intval($birthday[2]);
$day = ($day) ? $day : 1;
$zodiac = $zodiac_array[$month][(($day <= $zodiac_array[$month][0] ) ? 1 : 2)];
}
$site_template->register_vars(array(
"lang_zodiac" => $lang['zodiac'],
"zodiac" => $zodiac,
"zodiac_img" => get_gallery_image("zodiac/".$zodiac.".gif"),
"zodiac_name" => $lang['zodiac_names'][$zodiac],
));
Then in lang/<your language>/main.php insert:$lang['zodiac'] = "Zodiac sign";
$lang['zodiac_names'] = array(
"" => "N/A",
"aquarius" => "Aquarius",
"pisces" => "Pisces",
"aries" => "Aries",
"taurus" => "Taurus",
"gemini" => "Gemini",
"cancer" => "Cancer",
"leo" => "Leo",
"virgo" => "Virgo",
"libra" => "Libra",
"scorpio" => "Scorpio",
"sagittarius" => "Sagittarius",
"capricorn" => "Capricorn",
);
And finaly in member_profile.html template you can use the following tags:
{if zodiac}{endif zodiac} - use these to ensure that it wont show "broken" image if no month was specifyed
{lang_zodiac} - will display "Zodiac sign" from language file
{zodiac_img} - will show address to the image. Use it as <img src="{zodiac_img}">
{zodiac_name} - will show name of the zodiac sign (from language file) you can place it as title="{zodiac_name}" inside <img> tag.
Oh, almost forgot, the images must be placed in templates/<your template>/images/zodiac/ folder, they must be in GIF format (its easy to change though in the first step), filenames must be the following:
aquarius.gif
pisces.gif
aries.gif
taurus.gif
gemini.gif
cancer.gif
leo.gif
virgo.gif
libra.gif
scorpio.gif
sagittarius.gif
capricorn.gif