Thread: Zen Colorbox

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

Hybrid View

  1. #1
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Was using Zen Lightbox before. It stopped working after upgrading to 1.5.4, so installed Zen Colorbox.

    One feature that was nice in Zen Lightbox was the option to "Close on Image Click". It is possible to do this with Zen Colorbox?

    Also, not sure if these are known bugs or just bugs pertaining to my specific installation, but setting "Display Image Counter" to false causes the Colorbox to stop working.

  2. #2
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Almost forgot, the colorbox is resizing images to be smaller than they actually are. The point of a lightbox is to show images that are larger than being displayed on the page. What is the best way to go about making the images display as their actual size?

  3. #3
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Zen Colorbox

    Quote Originally Posted by pricediscrimination View Post
    Was using Zen Lightbox before. It stopped working after upgrading to 1.5.4, so installed Zen Colorbox.

    One feature that was nice in Zen Lightbox was the option to "Close on Image Click". It is possible to do this with Zen Colorbox?

    Also, not sure if these are known bugs or just bugs pertaining to my specific installation, but setting "Display Image Counter" to false causes the Colorbox to stop working.
    because colorbox can be used for many different things, such as popup contact us form, it would not make sense to close on box click, thus the close button. It does have the option to close on click outside the popup box!

    Not sure why you would tun off the 1 of total count... but I see there was an code error in the options.php class killing the script.

    in includes/classes/zen_colorbox/options.php file, add "" in the following code

    Code:
    if (ZEN_COLORBOX_COUNTER == 'true') 
    {
        echo '"{current} of {total}"'; 
    }
    else 
    {
        echo '""'; 
    }


    Quote Originally Posted by pricediscrimination View Post
    Almost forgot, the colorbox is resizing images to be smaller than they actually are. The point of a lightbox is to show images that are larger than being displayed on the page. What is the best way to go about making the images display as their actual size?
    Colorbox animation will snap the image then drop to a size percentage of the screen, a responsive design for small screens. if you have ZC setup to use images correctly, then you should see the larger images... good test is to turn off colorbox and see if it works as expected. Colorbox is not designed to manage image size other then for animation which completes to the actual image size.

    So if you have photo.jpg for the thumb, photo_LRG.jpg for the large, then you are on track, if not then you have some work to do.
    Dave
    Always forward thinking... Lost my mind!

  4. #4
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Quote Originally Posted by davewest View Post
    because colorbox can be used for many different things, such as popup contact us form, it would not make sense to close on box click, thus the close button. It does have the option to close on click outside the popup box!
    The functionality would be nice, not everyone uses everything the same way. It was a great feature in Zen Lightbox and would be a great feature in this plugin as well.

    Quote Originally Posted by davewest View Post
    Not sure why you would tun off the 1 of total count... but I see there was an code error in the options.php class killing the script.



    in includes/classes/zen_colorbox/options.php file, add "" in the following code

    Code:
    if (ZEN_COLORBOX_COUNTER == 'true') 
    {
        echo '"{current} of {total}"'; 
    }
    else 
    {
        echo '""'; 
    }
    Thanks for the code! Not everyone wants to Display Image Counter, I guess that's why it's an option.


    Quote Originally Posted by davewest View Post
    Colorbox animation will snap the image then drop to a size percentage of the screen, a responsive design for small screens. if you have ZC setup to use images correctly, then you should see the larger images... good test is to turn off colorbox and see if it works as expected. Colorbox is not designed to manage image size other then for animation which completes to the actual image size.

    So if you have photo.jpg for the thumb, photo_LRG.jpg for the large, then you are on track, if not then you have some work to do.
    Most lightboxes (in Worpress for example) just link to whatever the image URL is that is being clicked, then display it within a lightbox on the same page for easy viewing. This is also how Zen Lightbox worked perfectly. Is Colorbox unable to do that?

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

    Default Re: Zen Colorbox

    Quote Originally Posted by pricediscrimination View Post
    The functionality would be nice, not everyone uses everything the same way. It was a great feature in Zen Lightbox and would be a great feature in this plugin as well.
    and if you want this feature, there's no reason why you can't add it to your own shop

    or

    submit a contribution to the Zen Colorbox Github repo to add this optional feature..
    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. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Zen Colorbox

    Quote Originally Posted by pricediscrimination View Post
    The point of a lightbox is to show images that are larger than being displayed on the page. What is the best way to go about making the images display as their actual size?
    lightbox does NOTHING more than display your large images inside a lightbox.. It does nothing to manage or manipulate image size settings
    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. #7
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Quote Originally Posted by DivaVocals View Post
    lightbox does NOTHING more than display your large images inside a lightbox.. It does nothing to manage or manipulate image size settings
    Right, it should display the image exactly as the image is. Meaning if the image being linked to is 750 x 750, when clicking the lightbox you should see the full 750 x 750. Colorbox is not showing the full image as it was intended - it resizes them.

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

    Default Re: Zen Colorbox

    Quote Originally Posted by pricediscrimination View Post
    Right, it should display the image exactly as the image is. Meaning if the image being linked to is 750 x 750, when clicking the lightbox you should see the full 750 x 750. Colorbox is not showing the full image as it was intended - it resizes them.
    and what Dave and I are saying is that's NOT colorbox doing this.. Image sizing is managed with the images settings which Colorbox does NOT modify or manipulate.. Can show you PLENTY of examples to demonstrate this..

    Quote Originally Posted by davewest View Post
    if you have ZC setup to use images correctly, then you should see the larger images... good test is to turn off colorbox and see if it works as expected. Colorbox is not designed to manage image size other then for animation which completes to the actual image size.
    Last edited by DivaVocals; 7 Mar 2015 at 09:53 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. #9
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Quote Originally Posted by DivaVocals View Post
    and what Dave and I are saying is that's NOT colorbox doing this.. Image sizing is managed with the images settings which Colorbox does NOT modify or manipulate.. Can show you PLENTY of examples to demonstrate this..
    It is definitely resizing images. Nothing in zen cart is saying to make an image 745 x 745, yet Colorbox is doing so. Probably due to this:

    #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}

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

    Default Re: Zen Colorbox

    Quote Originally Posted by pricediscrimination View Post
    It is definitely resizing images. Nothing in zen cart is saying to make an image 745 x 745, yet Colorbox is doing so. Probably due to this:

    #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
    Again.. NOTHING in the Colorbox CSS or Jasvascript or code RE-SIZES images.. Including the box-sizing. content-box simply tells the browser what to to with the width and height properties.. It does NOT define them..

    http://www.w3schools.com/cssref/css3_pr_box-sizing.asp
    Code:
    CSS Syntax  box-sizing: content-box|border-box|initial|inherit;
    
     Property Values 
    Value Description
    content-box Default. The width and height properties (and min/max properties) includes only the content. Border, padding, or margin are not included
    border-box The width and height properties (and min/max properties) includes content, padding and border, but not the margin
    initial Sets this property to its default value. Read about initial
    inherit Inherits this property from its parent element. Read about inherit

    Image sizing is managed through Zen Cart admin settings..

    Now you can continue to try and insist that Colorbox is doing something it's really NOT doing or you can post some information to help us help you figure out what the actual cause of your issue is.. Post your Admin Configuration image setting are and post a link to your site.. Can't help you any other way at this point..
    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 1 of 2 12 LastLast

Similar Threads

  1. v155 Attribute image swapped for main image using Colorbox
    By soxophoneplayer in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Jun 2016, 02:34 PM
  2. Trying to fix inline code with colorbox...
    By toomanyknots in forum General Questions
    Replies: 2
    Last Post: 5 Apr 2015, 04:26 PM
  3. IH and Zen Colorbox vs Zen Lightbox?
    By Feznizzle in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 28 Jan 2015, 02:29 AM
  4. Lightbox OR Colorbox
    By Rizla in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 2 May 2014, 11:55 AM
  5. LightBox, SlimBox, ColorBox, which one is better?
    By waterbender in forum General Questions
    Replies: 0
    Last Post: 13 Aug 2013, 07:32 PM

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