Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / flash flash banner install on Modern Zen [RI07] Template

flash flash banner install on Modern Zen [RI07] Template

Views: 3,472

Results 1 to 8 of 8
14 Apr 2010, 11:48 PM
#1
firefly143 avatar

firefly143

New Zenner

Join Date:
Apr 2010
Location:
UK
Posts:
25
Plugin Contributions:
0

flash flash banner install on Modern Zen [RI07] Template

Hi, i have just installed zen cart and then installed the Modern Zen [RI07] Template (which is very nice). I am trying to create a flash banner which is located on home page. I have created the swf. file using ALEO slideshow gallery maker and i have placed the code in the tpl_index_default.php the slideshow shows up on the home page over the top of the banner location but not within the borders, my question is, does anyone know how to place my flashslide gallery within the banner borders you can view my site at http://www.samdana.co.uk

I am new to this so would really appreciate any help given, thanks
:wacko:

15 Apr 2010, 12:58 AM
#2
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: flash flash banner install on Modern Zen [RI07] Template

Hi There,

You should be adding the Flash and your main page content here:

\includes\languages\english\html_includes\YOUR_TEMPLATE\define_main_page.php

Example of some workign flash as this can be tiresome.

<object type="application/x-shockwave-flash" data="shop/flash/YOUR_flashfile.swf" width="400" height="227"> <param name="movie" value="shop/flash/YOUR_flashfile.swf" /> <param name="quality" value="high"> <param name="BGCOLOR" value="#FFFFFF"> <param name="menu" value="false"> <param name=wmode value="transparent"> </object>

You may have to position the flash in a borderless html table.

I 'think' your flash will position reasonably well but you probably need minor adjustments with a table.

15 Apr 2010, 11:13 AM
#3
firefly143 avatar

firefly143

New Zenner

Join Date:
Apr 2010
Location:
UK
Posts:
25
Plugin Contributions:
0

Re: flash flash banner install on Modern Zen [RI07] Template

Hi thanks for your response, i tried putting the files in the mentioned location but i couldn`t get it to work so i put the files back in there original location which is my root directory (public_html) for the swf file and the location for the flash code was placed in /public_html/includes/templates/RI_TEMPLATE_07/templates/tpl_index_default.php. Below is a copy of my tpl_index_default.php file so you can see the code in situ. (the flash code has been put in bold on here only to help identify the location of the flash code.) Are there any alterations i need to make in here to get the flash inside the banner thanks.

<?php /** * Page Template * * Main index page<br /> * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br /> * Centerboxes are called as necessary * * @package templateSystem * @copyright Copyright 2003-2006 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_index_default.php 3464 2006-04-19 00:07:26Z ajeh $ */ ?> <div class="centerColumn" id="indexDefault"> <h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1> <?php if (SHOW_CUSTOMER_GREETING == 1) { ?> <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2> <?php } ?> <!-- deprecated - to use uncomment this section <?php if (TEXT_MAIN) { ?> <div id="" class="content"><?php echo TEXT_MAIN; ?></div> <?php } ?>--> <!-- deprecated - to use uncomment this section <?php if (TEXT_INFORMATION) { ?> <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div> <?php } ?>--> <div id="bannersWrapper" class="unitPng"> <div id="bannersInnerWrapper"> This banner section is located in tpl_index_default.php </div> **<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="300"> <param name="movie" value="slide.swf" /> <param name="quality" value="high" /> <param name="allowFullScreen" value="true" /> <param name="allowScriptAccess" value="always" /> <param name="wmode" value="transparent"> <embed src="slide.swf" quality="high" type="application/x-shockwave-flash" WMODE="transparent" width="550" height="300" allowFullScreen="true" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" /> </object>**</div> <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?> <?php /** * get the Define Main Page Text */ ?> <div id="indexDefaultMainContent" class="content"> <div id="indexDefaultContent"> <?php require($define_page); ?> </div> </div> <?php } ?> <?php $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN); while (!$show_display_category->EOF) { ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?> <?php /** * display the Featured Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?> <?php /** * display the Special Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?> <?php /** * display the New Products Center Box */ ?> <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?> <?php } ?> <?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?> <?php /** * display the Upcoming Products Center Box */ ?> <?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?> <?php $show_display_category->MoveNext(); } // !EOF ?> </div>

thanks for your help so far.

15 Apr 2010, 11:17 AM
#4
firefly143 avatar

firefly143

New Zenner

Join Date:
Apr 2010
Location:
UK
Posts:
25
Plugin Contributions:
0

Re: flash flash banner install on Modern Zen [RI07] Template

i have just noticed the smilie in the middle of my code. i forgot to disable smilies in my post, at this location the code reads :D

15 Apr 2010, 12:45 PM
#5
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: flash flash banner install on Modern Zen [RI07] Template

I can see now what you mean...

the template your using is different to standard.

I can see you have it loading over the top of the background image..

Yuo will need to edit your css stylesheet width to go around the banner:

#bannersInnerWrapper

edit the width sizing under this code in your stylesheet as it suits you.

16 Apr 2010, 8:30 PM
#6
firefly143 avatar

firefly143

New Zenner

Join Date:
Apr 2010
Location:
UK
Posts:
25
Plugin Contributions:
0

Re: flash flash banner install on Modern Zen [RI07] Template

Hi, yep thanks got it working now, thanks for the help. :D

17 Mar 2011, 10:14 AM
#7
cris2234 avatar

cris2234

New Zenner

Join Date:
Mar 2011
Posts:
2
Plugin Contributions:
0

Re: flash flash banner install on Modern Zen [RI07] Template

Thanks Muzz, I had same issue and now was successfully been able to place additional banners. Great support!

18 Mar 2011, 1:25 PM
#8
cris2234 avatar

cris2234

New Zenner

Join Date:
Mar 2011
Posts:
2
Plugin Contributions:
0

Re: flash flash banner install on Modern Zen [RI07] Template

cris2234:

Thanks Muzz, I had same issue and now was successfully been able to place additional banners. Great support!

Useful post on this topic as well - http://www.zen-cart.com/forum/showthread.php?p=1006108flash chat