Page 39 of 50 FirstFirst ... 29373839404149 ... LastLast
Results 381 to 390 of 500
  1. #381
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Event Calendar

    Quote Originally Posted by dw08gm View Post
    I would be immensely pleased to undertake the final packaging of this mod for submission to Plugins beginning this weekend.
    In my opinion I don't think this package is quite ready to be submitted just yet.. If you are submitting your original package + Rus' changes only that doesn't include the admin menu items in my zip file, and I have a new version of those changes (which incorporates the options for the long versus short months) I still have to post.. I think it is a mistake to make folks edit files to change settings.. PLUS it looks like Rus' is adding some additional improvements.. So I think we need to just hang tight for just a sec..
    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. #382
    Join Date
    Mar 2013
    Location
    New Orleans
    Posts
    81
    Plugin Contributions
    0

    Default Re: Event Calendar

    Quote Originally Posted by DivaVocals View Post
    In my opinion I don't think this package is quite ready to be submitted just yet.. If you are submitting your original package + Rus' changes only that doesn't include the admin menu items in my zip file, and I have a new version of those changes (which incorporates the options for the long versus short months) I still have to post.. I think it is a mistake to make folks edit files to change settings.. PLUS it looks like Rus' is adding some additional improvements.. So I think we need to just hang tight for just a sec..
    Yep....
    1) Editing of tpl_main_page.php no longer needed
    2) Now able to Select or Delete existing images in the events_images directory
    3) Calendar class makes only 1 query to the DB for years and months now

    Done, done & done.
    Everything I've done since joining is attached...
    ec_4_alpha_rus_alpha.04.zip
    Still needs Diva's admin config mojo.

    Rus

  3. #383
    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
    Yep....
    1) Editing of tpl_main_page.php no longer needed
    2) Now able to Select or Delete existing images in the events_images directory
    3) Calendar class makes only 1 query to the DB for years and months now

    Done, done & done.
    Everything I've done since joining is attached...
    ec_4_alpha_rus_alpha.04.zip
    Still needs Diva's admin config mojo.

    Rus
    My admin mojo eh?? I lOVE it.. Tonight I'll merge this with my working files and upload what is probably close to the final version which will contain all your changes and my "admin mojo".. (I may take a swing at making this an auto installer to further keep folks from having to mess with the code at all)
    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.

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

    Default Re: Event Calendar

    Quote Originally Posted by DivaVocals View Post
    My admin mojo eh?? I lOVE it.. Tonight I'll merge this with my working files and upload what is probably close to the final version which will contain all your changes and my "admin mojo".. (I may take a swing at making this an auto installer to further keep folks from having to mess with the code at all)
    Just a reminder...you have to take out the php code that was added at the beginning and end of tpl_main_page.php.

    Thanks again

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

    Default Re: Event Calendar

    Quote Originally Posted by dw08gm View Post
    Except for one minor problem:

    Store Side:
    Because images larger than the encapsulating divs would not automatically shrink to within the encapsulating divs, nor shrink in proportion, I had to change Line 205 in \includes\templates\amanita\templates\tpl_events_calendar_default.php
    from
    Code:
    <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1" hspace="0" vspace="0"', true); ?>
    to
    Code:
    <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1" hspace="0" vspace="0"', false); ?>
    while the following also worked
    Code:
    <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1"', false); ?>

    I found it made no difference toggling through the following Admin > Images settings:
    Calculate Image Size = True (default)
    Image - Use Proportional Images on Products and Categories = 1 (default)

    or switching zen_image_OLD with zen_image in \includes\functions\extra_functions\events_calendar_functions.php (Line 70).
    Code:
    $dumi = ($usew ? zen_image_OLD($wf, $alt, '', '', $params) : ('<img src="'.$wf.'" alt="'.$alt.'" title=" '.$alt.' " '.$params.' />'));

    While I remain unclear what that true/false setting in tpl_events_calendar_default.php is intended to do exactly, I have not yet found any other way to fix this problem.

    As I contemplate re-writing the readme, I am wondering how to explain this setting, and whether or not the changing of this setting can or should be placed in a language file or elsewhere.

    Has anyone else experienced the same or similar problem with images larger than the encapsulating divs?
    With regards to this, please see the posts below.. this is the JIST of the conversation that Rus and I had on this feature, including the final answer/code, and how I turned this into an ADMIN CONFIGURABLE option for shopowners so that EVERYONE gets what they need out of this module..

    ================================================================================ ==

    Quote Originally Posted by LaCamus View Post
    Good I'm glad that's working...the second link, with "TRUE" as the last parameter, uses the old (default) zen_image function which imbeds the image's native height and width in the IMG tag.
    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??

    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 } ?>
    [/CODE]
    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..
    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.

  6. #386
    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
    Just a reminder...you have to take out the php code that was added at the beginning and end of tpl_main_page.php.

    Thanks again
    Got it.. Thanks for the reminder.. I saw that you made the changes needed so I had already planned to pull the modified tpl_main_page.php out of my package when I upload it tonight..
    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.

  7. #387
    Join Date
    Jan 2004
    Posts
    66,446
    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.

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

    Default Re: Event Calendar

    Quote Originally Posted by DrByte View Post
    Did you check to be sure it's not used as the text for the admin menu entry?
    Fancy seeing you drop in on our little collaborative effort DrByte! Nice to see your experienced eyes looking over this effort..

    Yep.. there's already another define for this purpose.. I even checked to see if it was for some popup that I hadn't looked at/considered.. but nope.. I think this one is in error.. (duplicate of the actual menu define in use)
    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.

  9. #389
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Event Calendar

    Quote Originally Posted by DivaVocals View Post
    Fancy seeing you drop in on our little collaborative effort DrByte! Nice to see your experienced eyes looking over this effort..
    Haha! Lots going on to keep on top of! I confess I've only given this a cursory glance ...
    Quote Originally Posted by DivaVocals View Post
    Yep.. there's already another define for this purpose.. I even checked to see if it was for some popup that I hadn't looked at/considered.. but nope.. I think this one is in error.. (duplicate of the actual menu define in use)
    Cool. I just spotted it and thought I should mention it since some folks mightn't recognize those sorts of menu pieces.
    Glad you've got it looked after. :)
    .

    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.

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

    Default Re: Event Calendar

    Quote Originally Posted by DrByte View Post
    Haha! Lots going on to keep on top of! I confess I've only given this a cursory glance ...
    Well Rus (LaCamus) has been a BARREL of energy and is putting out some good work so I think you will totally approve of the final outcome..


    Quote Originally Posted by DrByte View Post
    Cool. I just spotted it and thought I should mention it since some folks mightn't recognize those sorts of menu pieces.
    Glad you've got it looked after. :)
    Oh yes.. I did.. Thanks for the hand.. In fact to be SURE that this wasn't for some menu I didn't "see" I turned it off and ran through all my test scripts again to see what I broke.. Since nothing broke, I think we're safe in assuming this is just a dup..
    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.

 

 
Page 39 of 50 FirstFirst ... 29373839404149 ... 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