Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-28T18:21:15-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2753 2011-03-28T18:21:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8522#p8522 <![CDATA[Re: include embeded swf file]]>
I couldn't see what happens with the SWF in the HTML file because I keep getting the message "this page requires Flash Player version 9.0.45 or higher" although I have 10.2 installed.

When I open the SWF file all I see is the words "STAT PLANET" in red. What is it supposed to do? or is that it?

I don't know what the problem you're having is. Have you tried using a download key? WP Admin -> s2Member -> Download Options -> Advanced Download Restrictions.

Statistics: Posted by Cristián Lávaque — March 28th, 2011, 6:21 pm


]]>
2011-03-28T14:16:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8511#p8511 <![CDATA[Re: include embeded swf file]]> http://ges.akosgis.com/public/web/content.swf and here http://akosgis.com/?s2member_file_downl ... ontent.swf (user&pass: testxx0)

Statistics: Posted by akosgis — March 28th, 2011, 2:16 pm


]]>
2011-03-28T13:25:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8507#p8507 <![CDATA[Re: include embeded swf file]]>
I had not noticed those files before, was just looking for the CSV and JS ones. So you tried changing those two lines to this and it still didn't work?

Code:
      flashvars.data = "http://akosgis.com/?s2member_file_download=ges_level_0/data.csv";
      flashvars.settings = "http://akosgis.com/?s2member_file_download=ges_level_0/settings.csv";


Well, if you don't mind not having everything in the same folder, you could just have the HTML file protected by s2Member and the rest in another directory.

Statistics: Posted by Cristián Lávaque — March 28th, 2011, 1:25 pm


]]>
2011-03-28T13:06:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8505#p8505 <![CDATA[Re: include embeded swf file]]> I also experimented a bit with different directories, for exampel to go out from the restricted folder. But nothing happens. The main point seams to be that the data.csv and the setting.csv does't load. Otherwise once they was loading but when they was finished loading it stopped which is seams like the content.swf get not loaded. It looks very curious because in normaly the all remain in the same folder, so they should be accepted with the normal relativ link like "data.csv"
Greatings Frank

Statistics: Posted by akosgis — March 28th, 2011, 1:06 pm


]]>
2011-03-28T11:57:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8499#p8499 <![CDATA[Re: include embeded swf file]]> Statistics: Posted by Cristián Lávaque — March 28th, 2011, 11:57 am


]]>
2011-03-28T06:38:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8490#p8490 <![CDATA[Re: include embeded swf file]]> Is there existing any work around, like to protect a folder with s2 member which is outside of wp or a subdomain or something like this???? Because outside wp my application works fine.
You can check out the problem if you enter here: http://akosgis.com/wp-login.php with username and password: testxx0 and you can see how it is loading correct outside of wp here: http://ges.akosgis.com/public/web/statges.html (as a subdomain). Any suggestion would help me very much. Thank you

Statistics: Posted by akosgis — March 28th, 2011, 6:38 am


]]>
2011-03-27T17:08:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8471#p8471 <![CDATA[Re: include embeded swf file]]> http://akosgis.com/?s2member_file_download=ges_level_0/ before them, so they were not being served by s2Member. I hope that adding that before the file names solves your problem.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>

   <title>GES - Geo Evaluation System</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   
   <script type="text/javascript" src="http://akosgis.com/?s2member_file_download=ges_level_0/swfobject.js"></script>
   <script type="text/javascript">

      function getURLParam(strParamName){
         var strReturn = "";
         var strHref = window.location.href;
         if ( strHref.indexOf("?") > -1 ){
            var strQueryString = strHref.substr(strHref.indexOf("?"));
            var aQueryString = strQueryString.split("&");
            for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
               if ( aQueryString[iParam].indexOf(strParamName.toLowerCase() + "=") > -1 ){
                  var aParam = aQueryString[iParam].split("=");
                  strReturn = aParam[1];
                  break;
               }
            }
         }
         return unescape(strReturn);
      }

      <!-- Adobe recommends that developers use SWFObject2 for Flash Player detection. -->
      <!-- For more information see the SWFObject page at Google code (http://code.google.com/p/swfobject/). -->
      <!-- Information is also available on the Adobe Developer Connection Under "Detecting Flash Player versions and embedding SWF files with SWFObject 2" -->
      <!-- Set to minimum required Flash Player version or 0 for no version detection -->
      var swfVersionStr = "9.0.45";
      <!-- xiSwfUrlStr can be used to define an express installer SWF. -->
      var xiSwfUrlStr = "";
      var flashvars = {};
      flashvars.location = getURLParam("l");
      flashvars.data = "data.csv";
      flashvars.settings = "settings.csv";
      var params = {};
      params.quality = "high";
      params.bgcolor = "#ffffff";
      params.play = "true";
      params.loop = "true";
      params.wmode = "window";
      params.allowfullScreen ="true";                       
      params.scale = "showall";
      params.menu = "true";
      params.devicefont = "false";
      params.salign = "";
      params.allowscriptaccess = "sameDomain";
      var attributes = {};
      attributes.id = "StatPlanet";
      attributes.name = "StatPlanet";
      attributes.align = "middle";
      swfobject.createCSS("html", "height:100%; background-color: #ffffff;");
      swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");
      swfobject.embedSWF(
         "http://akosgis.com/?s2member_file_download=ges_level_0/StatPlanet.swf", "flashContent",
         "100%", "100%",
         swfVersionStr, xiSwfUrlStr,
         flashvars, params, attributes);       
       </script>
      
</head>
<body>
   <!-- SWFObject's dynamic embed method replaces this alternative HTML content for Flash content when enough JavaScript and Flash plug-in support is available. -->
   <div id="flashContent">
      <a href="http://www.adobe.com/go/getflash">
         <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
      </a>
      <p>This page requires Flash Player version 9.0.45 or higher.</p>
   </div>
</body>
</html>

Statistics: Posted by Cristián Lávaque — March 27th, 2011, 5:08 pm


]]>
2011-03-27T06:56:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8446#p8446 <![CDATA[Re: include embeded swf file]]> I quote the code with the code tag but it is also not function. it get shown in the browser only the body text and the head code get not executed. I also but in the js file the code tag but doesn't help. I copy your the html below maybe you get an other idea:

Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    
        <title>GES - Geo Evaluation System</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />    
        <script type="text/javascript" src="./swfobject.js"></script>
        <script type="text/javascript">

function getURLParam(strParamName)    {
  
                var strReturn = "";
  
                var strHref = window.location.href;
  
                if ( strHref.indexOf("?") > -1 ){
    
                    var strQueryString = strHref.substr(strHref.indexOf("?"));
    
                    var aQueryString = strQueryString.split("&");
    
                    for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
      
                        if ( aQueryString[iParam].indexOf(strParamName.toLowerCase() + "=") > -1 ){

                            var aParam = aQueryString[iParam].split("=");
        
                            strReturn = aParam[1];
        
                            break;
      
                        }
    
                    }
                    
                }
  
                return unescape(strReturn);

            }
            <!-- Adobe recommends that developers use SWFObject2 for Flash Player detection. -->
            <!-- For more information see the SWFObject page at Google code (http://code.google.com/p/swfobject/). -->
            <!-- Information is also available on the Adobe Developer Connection Under "Detecting Flash Player versions and embedding SWF files with SWFObject 2" -->
            <!-- Set to minimum required Flash Player version or 0 for no version detection -->
            var swfVersionStr = "9.0.45";
            <!-- xiSwfUrlStr can be used to define an express installer SWF. -->
            var xiSwfUrlStr = "";
            var flashvars = {};
            flashvars.location = getURLParam("l");
            flashvars.data = "data.csv";
            flashvars.settings = "settings.csv";
            var params = {};
            params.quality = "high";
            params.bgcolor = "#ffffff";
            params.play = "true";
            params.loop = "true";
            params.wmode = "window";
            params.allowfullScreen ="true";                        
            params.scale = "showall";
            params.menu = "true";
            params.devicefont = "false";
            params.salign = "";
            params.allowscriptaccess = "sameDomain";
            var attributes = {};
            attributes.id = "StatPlanet";
            attributes.name = "StatPlanet";
            attributes.align = "middle";
            swfobject.createCSS("html", "height:100%; background-color: #ffffff;");
            swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");
            swfobject.embedSWF(
                "StatPlanet.swf", "flashContent",
                "100%", "100%",
                swfVersionStr, xiSwfUrlStr,
                flashvars, params, attributes);        
             </script>
            
    </head>
    <body>
        <!-- SWFObject's dynamic embed method replaces this alternative HTML content for Flash content when enough JavaScript and Flash plug-in support is available. -->
        <div id="flashContent">
            <a href="http://www.adobe.com/go/getflash">
                <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
            </a>
            <p>This page requires Flash Player version 9.0.45 or higher.</p>
        </div>
    </body>
</html>


the swfobject.js which get loaded too, is a google script: SWFObject v2.2 <http://code.google.com/p/swfobject/>
Thanks for your further help.

Statistics: Posted by akosgis — March 27th, 2011, 6:56 am


]]>
2011-03-22T18:01:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8152#p8152 <![CDATA[Re: include embeded swf file]]>
Could you please quote the code from the HTML page where those two files are referenced? You can quote it between code tags like this: [code]The HTML code here.[/code]

Statistics: Posted by Cristián Lávaque — March 22nd, 2011, 6:01 pm


]]>
2011-03-22T17:15:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8147#p8147 <![CDATA[Re: include embeded swf file]]> Welcome to the Test Membership of Geo Evaluation System GES. Enter here for using GES
[/s2If]
with this link http://akosgis.com/?s2member_file_downl ... evel0.html
int the html file is some js code and embedded the swf files witch are into the same folder "ges_level_0/"

Statistics: Posted by akosgis — March 22nd, 2011, 5:15 pm


]]>
2011-03-22T17:07:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8146#p8146 <![CDATA[Re: include embeded swf file]]> if I take this folder out of wordpress on the same server they work fine. So i guess it has something to do with wordpress or s2members. it seams wordpress don't read the javascript or do not accept the embeded swf files.
Is there another possibility to protect those files via s2memeber?

Statistics: Posted by akosgis — March 22nd, 2011, 5:07 pm


]]>
2011-03-22T17:05:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8145#p8145 <![CDATA[Re: include embeded swf file]]>
Could you show me the URLs you're using to link to the HTML, JS and SWF files? You can remove the domain name, I'm interested in the rest.

Statistics: Posted by Cristián Lávaque — March 22nd, 2011, 5:05 pm


]]>
2011-03-22T16:55:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8141#p8141 <![CDATA[Re: include embeded swf file]]> Statistics: Posted by akosgis — March 22nd, 2011, 4:55 pm


]]>
2011-03-22T11:52:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8097#p8097 <![CDATA[Re: include embeded swf file]]>
If they are protected, the URL to them has to be served by s2Member the same way the HTML file one is.

Statistics: Posted by Cristián Lávaque — March 22nd, 2011, 11:52 am


]]>
2011-03-22T05:18:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8085#p8085 <![CDATA[Re: include embeded swf file]]> Statistics: Posted by akosgis — March 22nd, 2011, 5:18 am


]]>
2011-03-21T23:17:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8078#p8078 <![CDATA[Re: include embeded swf file]]>
Are the addresses to those files relative to your HTML file? If so, are they correct?

Statistics: Posted by Cristián Lávaque — March 21st, 2011, 11:17 pm


]]>
2011-03-21T17:35:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2753&p=8074#p8074 <![CDATA[include embeded swf file]]> I just managed to restrict my html file via "s2Member File Download Options" and inline file extensions. So far it is function but I have a html file with some js code and embeded a swf file. And this seams a big problem because it seams that the js code get not read in wordpress.
What can i do??? There is any posibillity to make it run??
Thanks for your help
Frank

Statistics: Posted by akosgis — March 21st, 2011, 5:35 pm


]]>