Back to vBulletin 3.8 Add-ons

bmw Lunar Calendar - Show Lunar Day in Calendar
Mod Version: 1.00, by bodaudinh

vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 7
Released: 08 Apr 2009 Last Update: Never Downloads: 48
Not Supported Uses Plugins Template Edits Additional Files Re-usable Code Is in Beta Stage  

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
Code:
.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
Code:
        <div class="thead">
            <span style="float:$stylevar[right]">
                <if condition="$show['daylink']">
                    <a href="calendar.php?$session[sessionurl]do=getinfo&amp;day=$year-$month-$day&amp;c=$calendarid">$day</a>
                <else />
                    $day
                </if>
            </span>
            $dayname
        </div>
- BELOW ADD
Code:
        <!-- 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
Code:
<div class="thead">
        <span style="float:$stylevar[right]">$otherday$day</span>
        $otherdayname$dayname
    </div>
- BELOW ADD

Code:
<!-- 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.

Download

File Type: %1$s vbLunarCal.zip (5.1 KB, 54 downloads)

Screenshots

Click image for larger version
Name:	screenshot-bmwLunarCal.jpg
Views:	347
Size:	98.5 KB
ID:	97420  


vblts.ru supports vBulletin®, 2022-2024