vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Calendar Enhancements - Yearly Calendar expanded (https://vborg.vbsupport.ru/showthread.php?t=185270)

christian8a 07-13-2008 10:00 PM

Yearly Calendar expanded
 
Neat yearly calendar look.
Brought to you by http://www.eicorvette.com :up:

This is for those with a fixed style but works great with a fluid style also.

====================
What it does?

This fixes is the yearly look on the calendar.
The width by default is 170 and there are 4 on each row. So the fixed styles could probably expand and break the tables if the actuall style is skinny.

This will put 3 mini calendars (on the yearly look) on each row and a 100% on width so they will fill out the blank spaces and not expand a fixed style or break tables.
Now on the fluid styles looks awesome too.

See the DEMO at http://www.eicorvette.com

Go to calendar/yearly view and see how it looks now, change at the bottom of the site between the fixed style and the expanded so you see the difference.

====================
Install:

Open style manager >> Calendar templates >> calendar yearly
and use this template entirelly. (copy/paste)

PHP Code:

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<
tr valign="top">
    <
td align="$stylevar[left]">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month1</table>
    </
td>
    <
td align="center">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month2</table>
    </
td>
    <
td align="$stylevar[right]">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month3</table>
    </
td>
</
tr>

<
tr valign="top">
    <
td align="$stylevar[left]">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month4</table>
    </
td>
    <
td align="center">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month5</table>
    </
td>
    <
td align="$stylevar[right]">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month6</table>
    </
td>
</
tr>
<
tr valign="top">
    <
td align="$stylevar[left]">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month7</table>
    </
td>
    <
td align="center">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month8</table>
    </
td>
    <
td align="$stylevar[right]">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month9</table>
    </
td>
</
tr>
<
tr valign="top">
    <
td align="$stylevar[left]">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month10</table>
    </
td>
    <
td align="center">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month11</table>
    </
td>
    <
td align="$stylevar[right]">
        <
table class="tborder" cellpadding="2" cellspacing="$stylevar[cellspacing]border="0" width="100%" style="margin-bottom:$stylevar[cellpadding]px">$month12</table>
    </
td>
</
tr>
</
table>

<
br />

<
table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<
tr valign="bottom">
    <
td nowrap="nowrap">

    <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0">
    <
tr>
        <
td class="thead" colspan="3" nowrap="nowrap">$vbphrase[add_new_event]<a name="goto_newevent"></a></td>
    </
tr>
    <
tr>
        <
td class="alt1" nowrap="nowrap">
            <
div class="smallfont">
                <
div>
                    <
img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[single_all_day_event]border="0" />
                    <
a href="calendar.php?$session[sessionurl]do=add&amp;type=single&amp;c=$calendarinfo[calendarid]">$vbphrase[single_all_day_event]</a>
                </
div>
                <
div>
                    <
img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[ranged_event]border="0" />
                    <
a href="calendar.php?$session[sessionurl]do=add&amp;c=$calendarinfo[calendarid]">$vbphrase[ranged_event]</a>
                </
div>
                <
div>
                    <
img class="inlineimg" src="$stylevar[imgdir_misc]/calendar_icon.gif" alt="$vbphrase[recurring_event]border="0" />
                    <
a href="calendar.php?$session[sessionurl]do=add&amp;type=recur&amp;c=$calendarinfo[calendarid]">$vbphrase[recurring_event]</a>
                </
div>
            </
div>
        </
td>
    </
tr>
    </
table>

    </
td>
    <
td width="100%">&nbsp;</td>
    <
td nowrap="nowrap">

    
$calendarjump

    
</td>
</
tr>
</
table

===============================
Enjoy! ;)

dvbusuario 07-14-2008 06:31 AM

Great!

Install!!

BigDog56 07-14-2008 01:28 PM

Nice idea, love it! Thank you and clicks 'Installed'

htscpl 07-14-2008 06:25 PM

Good idea. Need to check to see if it works with other mods before I install. Still nice work.

christian8a 11-05-2008 05:57 PM

works with any version from 3.7 to 3.8, tested

Front Range 4x4 04-21-2009 08:48 PM

Very nice, how do I change the highlight from the default red to another color?

Front Range 4x4 10-07-2009 08:01 PM

Answer Here -> https://vborg.vbsupport.ru/showthread.php?t=211605

ricardoNJ 10-12-2009 03:31 PM

Thanks!


All times are GMT. The time now is 07:06 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.01126 seconds
  • Memory Usage 1,810KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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