bodaudinh
04-07-2009, 10:00 PM
Show the Lunar Day in Calendar
-
Install:
1. Import the product-bmwLunarCal.xml
2. Upload file functions_calendar.lunar.php to ./includes/ folder.
3. Perform the following template edits. (2 templates in CALENDAR Templates)
-- calendar_monthly_day
-- calendar_monthly_day_other
4. Add .lunar ==> Additional CSS Definitions
.lunar{ float: right;
display: inline; /*fixes IE float bug*/
text-align: right;
font-size:7pt; //Change font-size
font-weight:normal;
color:#CCCCCC; //Change color
width:100%;
}
Templates Edit:
Template Edit 1: calendar_monthly_day
- FIND
<div class="thead">
<span style="float:$stylevar[right]">
<if condition="$show['daylink']">
<a href="calendar.php?$session[sessionurl]do=getinfo&day=$year-$month-$day&c=$calendarid">$day</a>
<else />
$day
</if>
</span>
$dayname
</div>- BELOW ADD
<!-- bmwLunarCal -->
<if condition="$vboptions[bmwLunarCal_status]">
<span class=lunar>$al[0]/$al[1]</span>
</if>
<!-- End - bmwLunarCal -->Template Edit 2: calendar_monthly_day_other
- FIND
<div class="thead">
<span style="float:$stylevar[right]">$otherday$day</span>
$otherdayname$dayname
</div>
- BELOW ADD
<!-- bmwLunarCal -->
<if condition="$vboptions[bmwLunarCal_status]">
<span class=lunar>$al[0]/$al[1]</span>
</if>
<!-- End - bmwLunarCal -->
#================================================= =====
You are done.
Please remember to click install if you have used this.
Support will only be given to those who click install.
-
Install:
1. Import the product-bmwLunarCal.xml
2. Upload file functions_calendar.lunar.php to ./includes/ folder.
3. Perform the following template edits. (2 templates in CALENDAR Templates)
-- calendar_monthly_day
-- calendar_monthly_day_other
4. Add .lunar ==> Additional CSS Definitions
.lunar{ float: right;
display: inline; /*fixes IE float bug*/
text-align: right;
font-size:7pt; //Change font-size
font-weight:normal;
color:#CCCCCC; //Change color
width:100%;
}
Templates Edit:
Template Edit 1: calendar_monthly_day
- FIND
<div class="thead">
<span style="float:$stylevar[right]">
<if condition="$show['daylink']">
<a href="calendar.php?$session[sessionurl]do=getinfo&day=$year-$month-$day&c=$calendarid">$day</a>
<else />
$day
</if>
</span>
$dayname
</div>- BELOW ADD
<!-- bmwLunarCal -->
<if condition="$vboptions[bmwLunarCal_status]">
<span class=lunar>$al[0]/$al[1]</span>
</if>
<!-- End - bmwLunarCal -->Template Edit 2: calendar_monthly_day_other
- FIND
<div class="thead">
<span style="float:$stylevar[right]">$otherday$day</span>
$otherdayname$dayname
</div>
- BELOW ADD
<!-- bmwLunarCal -->
<if condition="$vboptions[bmwLunarCal_status]">
<span class=lunar>$al[0]/$al[1]</span>
</if>
<!-- End - bmwLunarCal -->
#================================================= =====
You are done.
Please remember to click install if you have used this.
Support will only be given to those who click install.