Page 1 of 2 12 LastLast
Results 1 to 10 of 500

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Event Calendar

    Quote Originally Posted by LaCamus View Post
    HTML Code:
    Files I have "touched" since the alpha (ec_4_alpha.zip) release:
    
      On the admin (back end) side:-
        events_manager.php
          * changed 
          : located in: admin/
          - main program on administrative side
    
        events_manager_rec_poll.php
          * new
          : located in: admin/
          - added for javascript ajax/sjax calls from main events_manager.php
    
        events_manager_drop_dns.php
          * changed
          : located in: admin/includes/
          - called from events_manager.php to handle link creation drop down boxes
    
        events_manager.css 
          * new
          : located in: admin/includes/
          - created to separate the bulk of css from events_manager.php
    
        events_manager_image_manipulator.php 
          * new
          : located in: admin/includes/classes/
          - called from events_manager.php, holds image manipulation class/functions
          ! was originally named image_manipulator.php, changed to be consistent with events module
    
        events_manager_js.php
          * new
          : located in: admin/includes/javascript/
          - created to separate the bulk of javascript from main events_manager.php
          ! file is called as a php require not from a javascript file tag, this is due to needed php define references
    
        events_manager_functions.php
          * new
          : located in: admin/includes/functions/
          - created to separate some of the larger php functions from main events_manager.php
    
        events_manager.php
          * changed
          : located in: admin/includes/languages/english/
          - hold english language php DEFINEs for text in the events manager module
    
        events_manager.php
          * changed
          : located in: admin/includes/languages/english/extra_definitions/
          - hold english language php DEFINEs for configurable options in the events manager
    
    -----
    
      On the store (front end) side:
    
        tpl_events_calendar_default.php
          * changed
          : located in: /includes/templates/your_template/templates/
          - main events calendar program for store front side
    
        events_calendar_include_defines.php
          * changed
          : located in: /includes/languages/english/extra_definitions/your_template/
          - hold english language php DEFINEs for configurable options in the events calendar
    
        events_calendar_functions.php
          * changed
          : located in: /includes/functions/extra_functions/
          - holds functions shared by events calendar module 
    That should do you...
    Rus
    Would it be too much to ask if you could bundle up your changed files in a zip file and attach it to a post here? Ourty please.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

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

    Default Re: Event Calendar

    Quote Originally Posted by DivaVocals View Post
    Would it be too much to ask if you could bundle up your changed files in a zip file and attach it to a post here? Ourty please.
    This is the front end, back end is still messy.

    ec_4_alpha_rus_alpha.02b_includes.zip

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

    Default Re: Event Calendar

    Quote Originally Posted by LaCamus View Post
    This is the front end, back end is still messy.
    Here's the whole thing: ec_4_alpha_rus_alpha.03.zip

    1) Has the fix/request on the link section to now show "no link selected" (not just when added and deleted).
    2) Also in link section, drop downs will show "None" at the top if not selected (except for products, those are based on a manufacturer or category being selected).
    3) Fixed problems at the bottom of the "review" page with the image resize info/warning boxes.
    4) Includes the changes to the Image function on the front end to support dw08gm's request.
    5) Has dw08gm's view long date option in there.
    6) Took CSS out in vicinity of my changes and moved to separate file, still some inline...needed in some special situations. (back end)
    7) Moved majority of javascript out into another file (back end)
    8) Moved some larger php functions out into another file (front & back)
    9) I think I caught most (maybe all) of my text, even in the drop downs, for the code I created/changed and moved it to the language file. (back end)
    10) I made a number of table and formatting changes for the screen layouts (admin side only), you may want to check to see if they look ok. For one, you will notice the default table on all events pages now stretches to 100%.
    11) Worked out "some" of the issues with checking the start and end dates before moving to the "review" page (javascript errors instead of php).
    12) Changed "delete event" section to provide user with info on what he/she is deleting (just in case).
    13) Put in the ability to delete other "matching" events that have the same title and creation date (needed for #17, see below). Warns before pulling the trigger.
    14) I think I worked out all the cross-browser issues. I would have been finished yesterday if it wasn't for this. I had to compromise(give up) on a couple of issues.
    15) Added some functionality for popup errors/warnings and help, incorporated into #17.
    16) Added the ability to copy an event. Allows you to grab an existing event and use it's data to seed a new event. (Would you believe me if I told you I pulled this off with just 3 lines of code?)
    17) The big one is the ability to add multiple events, this is not a TRUE recurring events mod, meaning that 1 event would be saved to the db and dates would be calculated from it on the front end when building the calendars/lists. What is does is calculate a # of dates into the future (configurable based on your input) and sticks them in the database, 1 event for each newly calculated date. Has the ability to see all the dates before they are added (using popup help...#15). Gives you info about your start & end dates which is completely configurable in the language file (includes the use of mergeable variables).

    Things that need to be done....
    1) More testing to make sure it works for everyone else.
    2) There are lots of align and valign cellpadding border, etc. tags in the tables that will have to be addressed at some point.
    3) More inline css can still come out.
    4) The ability to delete and select (link back to) existing image files.
    5) Maybe the start/end date info mod should be added to the base edit window (currently it only shows when you click on "Multiple Events").

    Testing encouraged, constructive criticism welcome...

    Thanks,
    Rus

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

    Default Re: Event Calendar

    Quote Originally Posted by LaCamus View Post
    Things that need to be done....
    1) More testing to make sure it works for everyone else.
    2) There are lots of align and valign cellpadding border, etc. tags in the tables that will have to be addressed at some point.
    3) More inline css can still come out.
    4) The ability to delete and select (link back to) existing image files.
    5) Maybe the start/end date info mod should be added to the base edit window (currently it only shows when you click on "Multiple Events").
    Two very important things I left off the to do list...
    1) Move a # of the configurable defines to the admin->configuration drop down menu.
    2) Change the store-front side-box calendar build process so that no default zen cart modules have to be altered (store owners won't have to edit source code).

    Those 2 things will make this module very popular for the layman...and the fact that dw08gm has it upgraded to work with 1.5.1.

    Thanks,
    Rus

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

    Default Re: Event Calendar

    Quote Originally Posted by LaCamus View Post
    Here's the whole thing: ec_4_alpha_rus_alpha.03.zip

    1) Has the fix/request on the link section to now show "no link selected" (not just when added and deleted).
    2) Also in link section, drop downs will show "None" at the top if not selected (except for products, those are based on a manufacturer or category being selected).
    3) Fixed problems at the bottom of the "review" page with the image resize info/warning boxes.
    4) Includes the changes to the Image function on the front end to support dw08gm's request.
    5) Has dw08gm's view long date option in there.
    6) Took CSS out in vicinity of my changes and moved to separate file, still some inline...needed in some special situations. (back end)
    7) Moved majority of javascript out into another file (back end)
    8) Moved some larger php functions out into another file (front & back)
    9) I think I caught most (maybe all) of my text, even in the drop downs, for the code I created/changed and moved it to the language file. (back end)
    10) I made a number of table and formatting changes for the screen layouts (admin side only), you may want to check to see if they look ok. For one, you will notice the default table on all events pages now stretches to 100%.
    11) Worked out "some" of the issues with checking the start and end dates before moving to the "review" page (javascript errors instead of php).
    12) Changed "delete event" section to provide user with info on what he/she is deleting (just in case).
    13) Put in the ability to delete other "matching" events that have the same title and creation date (needed for #17, see below). Warns before pulling the trigger.
    14) I think I worked out all the cross-browser issues. I would have been finished yesterday if it wasn't for this. I had to compromise(give up) on a couple of issues.
    15) Added some functionality for popup errors/warnings and help, incorporated into #17.
    16) Added the ability to copy an event. Allows you to grab an existing event and use it's data to seed a new event. (Would you believe me if I told you I pulled this off with just 3 lines of code?)
    17) The big one is the ability to add multiple events, this is not a TRUE recurring events mod, meaning that 1 event would be saved to the db and dates would be calculated from it on the front end when building the calendars/lists. What is does is calculate a # of dates into the future (configurable based on your input) and sticks them in the database, 1 event for each newly calculated date. Has the ability to see all the dates before they are added (using popup help...#15). Gives you info about your start & end dates which is completely configurable in the language file (includes the use of mergeable variables).

    Things that need to be done....
    1) More testing to make sure it works for everyone else.
    2) There are lots of align and valign cellpadding border, etc. tags in the tables that will have to be addressed at some point.
    3) More inline css can still come out.
    4) The ability to delete and select (link back to) existing image files.
    5) Maybe the start/end date info mod should be added to the base edit window (currently it only shows when you click on "Multiple Events").

    Testing encouraged, constructive criticism welcome...

    Thanks,
    Rus
    This version also includes the mod to "jump over" the event list (and go straight to the event) when you click on a day that has only one event (as a defined option).

  6. #6
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Event Calendar

    Rus

    Works great, spectacularly even, especially impressed by the code to copy/add multiple events.

    However
    1) Issue of GIF/PNG transparency areas blackening on resize not resolved.
    2) Month/Year dropdown selections not preserved, but are changed back to current month/year upon reloading page.

    Are these two problems likely to be resolved any time soon?

    Cheers

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Event Calendar

    Quote Originally Posted by LaCamus View Post
    Two very important things I left off the to do list...
    1) Move a # of the configurable defines to the admin->configuration drop down menu.
    I've got this working and I included changes to the SQL file to support this. In support of this I made several changes to some of the admin extra_datafiles files to align things up a little more consistently (moved defines out of the admin extra_definitions database definition file for example)
    Code:
    //  Moved to YOUR_ADMIN/includes/languages/english/extra_definitions/events_manager.php
    //define('BOX_EXTRAS_EVENTS_MANAGER', 'Events Manager');
    //define('FILENAME_EVENTS_MANAGER', 'events_manager.php');
    and YOUR_ADMIN/includes/languages/english/extra_definitions/events_manager.php now includes:
    Code:
        define('BOX_CONFIGURATION_EVENTS_CALENDAR', 'Events Calendar Settings');
        define('BOX_EXTRAS_EVENTS_MANAGER', 'Events Manager');
        define('FILENAME_EVENTS_MANAGER', 'events_manager.php');
    Also I found this and commented it out:
    Code:
    //    define('BOX_TOOLS_EVENTS_MANAGER', 'Events Manager'); //removed because as far as I can tell this is not being used
    In the configuration settings, I included defines from the store side extra_definitions file, and I also modified the SQL so that the Events Calendar page key is now called eventsCalendar and the configuration options page key is configEventsCalendar. This makes the SQL and page keys for this module consistent with how other default Zen Cart page keys are set up (particularly the ones for configuration menu options)

    that said I did not include the month defines (wanna look at the best way how to make that an admin option to support a choice between the long and short array). I also did not include the filetypes from the admin or store side in the Event Calendar configuration settings. Not sure if that should be an admin option.. thoughts on this everyone??

    The following settings are included in the Events Calendar configuration setting menu and commented out in the defines files:

    Code:
    //    define(EVENTS_FILE_MAX_WIDTH, '800');                      //** rus.02: for max image width in px, check on uploads, change on review
    //    define(EVENTS_FILE_MAX_HEIGHT,'600');                      //** rus.02: for max image height in px, check on uploads, change on review
    //    define(EVENTS_FILE_RESIZE, true);                          //** rus.02: for image resizing, set to false to do/show no resizing 
    //    define(EVENTS_MAX_RECURS,'52');                            //** rus.03: max possible # of recurring events to add to db at one time
    // First day of the week in calendar, eg 0=Sunday, 1=Monday, etc;
    //define('FIRST_DAY_OF_WEEK', 0);
    // No of years to be shown in sidebox year drop-down
    //define('NUMBER_OF_YEARS', 5);
    // Month defines in sidebox month drop-down
    define('MONTHS_SHORT_ARRAY', 'JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC');
    // define('MONTHS_LONG_ARRAY', 'January,February,March,April,May,June,July,August,September,October,November,December');
    //**rus.03: when query returns only 1 event, jump over the event list (false=always show list on single day click)
    //define(EVENTS_SINGLE_JUMP, true);
    //**rus.03: use long dates (includes day of week) when displaying events
    //define(EVENTS_LONG_DATES, true);
    Quote Originally Posted by dw08gm View Post
    but now the following works:

    Code:
     <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1"'); ?>
    Quote Originally Posted by DivaVocals View Post
    My point is can the Events Calendar include BOTH image display options for those shopowners who want to maintain compatibility with other user agents. Is there a reason to not include BOTH options??
    Quote Originally Posted by LaCamus View Post
    The alpha release I put up earlier supports both.
    Actually it does support both, but only if one removes the "true" from the code as dw08gm did. So I added an additional admin option that allows the shopowner to chose which option they want without having to edit the code directly at all as follows:
    Code:
    <?php if (EVENTS_DISPLAY_IMAGE_WIDTH_HEIGHT == 'true') { ?>
        <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="event_calendar_image"', true); ?>
    <?php } else { ?>
        <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="event_calendar_image"'); ?>
    <?php } ?>
    This way BOTH options are supported.. (should make everyone happy and keep novice shopowners out of the code)

    Quote Originally Posted by dw08gm View Post
    For greater clarity or uniqueness, the tag img.c1
    in \includes\templates\YourTemplate\css\stylesheet_events_calendar.css
    could be changed to img.eci or img.event_calendar_image

    which would then require changing class="c1" in
    \includes\templates\YourTemplate\templates\tpl_events_calendar_default.php
    to class="eci" or class="event_calendar_image" respectively.
    I agree.. I made this change and replaced "c1" class with "event_calendar_image". The "c1" class is a bit vaguely named, and this is a LOT more explicit..

    Gonna post the files I am working off of in a moment.. I need a bio break and a stretch..
    Last edited by DivaVocals; 16 Apr 2013 at 09:37 AM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

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

    Default Re: Event Calendar

    Quote Originally Posted by DivaVocals View Post
    I've got this working and I included changes to the SQL file to support this. In support of this I made several changes to some of the admin extra_datafiles files to align things up a little more consistently (moved defines out of the admin extra_definitions database definition file for example)
    Code:
    //  Moved to YOUR_ADMIN/includes/languages/english/extra_definitions/events_manager.php
    //define('BOX_EXTRAS_EVENTS_MANAGER', 'Events Manager');
    //define('FILENAME_EVENTS_MANAGER', 'events_manager.php');
    and YOUR_ADMIN/includes/languages/english/extra_definitions/events_manager.php now includes:
    Code:
        define('BOX_CONFIGURATION_EVENTS_CALENDAR', 'Events Calendar Settings');
        define('BOX_EXTRAS_EVENTS_MANAGER', 'Events Manager');
        define('FILENAME_EVENTS_MANAGER', 'events_manager.php');
    Also I found this and commented it out:
    Code:
    //    define('BOX_TOOLS_EVENTS_MANAGER', 'Events Manager'); //removed because as far as I can tell this is not being used
    In the configuration settings, I included defines from the store side extra_definitions file, and I also modified the SQL so that the Events Calendar page key is now called eventsCalendar and the configuration options page key is configEventsCalendar. This makes the SQL and page keys for this module consistent with how other default Zen Cart page keys are set up (particularly the ones for configuration menu options)

    that said I did not include the month defines (wanna look at the best way how to make that an admin option to support a choice between the long and short array). I also did not include the filetypes from the admin or store side in the Event Calendar configuration settings. Not sure if that should be an admin option.. thoughts on this everyone??
    I would say no to the images (those are pretty standard worlwide) and yes to the others...ex: some may only want to use pdf's.

    The following settings are included in the Events Calendar configuration setting menu and commented out in the defines files:

    Code:
    //    define(EVENTS_FILE_MAX_WIDTH, '800');                      //** rus.02: for max image width in px, check on uploads, change on review
    //    define(EVENTS_FILE_MAX_HEIGHT,'600');                      //** rus.02: for max image height in px, check on uploads, change on review
    //    define(EVENTS_FILE_RESIZE, true);                          //** rus.02: for image resizing, set to false to do/show no resizing 
    //    define(EVENTS_MAX_RECURS,'52');                            //** rus.03: max possible # of recurring events to add to db at one time
    // First day of the week in calendar, eg 0=Sunday, 1=Monday, etc;
    //define('FIRST_DAY_OF_WEEK', 0);
    // No of years to be shown in sidebox year drop-down
    //define('NUMBER_OF_YEARS', 5);
    // Month defines in sidebox month drop-down
    define('MONTHS_SHORT_ARRAY', 'JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC');
    // define('MONTHS_LONG_ARRAY', 'January,February,March,April,May,June,July,August,September,October,November,December');
    //**rus.03: when query returns only 1 event, jump over the event list (false=always show list on single day click)
    //define(EVENTS_SINGLE_JUMP, true);
    //**rus.03: use long dates (includes day of week) when displaying events
    //define(EVENTS_LONG_DATES, true);
    Actually it does support both, but only if one removes the "true" from the code as dw08gm did. So I added an additional admin option that allows the shopowner to chose which option they want without having to edit the code directly at all as follows:
    Code:
    <?php if (EVENTS_DISPLAY_IMAGE_WIDTH_HEIGHT == 'true') { ?>
        <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="event_calendar_image"', true); ?>
    <?php } else { ?>
        <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="event_calendar_image"'); ?>
    <?php } ?>
    This way BOTH options are supported.. (should make everyone happy and keep novice shopowners out of the code)


    I agree.. I made this change and replaced "c1" class with "event_calendar_image". The "c1" class is a bit vaguely named, and this is a LOT more explicit..

    Gonna post the files I am working off of in a moment.. I need a bio break and a stretch..
    All great stuff...good job.

  9. #9
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Event Calendar

    Quote Originally Posted by DivaVocals View Post
    that said I did not include the month defines (wanna look at the best way how to make that an admin option to support a choice between the long and short array).
    So I'm looking at the code in includes/templates/custom_template/templates/tpl_events_calendar_include_default.php. Around line #64 I found this code:

    Code:
                    $monthShort = explode(",", MONTHS_SHORT_ARRAY);
                    $month = date('m');
                    while (list($key, $value) = each($monthShort))
    I'm considering that perhaps I could do something similar to the code I added to includes/templates/custom_template/templates/tpl_events_calendar_default.php

    Code:
    <?php if (EVENTS_DISPLAY_IMAGE_WIDTH_HEIGHT == 'true') { ?>
        <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="event_calendar_image"', true); ?>
    <?php } else { ?>
        <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="event_calendar_image"'); ?>
    <?php } ?>
    So to the tpl_events_calendar_include_default.php file just below that other block (which starts at line #64) I could add something like this:
    Code:
                    $monthLong = explode(",", MONTHS_LONG_ARRAY);
                    $month = date('m');
                    while (list($key, $value) = each($monthLong))
    With a conditional statement around this whole block tied to an admin configuration setting where if you choose one option you will use the long months and if you choose the other it will give you the short months. (with the default being the short months of course). The admin month defines would remain where they are, (with the LONG months options now uncommented) and this admin option simply allows you to choose one or the other.. If something like this works, I am not sure what this will LOOK like in the sidebox.. (I believe these are the months in the sidebox dropdown??) Will be playing around with this tonight unless I'm dead wrong here and Rus has a BETTER idea how to include these month options as an admin setting..
    Last edited by DivaVocals; 16 Apr 2013 at 10:35 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Event Calendar

    Quote Originally Posted by DivaVocals View Post
    Also I found this and commented it out:
    Code:
    //    define('BOX_TOOLS_EVENTS_MANAGER', 'Events Manager'); //removed because as far as I can tell this is not being used
    Did you check to be sure it's not used as the text for the admin menu entry?
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

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