Results 1 to 6 of 6

Hybrid View

  1. #1

    Idea or Suggestion 3d Carousel Menu on Main Page

    I have been trying for days to get the 3d Carousel menu FX on my main page. I can see the box where it is suppose to go. However no images show up. I've looked at all the posts and cannot figure out what I'm doing wrong.

    Any help would be greatly appreciated.

    I'm using Zencart 1.3.8a and the Pure_green template from zen-cart-power.com/

    This is the menu system:
    http://www.flashxml.net/3d-carousel-menu.html

    This is my website:
    http://www.enchantedweddingcenter.com
    Last edited by Kim; 16 Mar 2010 at 03:07 AM.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: 3d Carousel Menu on Main Page

    You haven't really told us what you did and how you did it for us to help you. There are multiple files that should come with the mod. I am guessing jscript and html which need to go in the proper file in Zen Cart.

  3. #3

    Default Re: 3d Carousel Menu on Main Page

    Here is what I setup so far

    Installed the following files in a directory off the root called
    /carousel/

    carousel.fla
    carousel.swf
    images.xml
    index.html
    index.php
    settings.xml
    swfobject.js


    I put this code in the define_main_page.php

    <head>
    </script>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <script type="text/javascript" src="swfobject.js"></script>
    <script type="text/javascript">
    swfobject.registerObject("myFlashContent", "9.0.0");
    </script>
    </head>
    <body>
    <div>
    <div align="center">
    <p>
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="330" id="myFlashContent" align="middle">
    <param name="movie" value="/carousel/carousel.swf />
    <param name="loop" value="true" />
    <param name="quality" value="best" />

    <param name="allowscriptaccess" value="always" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="/carousel/carousel.swf" width="600" height="330" align="middle">
    <param name="loop" value="true" />
    <param name="quality" value="best" />
    <param name="allowscriptaccess" value="always" />
    <!--<![endif]-->
    <a href="http://www.adobe.com/go/getflashplayer">
    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />

    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </p>
    </div>
    </body>

    I put the path to the images in the images.xml file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    This is the XML from which the SWF file reads the following data:

    image - the thumb image in the menu.
    bigimage - the big image shown in Lightbox; ignore it if you're not using Lightbox
    url - the address to go to when clicking the image
    target - _self - opens the url in the same browser page
    - _blank - opens the url in a new browser page
    - a number - executes _root.gotoAndPlay(number); in Flash - available only in the commercial package
    lightboxInfo - the description for the bigimage; ignore it if you're not using Lightbox

    The tooltip text is recorded as CDATA. You can use HTML tags like "<br>"
    -->
    <carousel centeredImage="images/logo.png" url="http://www.enchantedweddingcenter.com/carousel/" target="_blank">
    <photo image="images/01.jpg" bigimage="images/big/01.jpg" url="javascript:GroupDelegate('img1')" target="_self" lightboxInfo="Optional description for image 1"><![CDATA[Plaque Awards<br/>3D carousel]]></photo>
    <photo image="images/02.jpg" bigimage="images/big/02.jpg" url="javascript:GroupDelegate('img2')" target="_self" lightboxInfo="Optional description for image 2"><![CDATA[Clock Awards]]></photo>
    <photo image="images/03.jpg" bigimage="images/big/03.jpg" url="javascript:GroupDelegate('img3')" target="_self" lightboxInfo="Optional description for image 3"><![CDATA[Acrylic Awards]]></photo>
    <photo image="images/04.jpg" bigimage="images/big/04.jpg" url="javascript:GroupDelegate('img4')" target="_self" lightboxInfo="Optional description for image 4"><![CDATA[Crystal Awards]]></photo>
    <photo image="images/05.jpg" bigimage="images/big/05.jpg" url="javascript:GroupDelegate('img5')" target="_self" lightboxInfo="Optional description for image 5"><![CDATA[Sports Trophies]]></photo>
    <photo image="images/06.jpg" bigimage="images/big/06.jpg" url="javascript:GroupDelegate('img6')" target="_self" lightboxInfo="Optional description for image 6"><![CDATA[Elegant Awards]]></photo>
    <photo image="images/07.jpg" bigimage="images/big/07.jpg" url="javascript:GroupDelegate('img7')" target="_self" lightboxInfo="Optional description for image 7"><![CDATA[Art Awards]]></photo>
    </carousel>

  4. #4
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: 3d Carousel Menu on Main Page

    You can't just take an html code and paste into Zen Cart and expect it work. The html page is divided into <head> and <body>. Zen Cart in the end is rendered as an html page with all elements where they belong. By pasting the html code as is into the define page editor your html page is rendered to the browser as
    HTML Code:
    <head>
    </head>
    <body>
    <head>
    </head>
    <body>
    </body>
    </body>
    Is there anything wrong with this picture???

    Now I am not going to go into details on how to install it as I have never used this script. But you need to move everything in the <head> into your template common/html_header.php such as:
    HTML Code:
    <script type="text/javascript" src="http://www.domain.com/swfobject.js"></script>
    <script type="text/javascript">
    swfobject.registerObject("myFlashContent", "9.0.0");
    </script>
    Adjust the path based on where you have the script.

    The content inside the <body> can be included into Zen Cart body:
    HTML Code:
    <div>
    <div align="center">
    <p>
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="330" id="myFlashContent" align="middle">
    <param name="movie" value="/carousel/carousel.swf />
    <param name="loop" value="true" />
    <param name="quality" value="best" />
    
    <param name="allowscriptaccess" value="always" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="/carousel/carousel.swf" width="600" height="330" align="middle">
    <param name="loop" value="true" />
    <param name="quality" value="best" />
    <param name="allowscriptaccess" value="always" />
    <!--<![endif]-->
    <a href="http://www.adobe.com/go/getflashplayer">
    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
    
    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </p>
    </div>
    I didn't verify your body code so you need to make sure everything is pointing to the right location on your server. Always use full path when using external mods.

  5. #5

    Default Re: 3d Carousel Menu on Main Page

    I must still be doing something wrong.

    I put the following code in the html_header.php and the code after that in the tpl_main_page.php. All the code was removed from the define_main_page.

    My error console says swfobject is not defined


    /www/enchantedweddingcenter/includes/templates/pure_green/common/html_header.php

    <script type="text/javascript" src="http://www.enchantedweddingcenter.com/carousel/swfobject.js"></script>
    <script type="text/javascript">
    swfobject.registerObject("myFlashContent", "9.0.0");
    </script>

    /www/enchantedweddingcenter/includes/templates/pure_green/common/tpl_main_page.php
    <div>
    <div align="center">
    <p>
    <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="330" id="myFlashContent" align="middle">
    <param name="movie" value="http://www.enchantedweddingcenter.com/carousel/carousel.swf />
    <param name="loop" value="true" />
    <param name="quality" value="best" />

    <param name="allowscriptaccess" value="always" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="http://www.enchantedweddingcenter.com/carousel/carousel.swf" width="600" height="330" align="middle">
    <param name="loop" value="true" />
    <param name="quality" value="best" />
    <param name="allowscriptaccess" value="always" />
    <!--<![endif]-->
    <a href="http://www.adobe.com/go/getflashplayer">
    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />

    </a>
    <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
    </object>
    </p>
    </div>

  6. #6
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: 3d Carousel Menu on Main Page

    Sorry I am not expert in flash. Try testing on a plain html page to see if it works based on your settings. I think its better if you find something with Jquery rather than object.

 

 

Similar Threads

  1. How to Add Flash Carousel to main page?
    By gisele in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 31 Jan 2011, 03:51 PM
  2. Disable option on page under main admin menu
    By omerhanif in forum General Questions
    Replies: 1
    Last Post: 20 Jan 2011, 12:50 PM
  3. 3D Carousel Menu FX
    By Evolution81 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Apr 2010, 08:06 PM
  4. Main Page menu error!
    By jackrich1967 in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 13 Apr 2010, 11:59 AM
  5. Menu Link to Main Store Page/Listing
    By dsutton in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Mar 2009, 01:12 AM

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