Results 1 to 10 of 500

Threaded View

  1. #11
    Join Date
    Mar 2013
    Location
    New Orleans
    Posts
    81
    Plugin Contributions
    0

    Default Re: Event Calendar

    Just thinking we(maybe mostly me) are making this more complicated then it needs to be. Why not just have 2 fields:
    Code:
    define('EVENTS_MONTHS_DROP_DOWNS', 'JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC');
    define('EVENTS_MONTHS_TITLES', 'January,February,March,April,May,June,July,August,September,October,November,December');
    Then in tpl_events_calendar_default.php after "$cal = new Calendar;":
    Code:
    $cal = new Calendar;
    $cal->setMonthNames(explode(",", EVENTS_MONTHS_TITLES));  //**rus: via diva: add
    Then in tpl_events_calendar_default.php
    after "$cal = new Calendar;":
    Code:
    $cal = new Calendar;
    $cal->setMonthNames(explode(",", EVENTS_MONTHS_TITLES));  //**rus: via diva: add
    and for the drop downs:
    Code:
                    $monthShort = explode(",",EVENTS_MONTHS_DROP_DOWNS);
                    $month = date('m');
                    while (list($key, $value) = each($monthShort))
    Simple, now anyone can come in, see what they are, and change to whatever, numbers, short, long, etc.

    Rus
    Last edited by LaCamus; 17 Apr 2013 at 05:54 AM.

 

 

Similar Threads

  1. Timeslot Booking Event Calendar
    By escapis in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 31 Jan 2014, 12:45 AM
  2. Multiple Choices error with Event Booking Calendar addon
    By FukienMan in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 16 Feb 2012, 12:17 AM
  3. Help with Event Calendar add-on
    By blabay in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 24 Mar 2010, 01:34 PM
  4. Event Calendar Broken - take out of download section!
    By Asmodai in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 10 Nov 2007, 07:22 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
  •  
disjunctive-egg