Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
testy1
Involved
Involved



Joined: Apr 06, 2008
Posts: 484

PostPosted: Fri Nov 07, 2008 8:05 pm Reply with quote

I noticed when using flash in the advertising module it breaks the compliancy so I updated the code in mainfile.

In mainfile on line 1898 change it to;

Code:


$ads = '<center>
                <object type="application/x-shockwave-flash" data="'.$imageurl.'" name="'.$bid.'" width="'.$ad_width.'" height="'.$ad_height.'">
            <param name="movie" value="'.$imageurl.'" />
            <img src="noflash.gif" width="200" height="100" alt="" />
            <param name="quality" value="high" />
            <param name="loop" value="true" />
            <param name="menu" value="false" />
            </object>
                </center>';


from what I have read, if your browser has trouble with the mimetype "application/x-shockwave-flash" you can add and image tag as it will look at the very next one.This can obviously be removed.Anyone see any issue's with this?

It seems to work in FF 3 and IE 7.
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Nov 10, 2008 9:48 am Reply with quote

Thanks Testy. I've submitted a Mantis issue on this. Just for clarification, here is exactly how our code reads. Using our exact code, please mark up your proposed changes.

Code:
            $ads = '<center>

                <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
                WIDTH="'.$ad_width.'" HEIGHT="'.$ad_height.'" id="'.$bid.'">
                <PARAM NAME="movie" VALUE="'.$imageurl.'">
                <PARAM NAME="quality" VALUE="high">
                <EMBED src="'.$imageurl.'" quality="high" WIDTH="'.$ad_width.'" HEIGHT="'.$ad_height.'"
                NAME="'.$bid.'" ALIGN="" TYPE="application/x-shockwave-flash"
                PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
                </EMBED>
                </OBJECT>
                </center>';
 
View user's profile Send private message
testy1







PostPosted: Mon Nov 10, 2008 4:15 pm Reply with quote

yer no problem

this is the OEM code
Code:


$ads = '<center>
                <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
                WIDTH="'.$ad_width.'" HEIGHT="'.$ad_height.'" id="'.$bid.'">
                <PARAM NAME="movie" VALUE="'.$imageurl.'">
                <PARAM NAME="quality" VALUE="high">
                <EMBED src="'.$imageurl.'" quality="high" WIDTH="'.$ad_width.'" HEIGHT="'.$ad_height.'"
                NAME="'.$bid.'" ALIGN="" TYPE="application/x-shockwave-flash"
                PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
                </EMBED>
                </OBJECT>
                </center>';


And here is the replacement code
Code:


$ads = '<center>
                <object type="application/x-shockwave-flash" data="'.$imageurl.'" name="'.$bid.'" width="'.$ad_width.'" height="'.$ad_height.'">
               <param name="movie" value="'.$imageurl.'" />
               <img src="noflash.gif" width="200" height="100" alt="" />
               <param name="quality" value="high" />
               <param name="loop" value="true" />
               <param name="menu" value="false" />
               </object>
                </center>';


Using the above code....apparently if your browser see's the following

Code:


type="application/x-shockwave-flash"


and cant understand it or does not support it, It looks at the very next tag to see if it can go on.Thats why you put an image tag so you can display some type of image that says "flash is not supported".This would need discussion I suppose as to whether it is usefull or not, but in my tests the above code worked perfectly in IE7, FF3.03 and Chrome.
 
testy1







PostPosted: Sun Nov 23, 2008 5:55 pm Reply with quote

after checking out dreamweavers new features....I see it now produces xhtml compliant flash.I have included a page that dreamweaver has generated as it maybe also helpfull with the above problem.Im not sure how it all works so I will post it here for anyone that whats to work on it

Code:


<!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=utf-8" />
<title>Untitled Document</title>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="250" id="FlashID" title="charts">
  <param name="movie" value="flash_file.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="swfversion" value="6.0.65.0" />
  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
  <param name="expressinstall" value="Scripts/expressInstall.swf" />
  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
  <!--[if !IE]>-->
  <object type="application/x-shockwave-flash" data="flash_file.swf" width="400" height="250">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
  </object>
  <!--<![endif]-->
</object>
<script type="text/javascript">
<!--
swfobject.registerObject("FlashID");
//-->
</script>
</body>
</html>


and here is the 2 files that dreamweaver automatically inserts;
[ Only registered users can see links on this board! Get registered or login! ]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©