Forums

[resolved] swf will not work on wordpress template (12 posts)

  1. alofear
    Member
    Posted 2 years ago #

    After 78 hours of trying to figure this out on my own, I still can't figure this out..

    The swf banner my client wants on there homepage will not display (at all) when I apply the word press template, but it works stand-alone on page by itself.

    here is the code that works

    <script src="../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','560','height','290','wmode','transparent','music_on','0','src','flash/flash/header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/flash/header' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="560" height="290">
      <param name="movie" value="flash/flash/header.swf">
      <param name="quality" value="high">
      <param name="wmode" value="transparent" />
      <param name="music_on" value="0" /><param name="SCALE" value="noborder">
      <embed src="flash/flash/header.swf" width="560" height="290" quality="high" allowScriptAccess="sameDomain"  pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" music_on="0" scale="noborder"></embed>
    </object>
    </noscript>

    and here is the page that I put it on

    <?php get_header(); ?>
    <link href="style.css" rel="stylesheet" type="text/css" />
    
    <div id="main_bg">
    <div id="main">
    <div class="contentwrapper_clear">
    <div class="three_px_space"></div><div id="left_feed"><div class="accent_header_text">Upcoming Events</div><div id="left_feed_content">example</div></div>
    <div id="flash"><script src="<?php echo get_bloginfo('template_directory'); ?>/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','560','height','290','wmode','transparent','music_on','0','src','<?php echo get_bloginfo('template_directory'); ?>/flash/flash/header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/flash/header' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="560" height="290">
      <param name="movie" value="<?php echo get_bloginfo('template_directory'); ?>/flash/flash/header.swf">
      <param name="quality" value="high">
      <param name="wmode" value="transparent" />
      <param name="music_on" value="0" /><param name="SCALE" value="noborder">
      <embed src="<?php echo get_bloginfo('template_directory'); ?>/flash/flash/header.swf" width="560" height="290" quality="high" allowScriptAccess="sameDomain"  pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" music_on="0" scale="noborder"></embed>
    </object>
    </noscript></div>
    </div>
    <div class="cleared"></div>
    <div class="main_divider"></div>
    <div class="contentwrapper">
    
    <div class="topPost"><div id="right_feed"><div class="accent_header_text">Blog</div><div id="right_feed_content">example text</div></div>
      <h2 class="topTitle">Welcome</h2>
      <div class="topContent">example text</div>
    <div class="cleared"></div>
    </div> <!-- Closes topPost -->
    
    </div> <!-- Closes contentwrapper-->
    <div class="three_px_space"></div>
    
    <div class="cleared"></div>
    
    </div></div><!-- Closes Main -->
    
    <?php get_footer(); ?>

    dose the "<script src="<?php echo get_bloginfo('template_directory'); ?>/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>" need to be in the header.php ?

    Any help will be great!

  2. alofear
    Member
    Posted 2 years ago #

  3. equalmark
    Member
    Posted 2 years ago #

    The page is trying to load this:

    http://mainebound.com/test_hrpi/flash/flash/header.swf

    But failing

    Where is that being pulled from the source?

  4. alofear
    Member
    Posted 2 years ago #

    it should be

    http://mainebound.com/test_hrpi/wp-content/themes/hrpi/flash/header.swf

    i just changed

    <?php echo get_bloginfo('template_directory'); ?>/flash/flash/header.swf

    to

    <?php echo get_bloginfo('template_directory'); ?>/flash/header.swf

    (Still not working)

  5. equalmark
    Member
    Posted 2 years ago #

    Try replacing it with this:

    <?php bloginfo('template_url'); ?>/flash/header.swf

  6. alofear
    Member
    Posted 2 years ago #

    still no luck :-/

    <!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" xml:lang="en" lang="en">
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"  />
    <title>HR Partners International - Your People are Our Business!</title>
    <meta name="generator" content="WordPress 2.8.6" />
    <meta name="robots" content="follow, all" />
    <link rel="stylesheet" href="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/style.css" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="HR Partners International RSS Feed" href="http://mainebound.com/test_hrpi/feed/" />
    <link rel="pingback" href="http://mainebound.com/test_hrpi/xmlrpc.php" />
    <meta name='robots' content='noindex,nofollow' />
    <script type='text/javascript' src='http://mainebound.com/test_hrpi/wp-includes/js/swfobject.js?ver=2.1'></script>
    
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://mainebound.com/test_hrpi/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://mainebound.com/test_hrpi/wp-includes/wlwmanifest.xml" />
    <link rel='index' title='HR Partners International' href='http://mainebound.com/test_hrpi' />
    <meta name="generator" content="WordPress 2.8.6" />
    
    <!-- this product is released under General Public License. Please see the attached file for details. You can also find details about the license at http://www.opensource.org/licenses/gpl-license.php -->
    
    <script type="text/javascript"><!--//--><![CDATA[//><!--
    sfHover = function() {
    	if (!document.getElementsByTagName) return false;
    	var sfEls = document.getElementById("nav").getElementsByTagName("li");
    
    	for (var i=0; i<sfEls.length; i++) {
    		sfEls[i].onmouseover=function() {
    			this.className+=" sfhover";
    		}
    		sfEls[i].onmouseout=function() {
    			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    		}
    	}
    
    }
    if (window.attachEvent) window.attachEvent("onload", sfHover);
    //--><!]]></script>
    
    <!--[if lt IE 8]>
    <link href="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/ie.css" rel="stylesheet" type="text/css" />
    <![endif]-->
    
    <!--[if lt IE 7]>
    <link href="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/ie6.css" rel="stylesheet" type="text/css" />
    <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js" type="text/javascript"></script>
    <![endif]-->
    
    <link href="style.css" rel="stylesheet" type="text/css" />
    </head>
    
    <body>
    <div id="header_bg">
    <div id="hrpi_body">
    <div id="header_top">
    </div>
    <div id="header_left">
    </div>
    <div id="header_middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
    
            <td><a href="http://mainebound.com/test_hrpi"><img src="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/images/hr_header.jpg" alt="HR Partners International" width="678" height="106" border="0" align="left" /></a></td>
            <td><img src="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/images/hr_hotline_link.jpg" alt="HR Hotline" align="right" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="27" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="11" height="26" background="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/images/nav_top_left.jpg">&nbsp;</td>
    
            <td background="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/images/nav_top_bg.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="hrpi_space"></td>
        <td width="710"><div id="catnav">
    <ul id="nav">
      <li><a href="http://mainebound.com/test_hrpi">Home</a></li>
      <li>| </li><li class="page_item page-item-3"><a href="http://mainebound.com/test_hrpi/services/" title="Services">Services</a></li>
    <li>| </li><li class="page_item page-item-5"><a href="http://mainebound.com/test_hrpi/seminars/" title="Seminars">Seminars</a>
    
    <ul>
    	<li class="page_item page-item-13"><a href="http://mainebound.com/test_hrpi/seminars/first-thursdays/" title="First Thursday’s">First Thursday’s</a></li>
    </ul>
    </li>
    <li>| </li><li class="page_item page-item-7"><a href="http://mainebound.com/test_hrpi/services-2/" title="HR Career Network">HR Career Network</a></li>
    <li>| </li><li class="page_item page-item-10"><a href="http://mainebound.com/test_hrpi/resources/" title="Resources">Resources</a></li>
    <li>| </li><li class="page_item page-item-2"><a href="http://mainebound.com/test_hrpi/about/" title="About">About</a></li>
    </ul>
    
    </div></td>
        <td class="hrpi_space"></td>
      </tr>
    </table>
    </td>
            <td width="8" height="26" background="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/images/nav_top_right.jpg">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table>
    
    </div>
    <div id="header_right">
    </div>
    
    </div>
    </div>
    
    <div id="wrapper">
    
    <div class="cleared"></div>
    
    <link href="style.css" rel="stylesheet" type="text/css" />
    
    <div id="main_bg">
    <div id="main">
    <div class="contentwrapper_clear">
    
    <div class="three_px_space"></div><div id="left_feed"><div class="accent_header_text">Upcoming Events</div><div id="left_feed_content">example</div></div>
    <div id="flash"><script src="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','560','height','290','wmode','transparent','music_on','0','src','http://mainebound.com/test_hrpi/wp-content/themes/hrpi/flash/header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','http://mainebound.com/test_hrpi/wp-content/themes/hrpi/flash/header' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="560" height="290">
      <param name="movie" value="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/flash/header.swf">
      <param name="quality" value="high">
      <param name="wmode" value="transparent" />
      <param name="music_on" value="0" /><param name="SCALE" value="noborder">
      <embed src="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/flash/header.swf" width="560" height="290" quality="high" allowScriptAccess="sameDomain"  pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" music_on="0" scale="noborder"></embed>
    </object>
    </noscript></div>
    </div>
    <div class="cleared"></div>
    <div class="main_divider"></div>
    <div class="contentwrapper">
    
    <div class="topPost"><div id="right_feed"><div class="accent_header_text">Blog</div><div id="right_feed_content"><ul id="sidebar_updates">
        <li><strong>November 24, 2009</strong><br /><a href="http://mainebound.com/test_hrpi/2009/11/hello-world/" rel="bookmark">Hello world!</a></br></li>
    
    </ul>
    </div></div>
      <h2 class="topTitle">Welcome</h2>
      <div class="topContent">example text</div>
    <div class="cleared"></div>
    </div> <!-- Closes topPost -->
    
    </div> <!-- Closes contentwrapper-->
    <div class="three_px_space"></div>
    
    <div class="cleared"></div>
    
    </div></div><!-- Closes Main -->
    
    <div id="hrpi_body">
    <table width="852" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#495c84"><table width="852" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="25" background="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/images/background_left_repeat.jpg" style="background-position:right;">&nbsp;</td>
            <td width="2"></td>
            <td width="798px" height="61" valign="top" background="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/images/footer_bg.png"><ul id="nav_footer">
    
      <li><a href="http://mainebound.com/test_hrpi">Home</a></li>
      <li>| </li><li class="page_item page-item-3"><a href="http://mainebound.com/test_hrpi/services/" title="Services">Services</a></li>
    <li>| </li><li class="page_item page-item-5"><a href="http://mainebound.com/test_hrpi/seminars/" title="Seminars">Seminars</a></li>
    <li>| </li><li class="page_item page-item-7"><a href="http://mainebound.com/test_hrpi/services-2/" title="HR Career Network">HR Career Network</a></li>
    <li>| </li><li class="page_item page-item-10"><a href="http://mainebound.com/test_hrpi/resources/" title="Resources">Resources</a></li>
    <li>| </li><li class="page_item page-item-2"><a href="http://mainebound.com/test_hrpi/about/" title="About">About</a></li>
    
    </ul><div id="footer">Copyright &copy; 2009 HR Partners International, Inc. All Rights Reserved.<br />
    Site designed by <a href="http://vtechdirect.com/" target="_blank">VTechDirect, LLC</a></div></td>
            <td width="2"></td>
            <td width="25" background="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/images/background_right_repeat.jpg" style="background-position:left;">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    
      <tr>
        <td width="852" height="14" background="http://mainebound.com/test_hrpi/wp-content/themes/hrpi/images/background_footer.jpg"  style="background-position:top center;"></td>
      </tr>
    </table>
    </div>
    
    <!-- Closes morefoot -->
    <!-- Closes footer -->
    
    </div>
    <!-- Closes wrapper -->
    
    </body>
    </html>
  7. alofear
    Member
    Posted 2 years ago #

    when i copy and paste the code that is generated from the web and create a new page with the content it works!.... but I would prefer for the dynamic content to work...

    link to working test site

    http://mainebound.com/test_hrpi/wp-content/themes/hrpi/test2.php

    link to the not working dynamic page

    http://mainebound.com/test_hrpi/

    code of the dynamic page

    <?php get_header(); ?>
    <link href="style.css" rel="stylesheet" type="text/css" />
    
    <div id="main_bg">
    <div id="main">
    <div class="contentwrapper_clear">
    <div class="three_px_space"></div><div id="left_feed"><div class="accent_header_text">Upcoming Events</div><div id="left_feed_content">example</div></div>
    <div id="flash"><script src="<?php bloginfo('template_url'); ?>/Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','560','height','290','wmode','transparent','music_on','0','src','<?php bloginfo('template_url'); ?>/flash/header','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','<?php bloginfo('template_url'); ?>/flash/header' ); //end AC code
    </script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="560" height="290">
      <param name="movie" value="<?php bloginfo('template_url'); ?>/flash/header.swf">
      <param name="quality" value="high">
      <param name="wmode" value="transparent" />
      <param name="music_on" value="0" /><param name="SCALE" value="noborder">
      <embed src="<?php bloginfo('template_url'); ?>/flash/header.swf" width="560" height="290" quality="high" allowScriptAccess="sameDomain"  pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" music_on="0" scale="noborder"></embed>
    </object>
    </noscript></div>
    </div>
    <div class="cleared"></div>
    <div class="main_divider"></div>
    <div class="contentwrapper">
    
    <div class="topPost"><div id="right_feed"><div class="accent_header_text">Blog</div><div id="right_feed_content"><?php include (TEMPLATEPATH . "/recentupdates.php"); ?></div></div>
      <h2 class="topTitle">Welcome</h2>
      <div class="topContent">example text</div>
    <div class="cleared"></div>
    </div> <!-- Closes topPost -->
    
    </div> <!-- Closes contentwrapper-->
    <div class="three_px_space"></div>
    
    <div class="cleared"></div>
    
    </div></div><!-- Closes Main -->
    
    <?php get_footer(); ?>
  8. alofear
    Member
    Posted 2 years ago #

    Found out you need to have the swf file on the root dir, and not the theme dir.

  9. realnoodles
    Member
    Posted 2 years ago #

    Root dir of the blog? or root dir of the site?

  10. vnatura
    Member
    Posted 2 years ago #

    the blog root (i was having the same issue)

  11. pixeldelight
    Member
    Posted 1 year ago #

    Brilliant thanks!

  12. MegaToon TV
    Member
    Posted 1 year ago #

    Hi,

    Is this video about loading some images in a specific folder? Coz I managed to make the video load but then its just blank, the images are not loaded from the xml file.

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic