Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  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
    78
    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
    5
    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);

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v138a Image Handler 2 (for ZC v1.3.8 ONLY) Support
    By timkroeger in forum All Other Contributions/Addons
    Replies: 7078
    Last Post: 6 May 2013, 02:18 AM
  2. remove Larger Image link under additional images
    By khopek in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Sep 2010, 07:01 PM
  3. _LRG image displaying at Small Image size
    By sopretty in forum General Questions
    Replies: 11
    Last Post: 1 Oct 2006, 09:28 PM
  4. 'Larger Image' Window Size & Background
    By zlagdash in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 9 Jul 2006, 05:44 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
  •