Results 1 to 2 of 2

Thread: Mini calendar colors are not the same as vb's

  1. #1

    Default Mini calendar colors are not the same as vb's

    I would like to suggest that CMPS modifies the mini calendar style so that it matches the style of vBulletin. I am referring to the background colors in the day table cells.

    Looks like CMPS is using the border color for off-month days like vBulletin used to. Now, the mini-calendar will not be formatted the same as vb's calendar unless you hand hack the templates.

    In case this wasn't clear, basically - vBadvanced's mini calendar on CMPS does not use the same style elements as vBulletin's main calendar, therefore you must hack one template to make them the same.

    I believe this is due to a change in vb 3.5 where the table border color is no longer used for the off-day calendar day background.
    Last edited by DougM; 10-10-2005 at 06:44 AM.

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Mini calendar colors are not the same as vb's

    I'm surprised I didn't notice that yet. Looks like vB did change some things in 3.5.0 though. If you'll replace the contents of your 'adv_portal_calendar_day' template with this:
    Code:
    <td class="<if condition="$show['highlightweek']">alt1<else />alt2</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&amp;day=$year-$month-$day&amp;c=$calendarid" title="$eventdesc">$day</a></span>
    	<else />
    		<span class="smallfont">$day</span>
    	</if>
    </td>
    And the contents of your 'adv_portal_calendar_day_other' template with this:
    Code:
    <td class="alt1"><span class="smallfont"><em>$day</em></span></td>
    Then that should take care of the problem.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mini-calendar too wide
    By MotoUp in forum Troubleshooting & Problems
    Replies: 14
    Last Post: 10-23-2005, 12:53 PM
  2. MINI CALENDAR-Request (blueprints)
    By cgmojoco in forum Module & Modification Discussion & Requests
    Replies: 3
    Last Post: 08-10-2005, 11:28 AM
  3. mini calendar
    By pedigree in forum Bugs From 2.0 RC2
    Replies: 1
    Last Post: 07-23-2005, 08:37 PM
  4. problem with mini calendar after upgrade
    By nineball in forum Troubleshooting / "How do I..." Questions
    Replies: 1
    Last Post: 06-13-2005, 11:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •