julianpuje Posted November 15, 2004 Posted November 15, 2004 I want to use a flash .swf file in my logo area, does anybody know how i go about doing this? I have uploaded the image file but it doesn't show. Do i need to do something else for it to read this type of file? Any help on this please. really appreciated. TIA Julian :D A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends????
nvedia Posted November 16, 2004 Posted November 16, 2004 Where have you uploaded the image file? Where is the swf file?
julianpuje Posted November 16, 2004 Author Posted November 16, 2004 I have uploaded it to my images folder with all my other gifs and jpgs Julian A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends????
ozcsys Posted November 16, 2004 Posted November 16, 2004 I have uploaded it to my images folder with all my other gifs and jpgs Julian <{POST_SNAPBACK}> What does the link to the flash file look like? Are you sure it is looking in your imaages folder? The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
julianpuje Posted November 16, 2004 Author Posted November 16, 2004 This is where the image is looking (its a subdomain test-site, hence the long address)http://www.julianp.totallynew.leisurezone.co.uk/images/header/nu_fading_tables.swf and i have placed the nu_fading_tables.swf image in the header folder??? with all the other header images. This is the test site where the current header can be seen. With the swf missing. Any help please? Cheers Julian A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends????
Guest Posted November 16, 2004 Posted November 16, 2004 In header.php the SWF embed should look something like this: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="450" height="75"> <param name="movie" value="images/banner.swf"> <param name="quality" value="high"> <embed src="images/banner.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="75"></embed> </object>
julianpuje Posted November 16, 2004 Author Posted November 16, 2004 In header.php the SWF embed should look something like this: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="450" height="75"> ?<param name="movie" value="images/banner.swf"> ?<param name="quality" value="high"> ?<embed src="images/banner.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="75"></embed> </object> <{POST_SNAPBACK}> Thanks for the reply Chemo, but i'm not too sure what you mean, unfortunately i'm no coder. Heres a copy of my cat/incl/header.php if you can tell me what i need to do or look for. cheers Julian <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // give the visitors a message that the website will be down at ... time if ( (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true') && (DOWN_FOR_MAINTENANCE == 'false') ) { $messageStack->add('header', TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE, 'warning'); } // this will let the admin know that the website is DOWN FOR MAINTENANCE to the public if ( (DOWN_FOR_MAINTENANCE == 'true') && (EXCLUDE_ADMIN_IP_FOR_MAINTENANCE == getenv('REMOTE_ADDR')) ) { $messageStack->add('header', TEXT_ADMIN_DOWN_FOR_MAINTENANCE, 'warning'); } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> </tr> </table> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } ?> A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends????
Guest Posted November 16, 2004 Posted November 16, 2004 That's not the header file used on your test site. Pasted the header.php file from your test site, the name of the SWF's, and also the SWF sizes (height, width) and I'll see what I can do for you.
julianpuje Posted November 16, 2004 Author Posted November 16, 2004 That is the header.php file from my testsite. The lay out of this site is completely different to what i'm used to (not the std ms2.2). Heres a copy of the main_page_tpl.php where all the images appear to be:- You can see the SRC="images/header/nu_fading_tables.swf" WIDTH=180 HEIGHT=144 that i've put in the images/header folder <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <?php require(DIR_WS_INCLUDES . 'meta_tags.php'); ?> <title><?php echo META_TAG_TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> <meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" /> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <?php if ($javascript) { require(DIR_WS_JAVASCRIPT . $javascript); } ?> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- All TS references added by TemplateShopper.com November 2003 TS: 750 pixel centered table for all pages of store --> <table align="center" width="780" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <!-- TS Remove 3 lines above and three closing tags at end to have 100% width store but watch graphics! Also remove center table --> <!-- warnings //--> <?php require(DIR_WS_INCLUDES . 'warnings.php'); ?> <!-- warning_eof //--> <!-- header //--> <table width="780" border="0" cellpadding="0" cellspacing="0" align="center"> <!--DWLayoutTable--> <tr> <TD width="171" height="144" valign="top"> <IMG SRC="images/header/header_01.gif" WIDTH=171 HEIGHT=144 ALT=""></TD> <TD width="169" valign="top"> <IMG SRC="images/header/header_02.gif" WIDTH=169 HEIGHT=144 ALT=""></TD> <TD COLSPAN=2 valign="top"> <IMG SRC="images/header/header_03.gif" WIDTH=179 HEIGHT=144 ALT=""></TD> <TD COLSPAN=2 valign="top"> <IMG SRC="images/header/nu_fading_tables.swf" WIDTH=180 HEIGHT=144 ALT=""></TD> <TD width="81" valign="top"> <IMG SRC="images/header/header_05.gif" WIDTH=81 HEIGHT=144 ALT=""></TD> </tr> <tr> <TD height="30" valign="top"> <IMG SRC="images/header/header_06.gif" WIDTH=171 HEIGHT=30 ALT=""></TD> <TD valign="top"> <IMG SRC="images/header/header_07.gif" WIDTH=169 HEIGHT=30 ALT=""></TD> <TD width="90" valign="top"> <a href="<?php echo tep_href_link(FILENAME_DEFAULT);?>"> <IMG SRC="images/header/header_08.gif" WIDTH=90 HEIGHT=30 ALT="" border=0></a></TD> <TD width="89" valign="top"> <a href="<?php echo tep_href_link(FILENAME_SPECIALS);?>"><IMG SRC="images/header/header_09.gif" WIDTH=89 HEIGHT=30 ALT="" border=0></TD> <TD width="91" valign="top"> <a href="<?php echo tep_href_link(FILENAME_ACCOUNT);?>"><IMG SRC="images/header/header_10.gif" WIDTH=91 HEIGHT=30 ALT="" border=0></TD> <TD width="89" valign="top"> <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING);?>"><IMG SRC="images/header/header_11.gif" WIDTH=89 HEIGHT=30 ALT="" border=0></TD> <TD valign="top"> <a href="<?php echo tep_href_link(FILENAME_CONTACT_US);?>"><IMG SRC="images/header/header_12.gif" WIDTH=81 HEIGHT=30 ALT="" border=0></TD> </tr> </table> <!-- header_eof //--> <!-- body // TS: background OSCMAX_box_bg.jpg images added --> <table border="0" width="780" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="169" valign="top" background="images/tableback.gif"><table border="0" width="169" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- content //--> <td width="100%" valign="top"> <!-- TS table added to restrict content in center box November 2003 --> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"><?php if (isset($content_template)) { require(DIR_WS_CONTENT . $content_template); } else { require(DIR_WS_CONTENT . $content . '.tpl.php'); } ?> </td> </tr> </table> <!-- TS end table for center box area --> </td> <!-- content_eof //--> <td valign="top" align="left" background="images/tableback1.gif" width="169"><table border="0" width="169" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php /* $Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table width="780" border="0" cellpadding="0" cellspacing="0" align="center"> <!--DWLayoutTable--> <tr> <TD width="168" height="30" valign="top"> <IMG SRC="images/footer/footer_02.gif" WIDTH=168 HEIGHT=30 ALT=""></TD> <TD width="162" valign="top"> <IMG SRC="images/footer/footer_03.gif" WIDTH=162 HEIGHT=30 ALT=""></TD> <TD width="110" valign="top"><a href="<?php echo tep_href_link(FILENAME_CONDITIONS);?>"> <IMG SRC="images/footer/footer_04.gif" WIDTH=110 HEIGHT=30 ALT="" border=0></a></TD> <TD width="100" valign="top"><a href="<?php echo tep_href_link(FILENAME_PRIVACY);?>"> <IMG SRC="images/footer/footer_05.gif" WIDTH=100 HEIGHT=30 ALT="" border=0></a></TD> <TD width="91" valign="top"><a href="<?php echo tep_href_link(FILENAME_CONDITIONS);?>"> <IMG SRC="images/footer/footer_06.gif" WIDTH=91 HEIGHT=30 ALT="" border=0></a></TD> <TD width="90" valign="top"><a href="<?php echo tep_href_link(FILENAME_CONTACT_US);?>"> <IMG SRC="images/footer/footer_07.gif" WIDTH=90 HEIGHT=30 ALT="" border=0></a></TD> <TD width="59" valign="top"> <IMG SRC="images/footer/footer_08.gif" WIDTH=59 HEIGHT=30 ALT=""></TD> </tr> <tr> <TD height="52" valign="top"> <IMG SRC="images/footer/footer_09.gif" WIDTH=168 HEIGHT=52 ALT=""></TD> <TD valign="top"> <IMG SRC="images/footer/footer_10.gif" WIDTH=162 HEIGHT=52 ALT=""></TD> <TD valign="top"> <IMG SRC="images/footer/footer_11.gif" WIDTH=110 HEIGHT=52 ALT=""></TD> <TD valign="top"> <IMG SRC="images/footer/footer_12.gif" WIDTH=100 HEIGHT=52 ALT=""></TD> <TD valign="top"> <IMG SRC="images/footer/footer_13.gif" WIDTH=91 HEIGHT=52 ALT=""></TD> <TD valign="top"> <IMG SRC="images/footer/footer_14.gif" WIDTH=90 HEIGHT=52 ALT=""></TD> <TD valign="top"> <IMG SRC="images/footer/footer_15.gif" WIDTH=59 HEIGHT=52 ALT=""></TD> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText"> <?php /* The following copyright announcement can only be appropriately modified or removed if the layout of the site theme has been modified to distinguish itself from the default osCommerce-copyrighted theme. For more information please read the following Frequently Asked Questions entry on the osCommerce support site: http://www.oscommerce.com/community.php/faq,26/q,50 Please leave this comment intact together with the following copyright announcement. */ echo FOOTER_TEXT_BODY ?> </td> </tr> </table> <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <!--<table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> </tr> </table>--> <?php } ?> <!-- footer_eof //--> <!-- TS closing tags of 750 pixel table --> </td> </tr> </table> </body> </html> A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends????
Guest Posted November 16, 2004 Posted November 16, 2004 Change this: <TD COLSPAN=2 valign="top"> <IMG SRC="images/header/nu_fading_tables.swf" WIDTH=180 HEIGHT=144 ALT=""> </TD> To this: <TD width="81" valign="top"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="180" height="144"> <param name="movie" value="images/header/nu_fading_tables.swf"> <param name="quality" value="high"> <embed src="images/header/nu_fading_tables.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="144"></embed> </object> </TD>
julianpuje Posted November 16, 2004 Author Posted November 16, 2004 That appears to have worked, your a genius. I now have an image there, but it's messed up the page a bit and the size is wrong? Any more help please? Cheers Julian A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends????
Guest Posted November 16, 2004 Posted November 16, 2004 This: <TD width="81" valign="top"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="180" height="144"> <param name="movie" value="images/header/nu_fading_tables.swf"> <param name="quality" value="high"> <embed src="images/header/nu_fading_tables.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="144"></embed> </object> </TD> Should be this: <TD COLSPAN=2 valign="top" valign="top"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="180" height="144"> <param name="movie" value="images/header/nu_fading_tables.swf"> <param name="quality" value="high"> <embed src="images/header/nu_fading_tables.swf" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="144"></embed> </object> </TD> Sorry about that....I forgot the colspan=2 in the TD tag.
julianpuje Posted November 16, 2004 Author Posted November 16, 2004 Thank for all your help chemo. That seems to work now, i think the image must be small that my brother has done, i'll have to check with him the size. I now have a new problem with the image, i can drag the image about using my mouse? cheers Julian A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends????
Guest Posted November 16, 2004 Posted November 16, 2004 180x144 is a pretty small file but it looks a bit smaller than those proportions on my screen as well. Try adding this parameter under the quality parameter: <param name="SCALE" value="exactfit">
Recommended Posts
Archived
This topic is now archived and is closed to further replies.