View Full Version : Mini-calendar too wide
MotoUp
07-15-2005, 01:19 PM
I just noticed that after I upgraded to version 2, my mini-calendar is just a little bit wider than the rest of my modules, which is making my page wider than my logo at the top.
www.motoup.com
Any ideas on how to correct this?
Brian
07-15-2005, 02:23 PM
That's about as small as the calendar is going to get without changing your smallfont class to a smaller font size.
MotoUp
07-15-2005, 04:02 PM
Any idea what would have changed from the first version to the second to make it bigger?
Brian
07-15-2005, 04:05 PM
Most likely the moudle shell template. The cellspacing was offset in the first version, which resulted in the first table row/cell appearing smaller than the rest.
MotoUp
07-15-2005, 04:06 PM
So would I just modify that in the template then? All I need is just a couple pixels for it to line back up....Or can you tell me where I could offset that like it was in the first version?
MotoUp
07-15-2005, 04:37 PM
Ok, I changed the font size to 1, and it fits now. Thanks Brian.
cmiller1014
07-23-2005, 08:39 PM
Same problem with mine. Where did you change the font size? All my other modules in the right column are the riught size, but not the calendar. :(
cmiller1014
07-23-2005, 08:40 PM
PS I dont want to change all the smallfont class for my entire site. Just want to fix the oversized calendar
MotoUp
10-01-2005, 09:47 PM
Sorry, I just saw your post...
Replace your adv_portal_calendar_day template with:
<td class="<if condition="$show['highlightweek']">alt2<else />alt1</if>"<if condition="$show['highlighttoday']"> style="border:solid 1px red; font-weight:bold" title="$vbphrase[today]"</if>>
<if condition="$show['daylink']">
<span class="smallfont"><a href="calendar.php?$session[sessionurl]do=getinfo&day=$year-$month-$day&c=$calendarid" title="$eventdesc"><font size=1>$day</font></a></span>
<else />
<span class="smallfont"><font size=1>$day</font></span>
</if>
</td>
And replace your adv_portal_calendar_day_other with:
<td class="smallfont"><em><font size=1>$day</font></em></td>
By doing this, you don't have to change your whole small font class, and the minicalendar fits right in like it should.
Gary Bolton
10-07-2005, 11:16 PM
thanks for the fix, this works fine also for vBadvanced for vBulletin 3.0 series :D
cmiller1014
10-23-2005, 01:09 AM
I did this and now there are no links on the mini calendar anymore. The size is perfect through!
Any ideas?
Sorry, I just saw your post...
Replace your adv_portal_calendar_day template with:
<td class="<if condition="$show['highlightweek']">alt2<else />alt1</if>"<if condition="$show['highlighttoday']"> style="border:solid 1px red; font-weight:bold" title="$vbphrase[today]"</if>>
<if condition="$show['daylink']">
<span class="smallfont"><a href="calendar.php?$session[sessionurl]do=getinfo&day=$year-$month-$day&c=$calendarid" title="$eventdesc"><font size=1>$day</font></a></span>
<else />
<span class="smallfont"><font size=1>$day</font></span>
</if>
</td>
And replace your adv_portal_calendar_day_other with:
<td class="smallfont"><em><font size=1>$day</font></em></td>
By doing this, you don't have to change your whole small font class, and the minicalendar fits right in like it should.
Gary Bolton
10-23-2005, 01:16 AM
Not sure what you mean by your links have now vanished, but I used this fix also. So I'm interested to know what you mean if using this causes another problem with the calendar.
I also just ran the validator and this numer 1 in the font size is causing lots of valadation problems.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.garybolton.co.uk%2Fvb%2Fhomepage.php&charset=%28detect+automatically%29&doctype=Inline
cmiller1014
10-23-2005, 12:06 PM
Not sure what you mean by your links have now vanished, but I used this fix also. So I'm interested to know what you mean if using this causes another problem with the calendar.
I also just ran the validator and this numer 1 in the font size is causing lots of valadation problems.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.garybolton.co.uk%2Fvb%2Fhomepage.php&charset=%28detect+automatically%29&doctype=Inline
Prior to replacing the template. my small calendar contained links for the days that linked to the events for that day. Now the days are just text - no links.
Gary Bolton
10-23-2005, 12:12 PM
OK they are links on my mini calendar now. Go into your Calendar Module settings and make sure it is setup as default calendar, rather than simple calendar. I did this and now my calendar is displaying the link to an event unlike before when it was setup as Simple Calendar.
cmiller1014
10-23-2005, 12:53 PM
That did it, thanks a ton Gary!
OK they are links on my mini calendar now. Go into your Calendar Module settings and make sure it is setup as default calendar, rather than simple calendar. I did this and now my calendar is displaying the link to an event unlike before when it was setup as Simple Calendar.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.