31 Days on Every Month

Home Forums Calendar Products Events Calendar PRO 31 Days on Every Month

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #24676
    Anthony D’Arco
    Participant

    Ok, so I checked the forums and of course I found a few posts about this, but it was a problem relating to versions previous to 2.0.2. My guess is that this is an easy fix for you guys given you solved it several versions ago.

    Thank you,
    Anthony

    #24689
    Jonah
    Participant

    Hi Anthony,

    You can accomplish this by making a copy of /wp-content/plugins/the-events-calendar/views/table.php and placing in an ‘events’ folder in your theme. Then on line 56 change:

    $days_in_month = date("t", intval($date));

    to:

    $days_in_month = 31;

    I hope that helps but let me know if you need anything else.

    – Jonah

    #25852
    Anthony D’Arco
    Participant

    I just tried this; unfortunately it didn’t work, do you think I should try reinstalling a fresh copy?

    Thank you,
    Anthony

    #25892
    Jonah
    Participant

    Hi Anthony,

    Hmmm, it should work, it does for me. Can you paste your table.php file to http://snippi.com/?
    Are you editing this in the override file or the core file?

    – Jonah

    #26234
    Anthony D’Arco
    Participant

    Sorry for the delay, here you go:

    This is table.php in theme/events/ – http://snippi.com/s/bnx73wc
    This is table.php in plugin/views/ – http://snippi.com/s/obabs3c

    Thank you,
    Anthony

    #26240
    Jonah
    Participant

    Hi Anthony,

    I tried your version of table.php in theme/events and that works for me. What happens if you switch to the Twenty Eleven theme? Does the modification work for you then? If so, it might be a conflict with your theme and in that case I’d like a copy of your theme to try and figure out what’s going on. You can email to pro [at] tri [dot] be

    Let me know how that goes, thanks,
    Jonah

    #977932
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘31 Days on Every Month’ is closed to new replies.