Page 34 of 50 FirstFirst ... 24323334353644 ... LastLast
Results 331 to 340 of 500
  1. #331
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Event Calendar

    Rus & dw08gm,

    Lots of changes over the last few days have been posted here, and I'm kinda losing track.. Can we get an updated fileset posted here so I can update/synch my test store to incorporate all the latest changes??
    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. #332
    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
    Then...
    in: includes/templates/your_template/templates/tpl_events_calendar_default.php
    Code:
      <div class="event_image_outer">
        <div class="event_image_inner">
          <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1" hspace="0" vspace="0"'); ?>
        </div>
        <div class="clearLeft"> </div>
      </div>
    ...will work.

    For those who still want to utilize the auto size detection feature of zen carts' image functions, they should use:
    Code:
      <div class="event_image_outer">
        <div class="event_image_inner">
          <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1" hspace="0" vspace="0"',true); ?>
        </div>
        <div class="clearLeft"> </div>
      </div>
    one more thing.. in this code the hspace and vspace attributes of <img> are deprecated in HTML 4.01. This code is going run into validation issues..

    would be better to add a margins setting (margin: 0px;) to the "c1" class in the stylesheet instead..
    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.

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

    Default Re: Event Calendar

    Diva

    Thanks for headsup on deprecation. As for margins, these are provided for in the inner and outer divs.

    Re fileset update - I am away from my office until Monday so am unable to provide until then. Rus no doubt will have more to add.

    Cheers

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

    Default Re: Event Calendar

    Quote Originally Posted by LaCamus View Post
    So...
    Code:
    echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1" hspace="0" vspace="0"');
    ...didn't work?
    It worked except for the image (as opposed to info file) proportions. The widths were adjusted to fit the divs but the heights appear not to have been adjusted commensurately.

    Quote Originally Posted by LaCamus View Post
    I think I see why...both of zen carts' image functions read the height and width and feed the tag back with them embedded. I changed my event_flink_small function to feed the tag back with no height and width (this is set as the default)...just replace the old one with the new one below. It is located in:
    /home/shootwise.com/www/includes/functions/extra_functions/events_calendar_functions.php
    Code:
    //**rus.02:start
    //** function to decipher images verses docs
    //** a different version of this function is also used (at the end of file) in admin/events_manager.php
    function event_flink_small($inff, $alt='', $params='', $usew=false) {
      $events_img_exts = strtolower(trim(EVENTS_IMAGE_EXTS));
      $events_oth_exts = strtolower(trim(EVENTS_OTHER_EXTS));
      $events_all_exts = trim($events_img_exts . ' ' . $events_oth_exts);
      $orf = trim($inff);
      $wf  = DIR_WS_IMAGES .'events_images/' . $orf;
      if ($orf=='') {
        return '';
      } else {
        $fileext = strtolower(strrchr($orf, "."));
        if ($events_all_exts=='' || in_array($fileext,explode(" ",$events_img_exts))) {   //** it's an image or everything is considered an image
          $dumi = ($usew ? zen_image_OLD($wf, $alt, '', '', $params) : ('<img src="'.$wf.'" alt="'.$alt.'" title=" '.$alt.' " '.$params.' />'));
          return $dumi;
        } else {                                               //** must be other file type
          $dumi = '<a href="' . $wf . '" target="_blank">' . zen_image(DIR_WS_IMAGES .'events_images/event_cal_info_doc.png', $alt, '', '', $params) . '</a>';
          return $dumi;
        }
      }
    }
    //**rus.02:stop
    Then...
    in: includes/templates/your_template/templates/tpl_events_calendar_default.php
    Code:
      <div class="event_image_outer">
        <div class="event_image_inner">
          <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1" hspace="0" vspace="0"'); ?>
        </div>
        <div class="clearLeft"> </div>
      </div>
    ...will work.


    For those who still want to utilize the auto size detection feature of zen carts' image functions, they should use:
    Code:
      <div class="event_image_outer">
        <div class="event_image_inner">
          <?php echo event_flink_small($event_array['image'], $event_array['title'], 'class="c1" hspace="0" vspace="0"',true); ?>
        </div>
        <div class="clearLeft"> </div>
      </div>
    Thanks,
    Rus
    I believe the replacement of zen_image with zen_image_OLD above is the way to go, but I could not get proportions to work by changing this in the previous revision. Hopefully better luck with this revision.

    Cheers

  5. #335
    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
    Diva

    Thanks for headsup on deprecation. As for margins, these are provided for in the inner and outer divs.
    That's very true.. I was merely suggesting though moving those deprecated attributes to their proper CSS place.. a setting of margin: 0px; won't affect the settings of the inner our outer divs at all..



    Quote Originally Posted by dw08gm View Post
    Re fileset update - I am away from my office until Monday so am unable to provide until then. Rus no doubt will have more to add.

    Cheers
    Rus probably has all the changes in his files.. Hopefully he can submit them so I can work on testing over the weekend.. I'm flying to Nashville tonight and I can work on some things while at the airport and during my downtime at my hotel.
    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. #336
    Join Date
    Mar 2013
    Location
    New Orleans
    Posts
    81
    Plugin Contributions
    0

    Default Re: Event Calendar

    Quote Originally Posted by dw08gm View Post
    It worked except for the image (as opposed to info file) proportions. The widths were adjusted to fit the divs but the heights appear not to have been adjusted commensurately.



    I believe the replacement of zen_image with zen_image_OLD above is the way to go, but I could not get proportions to work by changing this in the previous revision. Hopefully better luck with this revision.

    Cheers
    So all images work fine except the small image that shows up when a document is attached to the event?

    Please send me your css settings for c1....have they been changed since your alpha release? You're looking to stretch every single image to the inside layer? You have a url I can go to? I just want to have a clear understanding on what the end goal is.

    Thanks
    Rus

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

    Default Re: Event Calendar

    I have to run but will be back on this tonight. The files aren't in a testing state yet. Maybe something for Sunday.

  8. #338
    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
    So all images work fine except the small image that shows up when a document is attached to the event?

    Please send me your css settings for c1....have they been changed since your alpha release? You're looking to stretch every single image to the inside layer? You have a url I can go to? I just want to have a clear understanding on what the end goal is.

    Thanks
    Rus

    Help me understand what the end goal is here.. Is this code supposed to make the image proportions match the inner div proportions (ie use the browser tags to "artificially" re-size the images)?? So if I am understanding that this is the end goal, if the inner div has a height attribute of 500px and a width attribute of 300px the image browser height and width tags need to match THOSE proportions REGARDLESS as to what the actual image size is??? Am I understanding this correctly??
    Last edited by DivaVocals; 12 Apr 2013 at 07:06 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.

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

    Default Re: Event Calendar

    Quote Originally Posted by DivaVocals View Post
    Rus & dw08gm,

    Lots of changes over the last few days have been posted here, and I'm kinda losing track.. Can we get an updated fileset posted here so I can update/synch my test store to incorporate all the latest changes??
    I'll get you the file list tonight...that shouldn't change by monday. I've been working on a new feature that includes some ajax code... I think you guys are really going to like it. I think I need to stop adding after this so we can get this release tested and out.

  10. #340
    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
    I'll get you the file list tonight...that shouldn't change by monday. I've been working on a new feature that includes some ajax code... I think you guys are really going to like it. I think I need to stop adding after this so we can get this release tested and out.
    Ajax??? Did someone say AJAX???? I LOVE Ajaxy stuff!!!

    In the name of being the resident nag here..
    Are you also adding the option for shopowners to chose removing the physical files from the server when uploading a replacement image to an event?? (Similar to the existing Zen Cart feature for product images -- see example image)
    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 34 of 50 FirstFirst ... 24323334353644 ... 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