Thread: Zen Colorbox

Page 12 of 34 FirstFirst ... 2101112131422 ... LastLast
Results 111 to 120 of 337
  1. #111
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Zen Colorbox

    You know that jQuery is getting called for already in ZC 1.5.4!

    line 108 of /inculdes/templates/template_default/common/html_header.php
    Code:
    /** CDN for jQuery core **/ 
    ?> 
      <script>window.jQuery || document.write('<script src="//code.jquery.com/jquery-1.11.1.min.js"><\/script>');</script> 
      <script>window.jQuery || document.write('<script src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"><\/script>');</script> 
     
    <?php
    of coruse if a custom template is not updated to 1.5.4, then it may be missing...

    I've been doing popups using the standard popup and Jacks' iFrame method... finished setting up the contact us form using one of the responsive templates, but got side track so haven't finished setting up the others yet.

    Click image for larger version. 

Name:	Screenshot from 2015-01-17 17:33:49.jpg 
Views:	114 
Size:	39.2 KB 
ID:	14873Click image for larger version. 

Name:	Screenshot from 2015-01-17 17:35:05.jpg 
Views:	99 
Size:	32.1 KB 
ID:	14874
    Dave
    Always forward thinking... Lost my mind!

  2. #112
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Zen Colorbox

    Quote Originally Posted by davewest View Post
    You know that jQuery is getting called for already in ZC 1.5.4!

    line 108 of /inculdes/templates/template_default/common/html_header.php
    Code:
    /** CDN for jQuery core **/ 
    ?> 
      <script>window.jQuery || document.write('<script src="//code.jquery.com/jquery-1.11.1.min.js"><\/script>');</script> 
      <script>window.jQuery || document.write('<script src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"><\/script>');</script> 
     
    <?php
    of coruse if a custom template is not updated to 1.5.4, then it may be missing...

    I've been doing popups using the standard popup and Jacks' iFrame method... finished setting up the contact us form using one of the responsive templates, but got side track so haven't finished setting up the others yet.

    Click image for larger version. 

Name:	Screenshot from 2015-01-17 17:33:49.jpg 
Views:	114 
Size:	39.2 KB 
ID:	14873Click image for larger version. 

Name:	Screenshot from 2015-01-17 17:35:05.jpg 
Views:	99 
Size:	32.1 KB 
ID:	14874
    That's one of the reasons for the che check to see if it is already installed . Another is that this code still supports versions before ZC 1.5.4, so either force everyone that uses it to upgrade to ensure up-to-date security or take minor action to continue support of older versions and potentially incorrectly installed jquery script...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Zen Colorbox

    Quote Originally Posted by lat9 View Post
    Okie-dokie. I'll play with the additional pop-ups and report back. Meanwhile, I made the following changes to /includes/templates/YOUR_TEMPLATE/jscript/jscript_jquery_min.php to correct the HTML validation errors:
    Code:
    <?php
    //Load jQuery ONLY if jQuery has not been loaded. This is to support versions of Zen Cart prior to v1.5.4 because jQuery was not part of core code
    //Also want to prevent jQuery from loading again if bundled with a plugin or template package
    ?>
    <script type="text/javascript">
    if (typeof jQuery == 'undefined') {
        document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"%3E%3C/script%3E'));
    }
    </script>
    Other than that, all looked good. Tested on a fresh ZC1.5.4 install, no IH4, PHP 5.4.35.
    Quote Originally Posted by davewest View Post
    You know that jQuery is getting called for already in ZC 1.5.4!

    line 108 of /inculdes/templates/template_default/common/html_header.php
    Code:
    /** CDN for jQuery core **/ 
    ?> 
      <script>window.jQuery || document.write('<script src="//code.jquery.com/jquery-1.11.1.min.js"><\/script>');</script> 
      <script>window.jQuery || document.write('<script src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"><\/script>');</script> 
     
    <?php
    of coruse if a custom template is not updated to 1.5.4, then it may be missing...

    I've been doing popups using the standard popup and Jacks' iFrame method... finished setting up the contact us form using one of the responsive templates, but got side track so haven't finished setting up the others yet.
    Very aware of the jQuery inclusion.. as mc12345678 pointed out, and as indicated by the code comment it is to support older v1.5 versions..

    Regarding the popups, if you'd like to fork my repo and contribute lightbox popups that would be awesome..
    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. #114
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Zen Colorbox

    Quote Originally Posted by DivaVocals View Post
    Very aware of the jQuery inclusion.. as mc12345678 pointed out, and as indicated by the code comment it is to support older v1.5 versions..

    Regarding the popups, if you'd like to fork my repo and contribute lightbox popups that would be awesome..
    Ya... I kind of fugued you already knew... one thing I like about the ZC154 one, if your testing and not live, it looks to the template folder for one to load...

    I was looking at both GitHubs, but didn't see any popups, so was wondering what method you was using. If the same, maybe save you some work..
    Dave
    Always forward thinking... Lost my mind!

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

    Default Re: Zen Colorbox

    Quote Originally Posted by davewest View Post
    Ya... I kind of fugued you already knew... one thing I like about the ZC154 one, if your testing and not live, it looks to the template folder for one to load...
    Yep.. in fact the new version I'll being submitting even fixes the auto installer in versions prior to v.1.5.x so the admin menu part of the install doesn't error out..

    Quote Originally Posted by davewest View Post
    I was looking at both GitHubs, but didn't see any popups, so was wondering what method you was using. If the same, maybe save you some work..
    Not my method at all.. WAYYYYYY over my head.. The popups are in Daniels repo..

    My repo (https://github.com/DivaVocals/zen-colorbox) is a fork of Daniel's (https://github.com/daniel-hopkins/zen-colorbox). My fork includes all the latest updates to support Zen Cart v1.5.4.. As Daniel recently merged my pull request with all of the Zen Cart v1.5.4 updates, now his fork contains the same updates.. Where our repo's DIFFER is the code Daniel included to support the popups. That code is in the includes/modules/pages folder (https://github.com/daniel-hopkins/ze.../modules/pages)

    If you have a complete/better/working method, then PLEASE contribute.. I've updated the issue log with the problems found in testing the code Daniel started working on..
    Last edited by DivaVocals; 18 Jan 2015 at 10:43 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.

  6. #116
    Join Date
    Dec 2014
    Location
    Duluth, GA
    Posts
    5
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Product image problem - - - ZC1.5.4 fresh - - Responsive Basic Blue - - - Zen_Colorbox -- browser, Chrome
    Category listing problem page - http://www.gopopsshop.com/index.php?...ndex&cPath=7_8
    Product Listing page is OK - http://www.gopopsshop.com/index.php?...&products_id=7

    My problem is related to Colorbox because pages were OK before Colorbox.

    I am unable to find where the size of the images are controlled.
    On the Categorys page, the pix are sized to 98 x 80 px - skinny and tall - wrong orientation
    On the Products page, the pix are sized to 147 x 120 px - looks good

    What is overriding the code on the Category page that causes the picture size to change so dramatically????

    Looking forward to suggestions

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

    Default Re: Zen Colorbox

    Quote Originally Posted by duluthpopsshop View Post
    Product image problem - - - ZC1.5.4 fresh - - Responsive Basic Blue - - - Zen_Colorbox -- browser, Chrome
    Category listing problem page - http://www.gopopsshop.com/index.php?...ndex&cPath=7_8
    Product Listing page is OK - http://www.gopopsshop.com/index.php?...&products_id=7

    My problem is related to Colorbox because pages were OK before Colorbox.

    I am unable to find where the size of the images are controlled.
    On the Categorys page, the pix are sized to 98 x 80 px - skinny and tall - wrong orientation
    On the Products page, the pix are sized to 147 x 120 px - looks good

    What is overriding the code on the Category page that causes the picture size to change so dramatically????

    Looking forward to suggestions

    I don't "see" the issue that you are referring to.. Will say this.. Colorbox doesn't set or modify image dimensions.. Sugget you look at your Configuration > Images 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.

  8. #118
    Join Date
    Dec 2014
    Location
    Duluth, GA
    Posts
    5
    Plugin Contributions
    0

    Idea or Suggestion Re: Zen Colorbox

    Quote Originally Posted by DivaVocals View Post
    I don't "see" the issue that you are referring to.. Will say this.. Colorbox doesn't set or modify image dimensions.. Sugget you look at your Configuration > Images settings..
    My bad completely - have been so used to working with Google Chrome that I forgot to check the site with Firefox. After your post, I checked the site in Firefox and there are no problems. Will have to look into the Chrome issue.

    Thanks for responding so quickly.

    Fred

  9. #119
    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.

  10. #120
    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?

 

 
Page 12 of 34 FirstFirst ... 2101112131422 ... 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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR