PDA

View Full Version : How To Make The Calendar Days More Square



Jake Bunce
Tue 3rd Jan '06, 12:36am
The default vB3 calendar looks like this. Notice how the days are flat:



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



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:



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


...with the blue code:



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


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

Replace the red code:



<td height="50" 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:



<td height="100" 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.