media 65
Home | Login | Register | Password Reset |

Media 65 Technologies | Beta 0.6 |
User Name:   Password: 

Password Reset
Close


Go Back   Media 65 Forums > Joomla > Joomla Templates

 
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-10-2007, 02:14 AM
Junior Member
 
Join Date: Oct 2007
Posts: 4
Default Problems entering flash into JTK

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2 (permalink)  
Old 12-10-2007, 08:04 AM
Administrator
 
Join Date: Sep 2006
Posts: 331
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3 (permalink)  
Old 12-11-2007, 12:57 AM
Junior Member
 
Join Date: Oct 2007
Posts: 4
Default flash Problems

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="clsid27CDB6E-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>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
<td width="174" valign="top" bgcolor="#000000">&nbsp;</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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4 (permalink)  
Old 12-11-2007, 12:59 AM
Junior Member
 
Join Date: Oct 2007
Posts: 4
Default flash problems continued

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&amp;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&amp;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&amp;task=blogsection& amp;id=0&amp;Itemid=9" class="mainlevel" >Blog</a></td></tr>
<tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_weblinks&amp;Itemid=23" class="mainlevel" >Links</a></td></tr>
<tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_contact&amp;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&amp;Itemid=5" class="mainlevel" >Search</a></td></tr>
<tr align="left"><td><a href="http://www.hypnosiscds.com.au/index.php?option=com_newsfeeds&amp;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&amp;task=category&amp ;sectionid=3&amp;id=7&amp;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="clsid27CDB6E-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>
&nbsp;&nbsp;
</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&amp;task=view&amp;id= 1&amp;Itemid=1" class="readon">
Read more...</a>
</td>
</tr>
</table>

<span class="article_seperator">&nbsp;</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>
&nbsp;&nbsp;
</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">&nbsp;</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>
&nbsp;&nbsp;
</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">&nbsp;</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&amp;task=view&amp;id= 4&amp;Itemid=1">
Newsflash 3</a>
</li>
</ul>
</div></td></tr></table></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
<td width="174" valign="top" bgcolor="#000000">&nbsp;</td>
</tr>

<tr>
<td colspan="3" bgcolor="#000000"></td>
</tr>
<tr>
<td colspan="3" bgcolor="#FFFFFF"><div align="center">
&copy; 2007 hypnosis cds</div>


</td>
</tr>
</table>
<div align="center"></div>
</body>
</html>
<!-- Tue, 11 Dec 2007 16:54:58 +1100 -->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5 (permalink)  
Old 12-11-2007, 08:46 AM
Administrator
 
Join Date: Sep 2006
Posts: 331
Default

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" />
your template folder name has a space "jwd igital" should be "jwdigital"

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6 (permalink)  
Old 12-12-2007, 06:11 AM
Junior Member
 
Join Date: Oct 2007
Posts: 4
Default flash problem still

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="clsid27CDB6E-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>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
<td width="174" valign="top" bgcolor="#000000">&nbsp;</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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7 (permalink)  
Old 12-12-2007, 09:14 AM
Administrator
 
Join Date: Sep 2006
Posts: 331
Default

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>
this link to a local CSS template_css.css is needed so you can see the style sheet in DW but for live sites you should delete it.
Code:
<link href="css/template_css.css" rel="stylesheet" type="text/css" media="all">
<style type="text/css">
also in your CSS file also you may need to edit some of the background colors of the component sections and type to match your design.

Code:
.blogsection {
height:18px; <-- delete this line 
}

 .blog_more {
clear:both;
height:18px; <-- delete this line 

}

 .blog_heading {
height:18px; <-- delete this line 
}
Also the HTML CODE
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">
Last few things
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>
should be
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>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 04:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0