|
|||
|
I need help with entering flash swf's. I have read previous threads but have not been able to fix my problem.
I am using dreamweaver CS3 and joomla 1013a ecommerce. Everything is perfect on my localhost but when installing the template in joomla for some reason the flash file appears as part of the "polls component", if I turn off polls it dissappears. Polls component is in the right block, I put the flash in a top middle table above the main block. I have spent hours trying to fix this but as I am new to joomla, I don't understand how this could happen. Can someone please help?? Last edited by dpodesta; 12-10-2007 at 02:17 AM. |
|
|||
|
Hi dpodesta,
I don't either. 1. way this can happen is that you a div tag around the code for the module and the flash file with a condition? I need to see the file index.php to see the issue. make sure that AC_RunActiveContent.js file which dreamweaver makes for flash files is in the images folder of your template. it can be found in Scripts folder which should be in the root folder of your DW site. upload the index.php I'll take a look. Cheers, Brian |
|
|||
|
Thanks for looking at this so quickly. I really appreciate your help as I always add flash to my sites and need to make this work somehow. I will send the joomla index source code in another thread.
Below is the index php code <?php /** * @Template Name: * @Version: 1.12 * @Package: A Joomla 1.0.X template * @Copyright: (C) 2007 by Brian Diaz Media 65 * @License: http://www.m65.net/ **/ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); $iso = split( '=', _ISO ); echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <?php mosShowHead(); ?> <?php if ($my->id) {initEditor();}?> <link href="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css";?>" rel="stylesheet" type="text/css" media="all" /> <link rel="shortcut icon" href="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/favicon.ico"; ?>" /> <!-- This so you can see the css styles in DW you can delete file once editing Template is complete--> <link href="css/template_css.css" rel="stylesheet" type="text/css" media="all" /> <style type="text/css"> <!-- body { background-image: url(); } --> </style> <script src="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?> AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <table width="870" height="532" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <th height="160" colspan="3" valign="top" scope="col"><img src="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>hypnosiscdslogo.jpg" alt="hynosiscds" width="906" height="167" /></th> </tr> <tr> <td height="15" colspan="3" valign="top" bgcolor="#000000"><?php mosPathWay(); ?></td> </tr> <tr> <td width="179" valign="top" bgcolor="#000000"><?php if (mosCountModules('left')>0) mosLoadModules('left',0); ?></td> <td width="600" valign="top" bgcolor="#000000"><table width="100%" height="286" border="0" cellpadding="0" cellspacing="0"> <tr> <td scope="col"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','600','heigh t','351','title','hypnoiscds_animation','src','<?p hp echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>mymind_main','quality','high','pluginspage','htt p://www.macromedia.com/go/getflashplayer','movie','<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>mymind_main' ); //end AC code </script><noscript><object classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="351" title="hypnoiscds_animation"><param name="movie" value="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>mymind_main.swf" /> <param name="quality" value="high" /> <embed src="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>mymind_main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="351"></embed> </object></noscript></td> </tr> <tr> <td><?php mosMainBody(); ?></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table></td> <td width="174" valign="top" bgcolor="#000000"> </td> </tr> <tr> <td colspan="3" bgcolor="#000000"><?php if (mosCountModules('footer')>0) mosLoadModules('footer',-1); ?></td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF"><?php include_once('includes/footer.php'); ?></td> </tr> </table> <div align="center"></div> </body> </html> |
|
|||
|
Joomla index source code. It is not showing at all here as I haven't got polls published.
<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>hypnosis cds - Home</title> <meta name="description" content="Joomla - the dynamic portal engine and content management system" /> <meta name="keywords" content="Joomla, joomla" /> <meta name="Generator" content="Joomla! - Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved." /> <meta name="robots" content="index, follow" /> <link rel="shortcut icon" href="http://www.hypnosiscds.com.au/images/favicon.ico" /> <link href="http://www.hypnosiscds.com.au/templates/jwdigital/css/template_css.css" rel="stylesheet" type="text/css" media="all" /> <link rel="shortcut icon" href="http://www.hypnosiscds.com.au/templates/jwdigital/favicon.ico" /> <!-- This so you can see the css styles in DW you can delete file once editing Template is complete--> <link href="css/template_css.css" rel="stylesheet" type="text/css" media="all" /> <style type="text/css"> <!-- body { background-image: url(); } --> </style> <script src="http://www.hypnosiscds.com.au/templates/jwdigital/images/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <table width="870" height="532" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <th height="160" colspan="3" valign="top" scope="col"><img src="http://www.hypnosiscds.com.au/templates/jwdigital/images/hypnosiscdslogo.jpg" alt="hynosiscds" width="906" height="167" /></th> </tr> <tr> <td height="15" colspan="3" valign="top" bgcolor="#000000"><span class="pathway">Home </span></td> </tr> <tr> <td width="179" valign="top" bgcolor="#000000"> <table cellpadding="0" cellspacing="0" class="moduletable"> <tr> <th valign="top"> Main Menu </th> </tr> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_frontpage&Itemid=1" class="mainlevel" id="active_menu">Home</a></td></tr> <tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_virtuemart&Itemid=26" class="mainlevel" >Our Online-Shop</a></td></tr> <tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_content&task=blogsection& amp;id=0&Itemid=9" class="mainlevel" >Blog</a></td></tr> <tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_weblinks&Itemid=23" class="mainlevel" >Links</a></td></tr> <tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_contact&Itemid=3" class="mainlevel" >Contact Us</a></td></tr> <tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_search&Itemid=5" class="mainlevel" >Search</a></td></tr> <tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_newsfeeds&Itemid=7" class="mainlevel" >News Feeds</a></td></tr> <tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_content&task=category& ;sectionid=3&id=7&Itemid=25" class="mainlevel" >FAQs</a></td></tr> </table> </td> </tr> </table> <table cellpadding="0" cellspacing="0" class="moduletable"> <tr> <th valign="top"> Top-Ten Products </th> </tr> <tr> <td> <table border="0" cellpadding="0" cellspacing="0" width="100%"> </table> <!--Top 10 End--> </td> </tr> </table> </td> <td width="600" valign="top" bgcolor="#000000"><table width="100%" height="286" border="0" cellpadding="0" cellspacing="0"> <tr> <td scope="col"><script type="text/javascript"></script><noscript><object classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="351" title="hypnoiscds_animation"><param name="movie" value="http://www.hypnosiscds.com.au/templates/jwdigital/images/mymind_main.swf" /> <param name="quality" value="high" /> <embed src="http://www.hypnosiscds.com.au/templates/jwdigital/images/mymind_main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="351"></embed> </object></noscript></td> </tr> <tr> <td><table class="blog" cellpadding="0" cellspacing="0"><tr><td valign="top"><div> <table class="contentpaneopen"> <tr> <td class="contentheading" width="100%"> Welcome to Joomla! </td> </tr> </table> <table class="contentpaneopen"> <tr> <td width="70%" align="left" valign="top" colspan="2"> <span class="small"> Written by Web Master </span> </td> </tr> <tr> <td valign="top" colspan="2" class="createdate"> Saturday, 12 June 2004 </td> </tr> <tr> <td valign="top" colspan="2"> If you've read anything at all about Content Management Systems (CMS), you'll probably know at least three things: CMS are the most exciting way to do business, CMS can be really, I mean <i>really</i>, complicated and lastly Portals are absolutely, outrageously, often <i>unaffordably</i> expensive. <br /><br /><div class="mosimage" style=" border-width: 1px; float: left; width: 120px;" align="center"><img src="http://www.hypnosiscds.com.au/images/stories/asterisk.png" width="70" height="67" hspace="6" alt="Joomla! Logo" title="Joomla! Logo" border="0" /><div class="mosimage_caption" style="text-align: center;" align="center">Example Caption</div></div>Joomla! is set to change all that ... Joomla! is different from the normal models for portal software. For a start, it's not complicated. Joomla! has been developed for the masses. It's licensed under the GNU/GPL license, easy to install and administer and reliable. Joomla! doesn't even require the user or administrator of the system to know HTML to operate it once it's up and running. </td> </tr> <tr> <td colspan="2" align="left" class="modifydate"> Last Updated ( Saturday, 12 June 2004 ) </td> </tr> <tr> <td align="left" colspan="2"> <a href="http://www.hypnosiscds.com.au/index.php?option=com_content&task=view&id= 1&Itemid=1" class="readon"> Read more...</a> </td> </tr> </table> <span class="article_seperator"> </span> </div></td></tr><tr><td valign="top"><table width="100%" cellpadding="0" cellspacing="0"><tr><td valign="top" width="50%"> <table class="contentpaneopen"> <tr> <td class="contentheading" width="100%"> Newsflash 1 </td> </tr> </table> <table class="contentpaneopen"> <tr> <td width="70%" align="left" valign="top" colspan="2"> <span class="small"> Written by Administrator </span> </td> </tr> <tr> <td valign="top" colspan="2" class="createdate"> Monday, 09 August 2004 </td> </tr> <tr> <td valign="top" colspan="2"> Joomla! 1.0 - 'Experience the Freedom'!. It has never been easier to create your own dynamic site. Manage all your content from the best CMS admin interface. </td> </tr> </table> <span class="article_seperator"> </span> </td><td valign="top" width="50%"> <table class="contentpaneopen"> <tr> <td class="contentheading" width="100%"> Newsflash 2 </td> </tr> </table> <table class="contentpaneopen"> <tr> <td width="70%" align="left" valign="top" colspan="2"> <span class="small"> Written by Administrator </span> </td> </tr> <tr> <td valign="top" colspan="2" class="createdate"> Monday, 09 August 2004 </td> </tr> <tr> <td valign="top" colspan="2"> Yesterday all servers in the U.S. went out on strike in a bid to get more RAM and better CPUs. A spokes person said that the need for better RAM was due to some fool increasing the front-side bus speed. In future, busses will be told to slow down in residential motherboards. </td> </tr> </table> <span class="article_seperator"> </span> </td></tr></table></td></tr><tr><td valign="top"><div class="blog_more"> <div> <strong> More... </strong> </div> <ul> <li> <a class="blogsection" href="http://www.hypnosiscds.com.au/index.php?option=com_content&task=view&id= 4&Itemid=1"> Newsflash 3</a> </li> </ul> </div></td></tr></table></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table></td> <td width="174" valign="top" bgcolor="#000000"> </td> </tr> <tr> <td colspan="3" bgcolor="#000000"></td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF"><div align="center"> © 2007 hypnosis cds</div> </td> </tr> </table> <div align="center"></div> </body> </html> <!-- Tue, 11 Dec 2007 16:54:58 +1100 --> |
|
|||
|
Hi dpodesta,
you are going to laugh at yourself yes I have done this too. Code:
<param name="movie" value="http://www.hypnosiscds.com.au/templates/jwd igital/images/mymind_main.swf" /> thats why you can't see the flash file when this happens in url's http://www.m65.net/some20%space.html it gets encoded by the browser. There are a lot places where this happens in your template. I would do search and replace in DW. Cheers, Brian |
|
|||
|
Sorry I don't know why the gaps and smiley faces are appearing in the code. I viewed source from the joomla home page and copied and pasted from notepad. This is the template code.
<?php /** * @Template Name: * @Version: 1.12 * @Package: A Joomla 1.0.X template * @Copyright: (C) 2007 by Brian Diaz Media 65 * @License: http://www.m65.net/ **/ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); $iso = split( '=', _ISO ); echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <?php mosShowHead(); ?> <?php if ($my->id) {initEditor();}?> <link href="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css";?>" rel="stylesheet" type="text/css" media="all" /> <link rel="shortcut icon" href="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/favicon.ico"; ?>" /> <!-- This so you can see the css styles in DW you can delete file once editing Template is complete--> <link href="css/template_css.css" rel="stylesheet" type="text/css" media="all" /> <style type="text/css"> <!-- body { background-image: url(); } --> </style> <script src="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?> AC_RunActiveContent.js" type="text/javascript"></script> </head> <body> <table width="870" height="532" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <th height="160" colspan="3" valign="top" scope="col"><img src="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>hypnosiscdslogo.jpg" alt="hynosiscds" width="906" height="167" /></th> </tr> <tr> <td height="15" colspan="3" valign="top" bgcolor="#000000"><?php mosPathWay(); ?></td> </tr> <tr> <td width="179" valign="top" bgcolor="#000000"><?php if (mosCountModules('left')>0) mosLoadModules('left',0); ?></td> <td width="600" valign="top" bgcolor="#000000"><table width="100%" height="286" border="0" cellpadding="0" cellspacing="0"> <tr> <td scope="col"><script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','600','heigh t','351','title','hypnosiscds_animation','src','<? php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>mymind_main','quality','high','pluginspage','htt p://www.macromedia.com/go/getflashplayer','movie','<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>mymind_main' ); //end AC code </script><noscript><object classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="600" height="351" title="hypnosiscds_animation"><param name="movie" value="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>mymind_main.swf" /> <param name="quality" value="high" /> <embed src="<?php echo "$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/images/"; ?>mymind_main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="600" height="351"></embed> </object></noscript></td> </tr> <tr> <td><?php mosMainBody(); ?></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table></td> <td width="174" valign="top" bgcolor="#000000"> </td> </tr> <tr> <td colspan="3" bgcolor="#000000"><?php if (mosCountModules('footer')>0) mosLoadModules('footer',-1); ?></td> </tr> <tr> <td colspan="3" bgcolor="#FFFFFF"><?php include_once('includes/footer.php'); ?></td> </tr> </table> <div align="center"></div> </body> </html> Last edited by dpodesta; 12-12-2007 at 06:16 AM. |
|
|||
|
Hi dpodesta,
Hmm try deleting theses lines. Code:
<!-- This so you can see the css styles in DW you can delete file once editing Template is complete-->
<link href="css/template_css.css" rel="stylesheet" type="text/css" media="all">
<style type="text/css">
<!--
body {
background-image: url();
}
-->
</style>
Code:
<link href="css/template_css.css" rel="stylesheet" type="text/css" media="all"> <style type="text/css"> Code:
.blogsection {
height:18px; <-- delete this line
}
.blog_more {
clear:both;
height:18px; <-- delete this line
}
.blog_heading {
height:18px; <-- delete this line
}
top table frame width is smaller then your image size Code:
<table width="870" height="532" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" align="center"> Code:
<img src="http://www.hypnosiscds.com.au/templates/jwdigital/images/hypnosiscdslogo.jpg" alt="hynosiscds" height="167" width="906"> 1. the table that is holding your header. It has the image code in a <TH> tag for table Header it should be a <TD> tag which is most likely why your getting this issue the flash is fine. Code:
<th colspan="3" scope="col" height="160" valign="top"><img src="http://www.hypnosiscds.com.au/templates/jwdigital/images/hypnosiscdslogo.jpg" alt="hynosiscds" height="167" width="906"></th> Code:
<td colspan="3" scope="col" height="160" valign="top"><img src="http://www.hypnosiscds.com.au/templates/jwdigital/images/hypnosiscdslogo.jpg" alt="hynosiscds" height="167" width="906"></td> |
| Thread Tools | |
| Display Modes | |
|
|