• MXCalendar problem with today (have today every month)#

  • dmi3y Reply #1, 1 year, 4 months ago

    Reply

    I have 2 problems:
    1: in each month shows the current day
    2: now in January 2011 and the calendar still shows in December 2010


  • fra Reply #2, 1 year, 4 months ago

    Reply
    I have same problem ...


  • BobbyG66 Reply #3, 1 year, 3 months ago

    Reply
    Here is the fix:

    Bug fix for Full Calendar view

    Just posted a quick update, version 0.1.2-rc2, to fix the Full calendar display stuck on Dec 2010, looks like only one person had downloaded so I replaced the version files.

    Manual correction (GLOBAL non-version dependent):
    /mxCalendar/includes/calendar.inc.php

    On Line 74 (depending on version):
    Code:

    }elseif($newMonth == 1 & $type == ''){



    needs to become:
    Code:

    }elseif($newMonth == 1 & $type == '' & isset($_REQUEST['dt'])){


  • Sepppl Reply #4, 1 year, 3 months ago

    Reply
    Dear BobbyG66 and others,

    although the code is as it should be
    }elseif($newMonth == 1 & $type == '' &  isset($_REQUEST['dt'])){


    it doesn`t work - I can see every month the current day.

    Thanks for any advice Sepppl


  • BobbyG66 Reply #5, 1 year, 3 months ago

    Reply
    Have you downloaded the latest version?
    Try that and re-installing it.


  • Sepppl Reply #6, 1 year, 3 months ago

    Reply
    I deleted all and did a new installation with the files from code.google.com.
    So, from the moment I activate "Enable Day of Month class" I get "every month" (today) the first, the second, the third...and so on. When tomorrow is the third and I will have a look on march I will see the third of march marked as "today".

    I didn`t get that - do I missunderstand something? Is it a bug or a feature? I would be nice and helful If the mark would appear only on the actual date.

    After that I couldn`t use this feature.

    Thank you very much for your advice.
    Sepppl




  • BobbyG66 Reply #7, 1 year, 3 months ago

    Reply
    Do you have a link to your site so we can see what it looks like?


  • Sepppl Reply #8, 1 year, 3 months ago

    Reply
    Dear BobbyG66,

    here is the URL:
    http://modx-105.aryatara.de/das-programm/kalender.html

    Thank you in advance,
    Sepppl


  • BobbyG66 Reply #9, 1 year, 3 months ago

    Reply
    Thanks Sepppl,

    I see regular days have a class of " tag"
    Todays date has a class of "today tag"

    <td id="" class=" tag" width="12%">
        <!-- day of month label -->
        <div class="datestamp">2</div>
        <!-- event listing container -->
        <div id="" class="event">
                
        </div>
    </td>
    
    <td id="" class="today tag" width="12%">
        <!-- day of month label -->
        <div class="datestamp">3</div>
        <!-- event listing container -->
        <div id="" class="event">
                
        </div>
    </td>
    


    I have not used that feature on my calendar, so not sure how to correct it.
    I did find a post saying that looks like it is supposed to work that way.
    "The today class is intended to work that was as some popular UIs that always highlight the current "day of month" for all months that you view."

    There might be a way to tie it into the correct month as well.

    Good luck
    BG66