Announcement

Collapse
No announcement yet.

How To Make The Calendar Days More Square

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To Make The Calendar Days More Square

    The default vB3 calendar looks like this. Notice how the days are flat:

    [ATTACH]17685[/ATTACH]

    Many people want the days to be more square. This mod makes it so the days look like this:

    [ATTACH]17686[/ATTACH]

    There are two template edits to change the day height:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Calendar Templates -> calendar_monthly_day

    At the top of the template, replace the red code:

    Code:
    <if condition="$show['highlighttoday']">
    	<td class="alt2" height="[color=red]50[/color]" width="$daywidth" style="padding:0px; border:1px solid red; font-weight:bold" title="$vbphrase[today]">
    <else />
    	<td class="alt2" height="[color=red]50[/color]" width="$daywidth" style="padding:0px">
    </if>
    ...with the blue code:

    Code:
    <if condition="$show['highlighttoday']">
    	<td class="alt2" height="[color=blue]100[/color]" width="$daywidth" style="padding:0px; border:1px solid red; font-weight:bold" title="$vbphrase[today]">
    <else />
    	<td class="alt2" height="[color=blue]100[/color]" width="$daywidth" style="padding:0px">
    </if>
    Admin CP -> Styles & Templates -> Style Manager -> « » -> Calendar Templates -> calendar_monthly_day_other

    Replace the red code:

    Code:
    <td height="[color=red]50[/color]" width="$daywidth" style="padding:0px" class="alt1">
    	<div class="thead">
    		<span style="float:$stylevar[right]">$otherday$day</span>
    		$otherdayname$dayname
    	</div>
    	&nbsp;
    </td>
    ...with the blue code:

    Code:
    <td height="[color=blue]100[/color]" width="$daywidth" style="padding:0px" class="alt1">
    	<div class="thead">
    		<span style="float:$stylevar[right]">$otherday$day</span>
    		$otherdayname$dayname
    	</div>
    	&nbsp;
    </td>
    All done.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X