Thread: Zen Colorbox

Results 1 to 10 of 350

Hybrid View

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

    Default Re: Zen Colorbox

    Quote Originally Posted by toomanyknots View Post
    Thank you for such a quick reply! And thank you for letting me know about the code wrap, I never knew that, thank you! The reason I haven't posted a link is because my website is live and typically has potential customers viewing it most of the time. The template with the colorbox issue is not one I am using currently on my website. I plan to switch to it when all the kinks are worked out, but until then I usually only work on it later at night or when there isn't that much traffic, to avoid freaking people out, since there are other issues with it as well. But I could switch templates if you would like to take a look at it. I have made an attempt to contact the author of this template, but last time it took about a week for a reply, so I am not sure when I will hear from them.

    Daniel
    and you can avoid having to work this way (which BTW is a BAD idea) by simply setting up a proper dev site which is a clone of your live site so you can test changes without impacting the live shop..

    Unless we can see what you have, the community can't help you.. We need to see if you have this module installed before anyone from this support thread can help.. Plus I strongly suspect that this is some colorbox thing the template author spun up, in which case it's still a question for the template author.. Any discussion on the author's own colorbox implementation in this support thread is off topic unless he's using this module..
    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
    Feb 2008
    Location
    Western Australia
    Posts
    192
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Is there a way that colorbox can be used to create a gallery page on an ezpage? I am setting up a store using the winchester black template which has colorbox already installed. The client wants a gallery and I thought this may be a good way to go if its possible.

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

    Default Re: Zen Colorbox

    I've been looking at this issue due to another post that got me thinking... Colorbox (the script) is not very good at sizing an image up to match the box, so using external settings like scalePhotos:true, then setting innerHeight innerWidth or height width only affects the box the image is in. If the image is larger then the box, scalePhotos:true rescales the image down, but not proportionality, no scaling up at all, the code is not there to perform that task. Same as passing LARGE_IMAGE_HEIGHT/LARGE_IMAGE_WIDTH does nothing at all in colorbox. There is no external way to pass photo size to colorbox without rewriting colorbox script itself.

    Option 1, request a new feature enhancement to colorbox or fork it and do it ourself!
    Option 2, rewrite the function in zen_colorbox.php to resize the image and pass the size to the script by adding two lines of code.
    Option 3, upload the correct size image...

    I don't like what scalePhotos:true does to the image box, it's not responsive at all and it's possible to have a very large image trying to display on a very small screen!

    Sending the photo size to colorbox code keeps it responsive and allows the code to resize the image to the screen... so option 2 is on my todo list!

    The problem I had in testing without changing code... setting sizes in photo.height and photo.width without creating it proportionality caused distortions.
    Dave
    Always forward thinking... Lost my mind!

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

    Default Re: Zen Colorbox

    Quote Originally Posted by davewest View Post
    I've been looking at this issue due to another post that got me thinking... Colorbox (the script) is not very good at sizing an image up to match the box, so using external settings like scalePhotos:true, then setting innerHeight innerWidth or height width only affects the box the image is in. If the image is larger then the box, scalePhotos:true rescales the image down, but not proportionality, no scaling up at all, the code is not there to perform that task. Same as passing LARGE_IMAGE_HEIGHT/LARGE_IMAGE_WIDTH does nothing at all in colorbox. There is no external way to pass photo size to colorbox without rewriting colorbox script itself.

    Option 1, request a new feature enhancement to colorbox or fork it and do it ourself!
    Option 2, rewrite the function in zen_colorbox.php to resize the image and pass the size to the script by adding two lines of code.
    Option 3, upload the correct size image...

    I don't like what scalePhotos:true does to the image box, it's not responsive at all and it's possible to have a very large image trying to display on a very small screen!

    Sending the photo size to colorbox code keeps it responsive and allows the code to resize the image to the screen... so option 2 is on my todo list!

    The problem I had in testing without changing code... setting sizes in photo.height and photo.width without creating it proportionality caused distortions.
    Re: Option 1, request a new feature enhancement to colorbox or fork it and do it ourself!
    I assume you mean forking the Colobox library?? Is the author of it adverse to accepting PRs?? Because if he isn't you could submit a PT and see if he accepts it into the codebase

    Re: Option 2, rewrite the function in zen_colorbox.php
    I know Daniel has been absent, but I do know he checks in to the Zen Colorbox repo.. The only issue at this point is that his master repo is out of step with the version available in the downloads because he's got the (yet unfinished) code to try and add the lightbox effect to all of the Zen Cart popups.. My fork of his repo matches what's in the downloads.. If you wanna fork my fork, and make the change, I'll re-submit the module (unless you wanna )
    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.

 

 

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