Results 1 to 10 of 3727

Hybrid View

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

    Default Re: Zen Lightbox...

    You are right pukram.. Dunno if this code works, but I do know that this SHOULD be an override.

    NEVER NEVER NEVER make modifications to ANY FILE in the "template_default" folder..

    Quote Originally Posted by pukram View Post
    not sure what you mean there... en francais?! ;)

    thanks for the contribution ... I have installed your mod but as a result no window will open at all, all languages the same issue (have now reverted to the previous status)

    Does the html_header change to make has to be in the template_default? can it not be in my shop template (YOUR-TEMPLATE-FOLDER)?

    merci!
    Quote Originally Posted by jisaac View Post
    Hi,

    If you want to manage multiple language support for Zen Lightbox I made some changes in code.

    Feel free to use the following attachment.

    Of course, you need to duplicate all english directories of the module in the same place with the correct language name you use.
    In the new language directories, make changes as necessary (texts and images).

    Files changes:

    includes\classes\zen_lightbox\autoload_default.php
    includes\templates\template_default\common\html_header.php

    ***********
    * WARNING *
    ***********

    html_header.php come from v1.3.9h (I haven't test it because I still use a previous zen-cart version)

    If you still use a previous zen-cart version, do not use html_header.php included in the attachment, but you can just add the folowing code in the file includes\templates\template_default\common\html_header.php like you can see in the attachment:

    <?php
    /**
    * load all template-specific stylesheets, named like "style*.php", alphabetically
    */
    $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.php');
    while(list ($key, $value) = each($directory_array)) {
    $tmpcssdyn = '<script language="javascript" type="text/javascript"><!--'."\n";
    $tmpcssdyn .= 'document.writeln(\'<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '?charset=' . CHARSET . '&language=' . $_SESSION['language'] . '" />\');'."\n";
    $tmpcssdyn .= '//--></script>'."\n";
    echo $tmpcssdyn;
    }

    File deleted:

    includes\templates\YOUR-TEMPLATE-FOLDER\css\stylesheet_zen_lightbox.css

    File added:

    includes\templates\YOUR-TEMPLATE-FOLDER\css\stylesheet_zen_lightbox.php


    Enjoy ;)

    Jacques from France
    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
    May 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by DivaVocals View Post
    You are right pukram.. Dunno if this code works, but I do know that this SHOULD be an override.

    NEVER NEVER NEVER make modifications to ANY FILE in the "template_default" folder..
    Yes, you right !!! It's my first contribution, and I forgot this recomendation because I do this in my development. Sorry about it !
    So You have to put html_header.php in includes\templates\YOUR-TEMPLATE-FOLDER\common\html_header.php

    I'm sorry I leave this version for 1.3.9h without testing. It should work but I don't have time to install 1.3.9h and test it.

  3. #3
    Join Date
    May 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: Zen Lightbox...

    Quote Originally Posted by DivaVocals View Post
    You are right pukram.. Dunno if this code works, but I do know that this SHOULD be an override.

    NEVER NEVER NEVER make modifications to ANY FILE in the "template_default" folder..
    I would like to fix my previous post but I can't edit it.

 

 

Similar Threads

  1. Free Shipping Rules addon [Support Thread]
    By numinix in forum Addon Shipping Modules
    Replies: 36
    Last Post: 2 Dec 2016, 01:56 PM
  2. v151 Reviews Reply addon [Support Thread]
    By mikestaps in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 17 Oct 2014, 01:29 AM
  3. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  4. File Upload Required addon [Support Thread]
    By 1100101 in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 10 Dec 2011, 03:00 AM
  5. [Support Thread] IE only JavaScripts and Stylesheets Addon
    By Meshach in forum All Other Contributions/Addons
    Replies: 16
    Last Post: 31 May 2011, 08:18 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