Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Mysterious Validator Link

    I've noticed in the last few Zen Cart versions that located in this file:

    /includes/templates/template_default/common/tpl_footer.php

    there is this code at the bottom:

    Code:
    <?php
    } // flag_disable_footer
    ?>
    
    <?php if (false || (isset($showValidatorLink) && $showValidatorLink == true)) { ?>
    <a href="https://validator.w3.org/check?uri=<?php echo urlencode('http' . ($request_type == 'SSL' ? 's' : '') . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . (strstr($_SERVER['REQUEST_URI'], '?') ? '&' : '?') . zen_session_name() . '=' . zen_session_id()); ?>" target="_blank">VALIDATOR</a>
    <?php } ?>
    I have not been able to find an ON/OFF switch. Is there one and I'm just not seeing it?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Mysterious Validator Link

    Given that the validation link is more of a dev thing than something customers need, and if issues need fixing then FTP will be required, there is no admin switch.

    Instead, there are two file-based ways to enable it:

    You could simply change the 'false' to 'true' in the file itself:

    Code:
    <?php if (false || (isset($showValidatorLink) && $showValidatorLink == true)) { ?>
    Or, alternatively you could add an /includes/extra_configures/validator_link.php file, containing:
    Code:
    <?php
    $showValidatorLink = true;
    and simply change its extension from .php to .off when not needed. Or just leave it as .php if you're begging for a way to leave the icon on all the time.
    (You could have this file on your "dev" site, and skip uploading it to your "live" site. That way you always have the "dev" site showing the icon for convenience.)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Mysterious Validator Link

    Most developers already know about using a Browser tool to validate and people that are not developers probably wouldn't know what the code is about or how to enable it.

    Being as this is core code added since v1.5.5 and it is coded to use a switch, are there plans to incorporate an Admin switch at some point?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: Mysterious Validator Link

    No .
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v151 Validator Issues... I'm stumped
    By Feznizzle in forum General Questions
    Replies: 11
    Last Post: 5 Feb 2016, 08:23 PM
  2. CSS Validator Error
    By DBB1 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jan 2009, 09:50 PM
  3. Validator Error
    By nrg77 in forum General Questions
    Replies: 0
    Last Post: 23 Nov 2007, 08:57 PM
  4. Mysterious clickable broken image link in header
    By angelanger in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Aug 2006, 08:58 PM
  5. AmEx cvv validator?
    By kinethic in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 31 Jul 2006, 02:31 AM

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