Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: Tomtom9800 - syyskuu 17, 2007, 03:52:51 IP

Otsikko: Adding Flash Banner HELP!
Kirjoitti: Tomtom9800 - syyskuu 17, 2007, 03:52:51 IP
I have done a search for flash banner and tried the following in order to get my flash banner working correctly and still I am clue less

The top of the page is called from the style.css and to my knowledge is not mentioned in the index.template.php

So in the index.template.php I added the following.
// Add Flash to a banner
    <table width="100%" border="0" cellspacing="0" cellpadding="0">

    <tr>

      <td>

        <div align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="576" height="117">

            <param name=movie value="/AH_Halloween_2.swf">

            <param name=quality value=high>

            <embed src="/AH_Halloween_2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="576" height="117">

            </embed>

          </object></div>

      </td>

    </tr>
</table>


I get a parse error everytime I add it and can only not get it by taking that lone of code out.  Can someone please tell me where I am going wrong or notice something wrong in the code??  Thanks for your help
Otsikko: Re: Adding Flash Banner HELP!
Kirjoitti: metallica48423 - syyskuu 17, 2007, 04:50:04 IP
you can't just plop plain html in a php file, you gotta echo it.

echo '
<code>
';

also note that as that code sits it will break your XHTML validation (which isn't important if you don't think it is).  If theres any single quotes in the code ( ' ), they'll have to have a \ placed before them.
Otsikko: Re: Adding Flash Banner HELP!
Kirjoitti: franklinrony - joulukuu 09, 2007, 03:37:33 IP
gi i add the code
   echo '<object id="metal-1-layer" width="574" height="26"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">
<param name="movie" value="menumn.swf" />
<param name="quality" value="high" />
<param name="scale" value="noscale"/>
<param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><embed name="metal-1-layer" src="menumn.swf" quality="high" scale="noscale"
bgcolor="#000000" wmode="transparent" width="574" height="26"
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';
but only appear a blank space in the banner area  its ok the code?
Otsikko: Re: Adding Flash Banner HELP!
Kirjoitti: metallica48423 - joulukuu 09, 2007, 04:58:53 IP
it looks alright.  Its parsing if its not throwing an error, and if you're getting a blank space.

You might want to check your code and make sure its right
Otsikko: Re: Adding Flash Banner HELP!
Kirjoitti: franklinrony - joulukuu 09, 2007, 05:15:54 IP
the code is fine , i think, i test in html page and work fine but when add in the smf dont appear the menu y add the code above the nav bar buttons