Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2011
    Posts
    228
    Plugin Contributions
    0

    Default Problem with tpl_modules_main_product_image.php

    Hi

    I tried to install Fual Slimbox. (I uninstalled lightbox completely first)
    I merged the additional images file. I also merged the tpl_modules_main_product_image.php but for some reason after that merge my product info didn't display at all...

    You can see my website here:
    http://www.pcselect.co.za

    This is what tpl_modules_main_product_image.php looks like:
    PHP Code:
    <?php
    /**
     * Module Template
     *
     * @package templateSystem
     * @copyright Copyright 2007 FUAL
     * @copyright Portions Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_modules_main_product_image.php 2007-12-04 btyler $
     */
    ?>
    <?php 
    require(DIR_WS_MODULES zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> 
    <div id="productMainImage" class="centeredContent back">
    <script language="javascript" type="text/javascript"><!--
    document.write('<?php echo '<a href="javascript:popupWindow(\\\'' zen_href_link(FILENAME_POPUP_IMAGE'pID=' $_GET['products_id']) . '\\\')">' zen_image($products_image_mediumaddslashes($products_name), MEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' TEXT_CLICK_TO_ENLARGE '</span></a>'?>');
    //--></script>
    <noscript>
    <?php
      
    echo '<a href="' zen_href_link(FILENAME_POPUP_IMAGE'pID=' $_GET['products_id']) . '" target="_blank">' zen_image($products_image_medium$products_nameMEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' TEXT_CLICK_TO_ENLARGE '</span></a>';
    ?>
        <script language="javascript" type="text/javascript"><!--
        document.write('<?php echo $fualSlimboxContent?>' );
        //--></script>
        <noscript>
        <?php
        
    // If they can't be bothered to get a decent browser or turn js on then they only deserve the default behaviour.
        
    echo '<a href="' zen_href_link(FILENAME_POPUP_IMAGE'pID=' $_GET['products_id']) . '" target="_blank">' zen_image($products_image_medium$products_nameMEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' TEXT_CLICK_TO_ENLARGE '</span></a>';
    ?>
        </noscript>
    <?php         
    } else {
    ?>
    <!-- bof Zen Slimbox v0.1 btyler 2007-12-04 -->
        <script language="javascript" type="text/javascript"><!--
        document.write('<?php echo '<a href="javascript:popupWindow(\\\'' zen_href_link(FILENAME_POPUP_IMAGE'pID=' $_GET['products_id']) . '\\\')">' zen_image($products_image_mediumaddslashes($products_name), MEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' TEXT_CLICK_TO_ENLARGE '</span></a>'?>');
        //--></script>
        <noscript>
        <?php
        
    echo '<a href="' zen_href_link(FILENAME_POPUP_IMAGE'pID=' $_GET['products_id']) . '" target="_blank">' zen_image($products_image_medium$products_nameMEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT) . '<br /><span class="imgLink">' TEXT_CLICK_TO_ENLARGE '</span></a>';
        
    ?>
        </noscript>
    <?php ?>
    </div>
    Does something not look right?

    Thanks
    S

  2. #2
    Join Date
    Sep 2011
    Posts
    228
    Plugin Contributions
    0

    Default Re: Problem with tpl_modules_main_product_image.php

    edit: I am running Image Handler v3

  3. #3
    Join Date
    Aug 2005
    Posts
    26,245
    Plugin Contributions
    9

    Default Re: Problem with tpl_modules_main_product_image.php

    for some reason after that merge my product info didn't display at all...
    I see product info when viewing

    /index.php?main_page=product_info&cPath=4_2_46&products_id=51
    Zen-Venom Get Bitten
    Get Your Business Found

  4. #4
    Join Date
    Aug 2010
    Location
    Egypt - USA
    Posts
    83
    Plugin Contributions
    0

    Default Re: Problem with tpl_modules_main_product_image.php

    i think you still have lightbox and i can see product info display at all your site pages normally.
    I have small question for you plz ... where you get the facebook, tweet, etc that i can see them under your products main image ??what is the mod name and link to get it plz

  5. #5
    Join Date
    Sep 2011
    Posts
    228
    Plugin Contributions
    0

    Default Re: Problem with tpl_modules_main_product_image.php

    Quote Originally Posted by kobra View Post
    I see product info when viewing

    /index.php?main_page=product_info&cPath=4_2_46&products_id=51
    I changed the site back to lightbox. Basically all I would like to know is how to make it so that when a person clicks on an image, the lightbox will come up, but when a person click out of the lightbox (in the darkened area) the lightbox will disappear along with the darkened area.

    Quote Originally Posted by thunder2010 View Post
    i think you still have lightbox and i can see product info display at all your site pages normally.
    I have small question for you plz ... where you get the facebook, tweet, etc that i can see them under your products main image ??what is the mod name and link to get it plz
    Yes I installed it again.

    The add on is http://www.addthis.com/

    I am just not sure why the "Like" button doesn't display the bubble unless it has more than 0 like.


    Thanks
    S

 

 

Similar Threads

  1. Strange Problem- Twist of Nature Template or Hosting Problem?
    By xanabobana in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Dec 2010, 10:28 PM
  2. Replies: 11
    Last Post: 25 Oct 2010, 09:52 PM
  3. How Would i Fuse These 2 tpl_modules_main_product_image.php?
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 May 2009, 11:57 AM
  4. How to change tpl_modules_main_product_image
    By xordox in forum General Questions
    Replies: 2
    Last Post: 24 Oct 2008, 10:46 PM
  5. Border Problem and Text under main page category image problem
    By bigc90210 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Feb 2007, 02:40 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
  •