vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Calendar Enhancements - bmw Lunar Calendar - Show Lunar Day in Calendar (https://vborg.vbsupport.ru/showthread.php?t=210622)

bodaudinh 04-07-2009 10:00 PM

bmw Lunar Calendar - Show Lunar Day in Calendar
 
1 Attachment(s)
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.

Jasem 04-08-2009 02:56 AM

Nice work, thank you!

Installed

Stoebi 04-08-2009 09:38 AM

Thanks, and thanks for full instruction in the archive. :)

yahoooh 04-08-2009 07:23 PM

thank u
is there away to give times of pray in different methods acording to mecca ,azhar,hanafi methods and ofcourse for all cities on the world


All times are GMT. The time now is 10:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01069 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete