Thread: Zen Colorbox

Results 1 to 10 of 350

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Zen Colorbox

    Quote Originally Posted by mc12345678 View Post
    Not sure what is going on, but when I try to access the following URI https://www.uesakausa.com/index.php?main_page=product_info&cPath=23&products_id=26&layoutType=mobile (accesses the site using the mobile type layout) and review the console log, I see that there is a javascript error:
    Also, though I didn't copy the link over, the javascript file is attempting to be found specifically on the site, not by reference to an external location. But, that said, I can click on the javascript link that is provided to me in the console and actually pull up the file. At the moment, I'm not sure why the difference in response with respect to that, but wanted to let you know what has been seen from a different perspective.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Apr 2009
    Posts
    60
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Thank you so much for your input. This is new to me, but digging in and I found Nu HTML Checker. I used the chrome inspect and see what you were talking about https://code.jquery.com/jquery-1.12.0.min.js, is invoked via document.write. Then read up, if it is invoked by document.write() is the issue. In admin I tried Dev Tools looking for document.write() nothing.

    Then in Nu HTML Checker I found this:

    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"%3E%3C/script%3E'));</script>↩
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="includes/templates/maxtemp/jscript/jquery.min.js"%3E%3C/script%3E'));</script>↩

    So first thought is a header and in common/html_header.php I found it:

    /** CDN for jQuery core **/
    ?>

    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"%3E%3C/script%3E'));</script>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>

    <?php
    /**

    Way out of my comfort zone here or knowledge... can this be rewritten in a link in that header file?

    First download this file to my_template/jscript/jquery-1.12.0.min.js

    Then put this in the header?

    <script type="text/javascript" src="my_template/jscript/jquery-1.12.0.min.js"></script>

    It says it is for CDN for JQuery core, Not sure what that is...?

    Again thank you!

    Making notes here of what I try so others can follow. Hope to help someone else. :)

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Zen Colorbox

    Quote Originally Posted by MaxBodine View Post
    Thank you so much for your input. This is new to me, but digging in and I found Nu HTML Checker. I used the chrome inspect and see what you were talking about https://code.jquery.com/jquery-1.12.0.min.js, is invoked via document.write. Then read up, if it is invoked by document.write() is the issue. In admin I tried Dev Tools looking for document.write() nothing.

    Then in Nu HTML Checker I found this:

    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"%3E%3C/script%3E'));</script>↩
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="includes/templates/maxtemp/jscript/jquery.min.js"%3E%3C/script%3E'));</script>↩

    So first thought is a header and in common/html_header.php I found it:

    /** CDN for jQuery core **/
    ?>

    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"%3E%3C/script%3E'));</script>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>

    <?php
    /**

    Way out of my comfort zone here or knowledge... can this be rewritten in a link in that header file?

    First download this file to my_template/jscript/jquery-1.12.0.min.js

    Then put this in the header?

    <script type="text/javascript" src="my_template/jscript/jquery-1.12.0.min.js"></script>

    It says it is for CDN for JQuery core, Not sure what that is...?

    Again thank you!

    Making notes here of what I try so others can follow. Hope to help someone else. :)
    Ok so, first off, the jquery file(s) are considered recommended to be attempted remotely rather than locally, secondly the issue is (if hadn't figured it out yet) is that it seems that jquery-1.*7*.0 is being loaded instead of something at least more recent.. You can find where that file is referenced by using the tools->developers tool kit and searching all files (lower row of search tools) for the content I posted before (in part or whole). That should result in finding one or more files that are related to the mobile/tablet files where this issue is occurring.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Zen Colorbox

    You could try renaming: includes/templates/maxtemp/jscript/jscript_jquery-1.7.1.min.js such that it does not begin with jscript and see what happens... be prepared to rename it back as some of the other javascript software may not work on the newer 1.12 version that is also loaded.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Apr 2009
    Posts
    60
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Hi mc12345678,

    THANK YOU!!!

    I did rename that file, it worked. I followed through completing a purchase too. But if you don't mind explaining, I am not clear on how you knew it was the jscript_jquery-1.7.1.min.js file?

    In chrome inspect I am seeing the warning on the jquery-1.12.0.min.js. What did you use to see that there was an issue with jscript_jquery-1.7.1.min.js?

    /** CDN for jQuery core **/
    ?>

    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"%3E%3C/script%3E'));</script>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>

    <?php
    /**

    I appreciate the time you have spent guiding me, and hope others benefit from this thread. Do you have a donation button somewhere? I would like to buy you a drink or two :)

    Thanks again!

  6. #6
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Zen Colorbox

    Quote Originally Posted by MaxBodine View Post
    Hi mc12345678,

    THANK YOU!!!

    I did rename that file, it worked. I followed through completing a purchase too. But if you don't mind explaining, I am not clear on how you knew it was the jscript_jquery-1.7.1.min.js file?

    In chrome inspect I am seeing the warning on the jquery-1.12.0.min.js. What did you use to see that there was an issue with jscript_jquery-1.7.1.min.js?

    /** CDN for jQuery core **/
    ?>

    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"%3E%3C/script%3E'));</script>
    <script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript type="text/javascript" src="<?php echo $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'); ?>/jquery.min.js"%3E%3C/script%3E'));</script>

    <?php
    /**

    I appreciate the time you have spent guiding me, and hope others benefit from this thread. Do you have a donation button somewhere? I would like to buy you a drink or two :)

    Thanks again!
    If you take a look back at post 259, from a desktop computer I was able to suggest to the store that I was on a mobile (or was it laptop) device so that the page would be displayed/presented with the same issues as seen on a mobile. While doing so, I kept an eye on the console section of the browser debug tools. Tada, said it had an issue with access 1.7.1, so... might as well try to turn it off. :)

    As with most that have a signature with their post, mine (eventually) leads to what was desired to offer, though primarily I have a dot com site associated with my username.

    Anyways, yes, I hope others (when they find this discussion) will be able to address their related issue(s), as well.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Apr 2009
    Posts
    60
    Plugin Contributions
    0

    Default Re: Zen Colorbox

    Found it - Thank you!

 

 

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