View Full Version : Modifying mini Calendar title graphic
apokalupsis
07-16-2004, 03:05 AM
It's kickin' me arse. I've edited my entire CMPS to use rounded edges instead of just the blocky "tcat". The problem area, is the Calendar on the front page: www.myfamilycorner.net .
It uses 2 templates apparently, and quite a few "if" conditionals...so I can't modify the template like I did the others. Anyone have any advice or ideas? Conditionals really screw me up, and I'm thinkin' that this is the cause of my headache here.
Brian
07-16-2004, 11:31 AM
In your calendar_smallmonth_header template, find the first if condition that looks like this:
<if condition="$show['dontshowweek']">
Right after that, add your first table cell for the rounded corner.
Then change the $colspan variable you see there to 5.
Now find this bit of code:
<if condition="$show['dontshowweek']"></b></span></if>
And replace it with something like this:
<if condition="$show['dontshowweek']"></b></span></td><td>{Rounded Corner Image Here}</if>
And that should be it. :)
apokalupsis
07-16-2004, 01:15 PM
I did the first part.
Then we have 2 $colspan variables, both changed to "5"? or just the first?
Also, not finding this code:
<if condition="$show['dontshowweek']"></b></span></if>
I reset the the templates back to the way templates.txt said to, w/ exception of the first part of this post where the change for the left rounded graphic was made...but it is not appearing correctly.
apokalupsis
07-17-2004, 01:39 PM
*bump*
Still kickin' my booty. ;) I can't figure this one out. Perhaps I could just hard code it? What are the "if" conditionals for anyway? To display or click on to display "week"?
Brian
07-17-2004, 02:10 PM
Hmm... Try this instead. Replace your 'calendar_smallmonth_header template with the following content:
<if condition="$show['dontshowweek']">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td height="22" valign="top" width="22" ><img src="http://www.myfamilycorner.net/forums/odnimg/misc/postbit/top_l.gif" alt="" width="22" height="22" /></td>
<td class="tcat" align="$stylevar[left]"><span class="smallfont"><strong>$vba_options[portal_blockbullet]
<else />
<tr>
<td class="tcat" colspan="$colspan" align="center">
</if>
<a href="calendar.php?$session[sessionurl]month=$month&year=$year&c=$calendarid&do=displaymonth">$monthname $year</a><if condition="$show['dontshowweek']"></strong></span></td><td width="22" valign="top"><img src="http://www.myfamilycorner.net/forums/odnimg/misc/postbit/top_r.gif" alt="" width="22" height="22" /></td></tr></table>
<table align="center" border="0" cellpadding="4" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
</if>
<if condition="!$show['dontshowweek']">
</td>
</tr>
</if>
<tr align="center">
<if condition="!$show['dontshowweek']"><td class="thead"> </td></if>
<if condition="$show['day1']"><td class="thead">$day1</td></if>
<if condition="$show['day2']"><td class="thead">$day2</td></if>
<if condition="$show['day3']"><td class="thead">$day3</td></if>
<if condition="$show['day4']"><td class="thead">$day4</td></if>
<if condition="$show['day5']"><td class="thead">$day5</td></if>
<if condition="$show['day6']"><td class="thead">$day6</td></if>
<if condition="$show['day7']"><td class="thead">$day7</td></if>
</tr>
$calendarrowbits
And then replace your 'adv_portal_calendar' template with this:
<!-- Mini Calendar -->
$calendarbits
</table>
<br />
<!-- End Mini Calendar -->
And that should do the trick. :)
apokalupsis
07-17-2004, 05:09 PM
Dude! That was it! Thanks so much man. :)
The font size for the calender is smaller than the rest of the blocks. Is that just simple html that could be input before the <a href= tag?
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.