Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    May 2007
    Posts
    2
    Plugin Contributions
    0

    Default embed .swf object in tpl _modules_main_product_image.php

    Hi,

    I am trying to embed video in .swf format.

    I need to change the main file:
    \includes\templates\template_default\templates\tpl_modules_main_product_image.ph p

    more specifically this part:

    <div id="productMainImage" class="centeredContent back">
    <?php echo '<a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id'])
    . '" target="_blank" onclick="popupWindow(this.href); return false">'
    . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT)
    . '<br /><span class="imgLink">' . TEXT_CLICK_TO_ENLARGE . '</span></a>';
    ?>
    </div>

    to embed the video

    As far as I understood, I need to create an .swf object (which contains the image,product path, product name, and product id)
    this is the .swf object, includes an already public swfobject.js (which detects the flash player):

    <script type="text/javascript" src="includes/modules/pages/product_info/swfobject.js"></script>

    <div id="flashcontent">
    This text is replaced by the Flash movie.
    </div>

    <script type="text/javascript">
    var so = new SWFObject("so_tester.swf", "mymovie", "200", "100", "9", "#336699"); so.write("flashcontent");
    </script>

    My question is how do I make this work. How do I blend the first part of the code with the last part - the .swf object. Or is there an easier way?

    Would really appreciate your help.

    Thanks,
    F.

  2. #12
    Join Date
    Jan 2007
    Location
    Florida/Missouri
    Posts
    77
    Plugin Contributions
    0

    Default Re: How can I remove the 'Larger Image' Link?

    Can anyone tell me why I have "larger image" at: http://pepper-spray.biz/index.php?ma...products_id=12

    and not on other pages. I would like to get rid of it.

    Thanks

  3. #13
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: How can I remove the 'Larger Image' Link?

    MOD ready. Simply follow my signature's link called: Configure larger images link as it will forward you to the topic. Also reply to that topic if you request further support on this subject.

    Thanks.

  4. #14
    Join Date
    Mar 2011
    Posts
    42
    Plugin Contributions
    0

    Default Re: How can I remove the 'Larger Image' Link?

    Hi, I also wanted to do this, found this thread, and figured out a better way to solve the problem, I believe.

    You simply need to remove some code from the tpl_modules_main_product_image.php file.

    Here is the finished file, basically, you remove the instructions from the echo commands to echo the link, and instead, make the echo commands simply echo the image itself.

    Code:
    <?php
    /**
     * Module Template
     *
     * @package templateSystem
     * @copyright 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 3208 2006-03-19 16:48:57Z birdbrain $
     */
    ?>
    <?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 zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT); ?>');
    //--></script>
    <noscript>
    <?php
      echo zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);
    ?>
    </noscript>
    </div>
    Let me know if this helps!


  5. #15
    Join Date
    Nov 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: How can I remove the 'Larger Image' Link?

    Many thanks, that works perfectly.

    For any other novices like me the edited file needs to go in your custom template directory so it overides the default, for example:

    /includes/templates/CUSTOM/templates/tpl_modules_main_product_image.php

    Paul

  6. #16
    Join Date
    Jul 2012
    Posts
    8
    Plugin Contributions
    0

    Default Re: How can I remove the 'Larger Image' Link?

    If you only want the large picture to show try this in the code:
    echo zen_image($products_image_large, $products_name, MAIN_IMAGE_WIDTH, MAIN_IMAGE_HEIGHT);

  7. #17
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: How can I remove the 'Larger Image' Link?

    Because the 'larger image' link is already wrapped in a <span class="imgLink"> tag, add this to your CSS:

    .imgLink {display:none}

    The link will disappear.
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 remove the “Larger image" Link.
    By Bob_L in forum Customization from the Admin
    Replies: 1
    Last Post: 30 Jul 2012, 07:54 AM
  2. How can I disable the "Larger Image" link on SOME products?
    By btolly in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 19 Aug 2009, 02:39 PM
  3. How can I get Larger Image link only on some products?
    By khopek in forum Basic Configuration
    Replies: 1
    Last Post: 30 Jun 2007, 08:25 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