Jump to content

ARV187

Members
  • Posts

    260
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by ARV187

  1. In my server can play flash: a default html page from template package: http://sparkadsl.0lx...ash_slider.html , youtube & vimeo videos. http://sparkadsl.0lx...tribAyrton.html

    My file directory contain: /htdocs/phpvms/lib/skins/templatemo_254_agency/js/swfobject.js

    http://sparkadsl.0lx..._254_agency/js/

    P.D: too i uploaded it here http://sparkadsl.0lx.net/phpvms/lib/js/swfobject.js

    And this contain this :

    /* SWFObject v2.2 <http://code.google.com/p/swfobject/>
    is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
    */
    var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[s]==r){ab=t.plugins[s].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[u.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[i.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(}}a=false}}}}();
    

    I go try in principal directory and i say you, may be that the fail....

  2. I have a problem with frontpage, swf not work. You can see the test page here: http://sparkadsl.0lx.net/phpvms/

    I dont have idea about this question, I would appreciate someone help me please.

    Frontpage_main.tpl

    <!--mi codigo script swfobject empieza aqui-->
    <script type="text/javascript" src="js/swfobject.js"></script>
    <script type="text/javascript">
    var flashvars = {};
    flashvars.xml_file = "photo_list.xml";
    var params = {};
    params.wmode = "transparent";
    var attributes = {};
    attributes.id = "slider";
    swfobject.embedSWF("sparkadsl.0lx.net/phpvms/lib/skins/templatemo_254_agency/flash_slider.swf", "flash_grid_slider", "930", "250", "9.0.0", false, flashvars, params, attributes);
    </script>
     <body>
    <div id="templatemo_banner_wrapper">
    <div id="templatemo_banner">
    
    	 <div id="flash_grid_slider">
    		 <a href="http://www.flashmo.com/preview/flashmo_224_grid_slider" target="_blank">
    			 Flash XML Grid Slider
    		 </a>
    		 <br /><br />
    		 <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" />
    		 </a>
    </div>
    
    </div>
    </div>
    <!--mi codigo script swfobject termina aqui-->
    <div id="mainbox">
    
    continue.........
    

  3. I finish it! but i have trouble with slider flash images. I need help, but i go to open other post to see if this way anyone can help me.

    To clear somethings to newbies:

    Im not a expert, i learn since cero.

    You have two files in front page (index.html), the index.html is in blank, because in that page the phpvms show this two files: layout tpl & frontpage_main.tpl

    Layout.tpl show header and footer in all pages, is this: top banner or company logo, menus, & credits at final of page.

    frontpage_main.tpl modify the content of frontpage (index.html page) this is news, recent pilots pireps, recent new pilots, and other that you want put in.

    And by last you have the xxxxxxxxxx_style.css this put the form, color, and position of all web site. Have the <id> tag names and your especifications. you can add a <id> tag with properties, and after link it with a <id> tag in your frontmain_page.tpl or other template.

    For example

    <id= "live_table">

    </id>

    In xxxxxxxxxxx_styles.css:

    #live_table

    I recommend "firebug" to learn in live about styles.css and a editor web with grafical interface & code in same site to see the changes.

  4. This code is right? not work to me.

    <div id="mainbox">
    <?php
     // Show the News module, call the function ShowNewsFront
     //	 This is in the modules/Frontpage folder
    MainController::Run('News', 'ShowNewsFront', 5);
    
    ?>
    <script type="text/javascript" src="js/swfobject.js"></script>
    		 <script type="text/javascript">
    				 var flashvars = {};
    				 flashvars.xml_file = "photo_list.xml";
    				 var params = {};
    				 params.wmode = "transparent";
    				 var attributes = {};
    				 attributes.id = "slider";
    				 swfobject.embedSWF("flash_slider.swf", "flash_grid_slider", "930", "250", "9.0.0", false, flashvars, params, attributes);
    		 </script>
    		 <body>
    <div id="templatemo_banner_wrapper">
     <div id="templatemo_banner">
    
    				 <div id="flash_grid_slider">
    						 <a href="http://www.flashmo.com/preview/flashmo_224_grid_slider" target="_blank">
    								 Flash XML Grid Slider
    						 </a>
    						 <br /><br />
    						 <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" />
    						 </a>
    				 </div>
    
     </div>
    </div>
    </body>
    </div>
    <div id="sidebar">
    

  5. Slider flash not work,Definitely i dont know where put it.

    layout.tpl

    <?php
    /**
    *
    * STOP!!!!!!!!
    *
    * Are you editing the crystal skin directly?
    * DON'T
    *
    * Copy and rename the crystal folder. Otherwise it'll get
    * overwritten in an update.
    *
    * Also, READ THE DOCS
    *
    *   http://www.phpvms.net/docs/skinning
    *
    */
    ?><!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" dir="ltr">
    <head>
    <meta http-equiv="X-UA-Compatible" content="IE=7">
    <title><?php echo $page_title; ?></title>
    
    <link rel="stylesheet" media="all" type="text/css" href="<?php echo SITE_URL?>/lib/skins/templatemo_254_agency/templatemo_style.css" />
    
    <?php
    /* This is required, so phpVMS can output the necessary libraries it needs */
    echo $page_htmlhead;
    ?>
    
    <?php /*Any custom Javascript should be placed below this line, after the above call */ ?>
    </head>
    <body>
    <?php
    echo $page_htmlreq;
    ?>
    
    <div id="body">
    <div id="templatemo_header_wrapper">
       <div id="templatemo_header">
           <div id="site_title">
    
    	    <h1><img src="http://sparkadsl.0lx.net/phpvms/lib/skins/templatemo_254_agency/images/topbanner.jpg" alt="Argavirtual" /><span></span></h1>
    
        </div> <!-- end of site_title -->  
        <div id="templatemo_banner_wrapper">
       <div id="templatemo_banner">
    
            </div>
    </div>
    <div id="topLogin">
           <?php
           /*
           Quick example of how to see if they're logged in or not
           Only show this login form if they're logged in */
           if(Auth::LoggedIn() == false)
           { ?>
               <form name="loginform" action="<?php echo url('/login'); ?>" method="post">
                   Sign-in with your pilot id or email, or <a href="<?php echo url('/registration'); ?>">register</a><br />
               <input type="text" name="email" value="" onclick="this.value=''" />
               <input type="password" name="password" value="" />
               <input type="hidden" name="remember" value="on" />
               <input type="hidden" name="redir" value="index.php/profile" />
               <input type="hidden" name="action" value="login" />
               <input type="submit" name="submit" value="Log In" />
               </form>
               <?php
           }    
           /* End the Auth::LoggedIn() if */
           else /* else - they're logged in, so show some info about the pilot, and a few links */
           {
    
           /*    Auth::$userinfo has the information about the user currently logged in
               We will use this next line - this gets their full pilot id, formatted properly */
           $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
           ?>
    
           <img align="left" height="50px" width="50px" style="margin-right: 10px;"
               src="<?php echo PilotData::getPilotAvatar($pilotid);?>" />
    
           <strong>Pilot ID: </strong> <?php echo $pilotid ; ?>
           <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br />
           <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?>
           <br />
           <a href="<?php echo url('/pireps/new');?>">File a New PIREP</a> |
           <a href="<?php echo url('/schedules/bids');?>">View My Bids</a> |
           <a href="<?php echo url('/profile/');?>">View Pilot Center</a>
           <?php
           } /* End the else */
           ?>
           </div>
       <div id="templatemo_menu">
    
       <ul>
           <?php
               /*    You can modify this template into a table or something, by default
                   it's list elements inside of a UL. Here's a link with some info:
    
                   http://articles.sitepoint.com/article/css-anthology-tips-tricks-4/2
                */
               Template::Show('core_navigation.tpl');
               ?>
           </ul>
       </div>
    
       <div id="bodytext">
    
       <?php
       /*    This will insert all of the "meat" of the page in there - the template
           which is generated, depending on which page you're on. To change these
           templates, check out the docs on the site. They're under the /core/templates
           folder, and to change them, copy them into the folder of your skin (the
           folder this file is in right now.
        */
    
       echo $page_content;
    
       ?>
    
       </div>
       </div>
       <div id="footer">
       <p>Copyright © 2007 - <?php echo date('Y') ?> - <?php echo SITE_NAME; ?><!-- Please retain this!! It's part of the phpVMS license. You must display a
               "powered by phpVMS" somewhere on your page. Thanks! -->
       <a href="http://www.phpvms.net" target="_blank">powered by phpVMS</a>    </p>
       <p>Copyright © 2013 <a href="http://argavirtual.weebly.com/">Argavirtual</a> |
       Designed by <a href="https://sites.google.com/site/fsxworldspain/" target="_parent">ARV187</a> |
       With <a href="http://www.templatemo.com/page/1">CSS Templates</a></p>
       </div>    
    </div>
    </body>
    </html>
    

    frontpage_main.tpl

    <div id="mainbox">
    <?php
    
       // Show the News module, call the function ShowNewsFront
       //    This is in the modules/Frontpage folder
    MainController::Run('News', 'ShowNewsFront', 5);
    
    
    ?>
    <script type="text/javascript" src="js/swfobject.js"></script>
           <script type="text/javascript">
               var flashvars = {};
               flashvars.xml_file = "photo_list.xml";
               var params = {};
               params.wmode = "transparent";
               var attributes = {};
               attributes.id = "slider";
               swfobject.embedSWF("flash_slider.swf", "flash_grid_slider", "930", "250", "9.0.0", false, flashvars, params, attributes);
           </script>
        <body>
    <div id="templatemo_banner_wrapper">
       <div id="templatemo_banner">
    
            <div id="flash_grid_slider">
    	        <a href="http://www.flashmo.com/preview/flashmo_224_grid_slider" target="_blank">
    		        Flash XML Grid Slider
    		    </a>
    		    <br /><br />
    		    <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" />
    		    </a>
               </div>
    
       </div>
    </div>
    </body>
    </div>
    <div id="sidebar">
       <!--mi codigo va-central empieza aqui-->
    <H3>Ranking VaCentral</h3>
    <Strong><font color="#FF6734" size="3">
    <?php
    $cws = new CodonWebService();
    $xml = $cws->get('http://www.vacentral.net/airline/xml/arv_argavirtual');
    $xml = simplexml_load_string($xml);
    echo "Estamos en el puesto nº: {$xml->rank}";
    ?></strong></font>
    <a href="http://www.vacentral.net/airline/arv_argavirtual" target="_blank"><img src="http://sparkadsl.0lx.net/phpvms/lib/images/VaCentral.JPG" width="125" height="40" /></a>
       <!--mi codigo va-central termina aqui-->
    
       <h3>Informes recientes</h3>
    
       <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?>
    
       <h3>Nuevos pilotos</h3>
    
       <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?>
    
       <h3>Usuarios Online</h3>
       <p><i>Han sido <?php echo count($usersonline)?> usuario(s), y <?php echo count($guestsonline);?> invitado(s) online en los ultimos <?php echo Config::Get('USERS_ONLINE_TIME')?> minutos.</i></p>
    
       <?php
       /* $usersonline also has the list of users -
           really simple example
    
           Or if you're not on the frontpage:
           $usersonline = StatsData::UsersOnline();
    
    
       foreach($usersonline as $pilot)    
       {
           echo "{$pilot->firstname} {$pilot->lastname}<br />";
       }
       */
       ?>
    
    </div>

  6. I have a problem, in dreamweaver the slider work, but not in web page, in adition the page is in line, main menu, not lateral panel of last pireps, etc. I only modified layout.tpl

    ¿Any idea?

    In dreamweaver:

    conslider.jpg

    In web page:

    nosliderytodoenlinea.jpg

    P.D: Im changin relatives urls by absolutes. but the linear menus... i dont know the cause of that.

  7. I find a simple code in this forum to live traffic table, and where add gif images, but i still need help to customice the phpvms.

    I have read that files to edit are layout.tpl & frontpage_main.tpl, want apply this template: http://www.templatemo.com/preview/templatemo_254_agency

    But i dont know what steps i have to follow.

    Im editing index.html of template following the default phpvms layout.tpl, and after i will renamed it how layout.tpl, but i dont know if is rigth, or how hell make it. I want make it by my self, and i dont want pay to others, i want learn, only need help with steps to follow.

    Thanks again & regards

  8. 27 views and not answers? i have much post with not answers, only parkho answer me to one, im sad... If is by my bad english im sorry.

    I have the table ready, but i want make a principal page, with table, image slider, etc, etc, but i dont know yet which file i should edit.

    And i have a trouble, my server is banned by google adsenses, so i dont kwon if i can make a principal page in a adsense compatible site and that live table work in a diferent site of installation or how make that.

  9. Hi, normally we have this errors in log file, how i can fix it?

    thanks!

    =====
    Time: 03.20.13 04:58:22
    =====
    Time: 03.20.13 04:58:22
    Backtrace: DB::write_debug > DB::query > PilotData::updateProfile > Auth::ProcessLogin > Login->ProcessLogin > Login->login > Login->index > call_user_func_array > MainController::RunAllActions
    Query: UPDATE phpvms_pilots SET `lastlogin`=NOW(), `lastip`='83.53.112.115' WHERE `pilotid`=
    Error: (1064) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 11:25:28
    =====
    Time: 03.20.13 11:25:28
    Backtrace: DB::write_debug > DB::query > PilotData::updateProfile > Auth::ProcessLogin > Login->ProcessLogin > Login->login > Login->index > call_user_func_array > MainController::RunAllActions
    Query: UPDATE phpvms_pilots SET `lastlogin`=NOW(), `lastip`='83.32.189.60' WHERE `pilotid`=
    Error: (1064) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 11:28:28
    =====
    Time: 03.20.13 11:28:28
    Backtrace: DB::write_debug > DB::query > PilotData::updateProfile > Auth::ProcessLogin > Login->ProcessLogin > Login->login > Login->index > call_user_func_array > MainController::RunAllActions
    Query: UPDATE phpvms_pilots SET `lastlogin`=NOW(), `lastip`='95.20.213.42' WHERE `pilotid`=
    Error: (1064) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 13:08:39
    =====
    Time: 03.20.13 13:08:39
    Backtrace: DB::write_debug > DB::query > PilotData::updateProfile > Auth::ProcessLogin > Login->ProcessLogin > Login->login > Login->index > call_user_func_array > MainController::RunAllActions
    Query: UPDATE phpvms_pilots SET `lastlogin`=NOW(), `lastip`='95.20.213.42' WHERE `pilotid`=
    Error: (1064) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 13:23:51
    =====
    Time: 03.20.13 13:23:51
    Backtrace: DB::write_debug > DB::query > PilotData::updateProfile > Auth::ProcessLogin > Login->ProcessLogin > Login->login > Login->index > call_user_func_array > MainController::RunAllActions
    Query: UPDATE phpvms_pilots SET `lastlogin`=NOW(), `lastip`='87.221.212.64' WHERE `pilotid`=
    Error: (1064) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 13:34:09
    =====
    Time: 03.20.13 13:34:09
    Backtrace: DB::write_debug > DB::get_results > PIREPData::findPIREPS > PIREPData::getReportsByExportStatus > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT p.*, UNIX_TIMESTAMP(p.submitdate) as submitdate, u.pilotid, u.firstname, u.lastname, u.email, u.rank, a.id AS aircraftid, a.name as aircraft, a.registration, dep.name as depname, dep.lat AS deplat, dep.lng AS deplng, arr.name as arrname, arr.lat AS arrlat, arr.lng AS arrlng FROM phpvms_pireps p LEFT JOIN phpvms_aircraft a ON a.id = p.aircraft LEFT JOIN phpvms_airports AS dep ON dep.icao = p.depicao LEFT JOIN phpvms_airports AS arr ON arr.icao = p.arricao LEFT JOIN phpvms_pilots u ON u.pilotid = p.pilotid WHERE p.exported = '0' ORDER BY p.submitdate DESC
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 13:34:09
    =====
    Time: 03.20.13 13:34:09
    Backtrace: DB::write_debug > DB::get_results > StatsData::UsersOnline > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT p.* FROM phpvms_pilots p, phpvms_sessions s WHERE s.pilotid = p.pilotid AND DATE_SUB(NOW(), INTERVAL 20 MINUTE) <= s.`logintime`
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 13:34:09
    =====
    Time: 03.20.13 13:34:09
    Backtrace: DB::write_debug > DB::get_results > StatsData::GuestsOnline > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT s.* FROM phpvms_sessions s WHERE s.pilotid = 0 AND DATE_SUB(NOW(), INTERVAL 20 MINUTE) <= s.`logintime`
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 13:34:09
    =====
    Time: 03.20.13 13:34:09
    Backtrace: DB::write_debug > DB::get_row > SettingsData::getSettingValue > StatsData::TotalHours > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT value FROM phpvms_settings WHERE name='TOTAL_HOURS'
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 16:21:32
    =====
    Time: 03.20.13 16:21:32
    Backtrace: DB::write_debug > DB::query > PilotData::updateProfile > Auth::ProcessLogin > Login->ProcessLogin > Login->login > Login->index > call_user_func_array > MainController::RunAllActions
    Query: UPDATE phpvms_pilots SET `lastlogin`=NOW(), `lastip`='95.20.213.42' WHERE `pilotid`=
    Error: (1064) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:16:29
    =====
    Time: 03.20.13 17:16:29
    Backtrace: DB::write_debug > DB::get_results > PIREPData::findPIREPS > PIREPData::getReportsByExportStatus > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT p.*, UNIX_TIMESTAMP(p.submitdate) as submitdate, u.pilotid, u.firstname, u.lastname, u.email, u.rank, a.id AS aircraftid, a.name as aircraft, a.registration, dep.name as depname, dep.lat AS deplat, dep.lng AS deplng, arr.name as arrname, arr.lat AS arrlat, arr.lng AS arrlng FROM phpvms_pireps p LEFT JOIN phpvms_aircraft a ON a.id = p.aircraft LEFT JOIN phpvms_airports AS dep ON dep.icao = p.depicao LEFT JOIN phpvms_airports AS arr ON arr.icao = p.arricao LEFT JOIN phpvms_pilots u ON u.pilotid = p.pilotid WHERE p.exported = '0' ORDER BY p.submitdate DESC
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:16:29
    =====
    Time: 03.20.13 17:16:29
    Backtrace: DB::write_debug > DB::get_results > StatsData::PilotCount > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT COUNT(*) as `total` FROM phpvms_pilots
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:16:29
    =====
    Time: 03.20.13 17:16:29
    Backtrace: DB::write_debug > DB::get_row > StatsData::TotalFlights > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT COUNT(*) AS `total` FROM `phpvms_pireps` WHERE `accepted`=1
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:16:29
    =====
    Time: 03.20.13 17:16:29
    Backtrace: DB::write_debug > DB::get_row > SettingsData::getSettingValue > StatsData::TotalHours > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT value FROM phpvms_settings WHERE name='TOTAL_HOURS'
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:16:29
    =====
    Time: 03.20.13 17:16:29
    Backtrace: DB::write_debug > DB::get_results > StatsData::TotalMilesFlown > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT SUM(`distance`) AS `total` FROM phpvms_pireps WHERE accepted = '1'
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:16:29
    =====
    Time: 03.20.13 17:16:29
    Backtrace: DB::write_debug > DB::get_results > StatsData::TotalSchedules > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT COUNT(`id`) as `total` FROM phpvms_schedules
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:16:29
    =====
    Time: 03.20.13 17:16:29
    Backtrace: DB::write_debug > DB::get_results > StatsData::TotalFlightsToday > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT COUNT(*) AS `total` FROM phpvms_pireps WHERE DATE(`submitdate`) = CURDATE()
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:23:03
    =====
    Time: 03.20.13 17:23:03
    Backtrace: DB::write_debug > DB::get_results > PIREPData::findPIREPS > PIREPData::getReportsByExportStatus > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT p.*, UNIX_TIMESTAMP(p.submitdate) as submitdate, u.pilotid, u.firstname, u.lastname, u.email, u.rank, a.id AS aircraftid, a.name as aircraft, a.registration, dep.name as depname, dep.lat AS deplat, dep.lng AS deplng, arr.name as arrname, arr.lat AS arrlat, arr.lng AS arrlng FROM phpvms_pireps p LEFT JOIN phpvms_aircraft a ON a.id = p.aircraft LEFT JOIN phpvms_airports AS dep ON dep.icao = p.depicao LEFT JOIN phpvms_airports AS arr ON arr.icao = p.arricao LEFT JOIN phpvms_pilots u ON u.pilotid = p.pilotid WHERE p.exported = '0' ORDER BY p.submitdate DESC
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:23:03
    =====
    Time: 03.20.13 17:23:03
    Backtrace: DB::write_debug > DB::get_row > SettingsData::getSettingValue > StatsData::TotalHours > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT value FROM phpvms_settings WHERE name='TOTAL_HOURS'
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:24:19
    =====
    Time: 03.20.13 17:24:19
    Backtrace: DB::write_debug > DB::get_results > PIREPData::findPIREPS > PIREPData::getReportsByExportStatus > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT p.*, UNIX_TIMESTAMP(p.submitdate) as submitdate, u.pilotid, u.firstname, u.lastname, u.email, u.rank, a.id AS aircraftid, a.name as aircraft, a.registration, dep.name as depname, dep.lat AS deplat, dep.lng AS deplng, arr.name as arrname, arr.lat AS arrlat, arr.lng AS arrlng FROM phpvms_pireps p LEFT JOIN phpvms_aircraft a ON a.id = p.aircraft LEFT JOIN phpvms_airports AS dep ON dep.icao = p.depicao LEFT JOIN phpvms_airports AS arr ON arr.icao = p.arricao LEFT JOIN phpvms_pilots u ON u.pilotid = p.pilotid WHERE p.exported = '0' ORDER BY p.submitdate DESC
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:24:19
    =====
    Time: 03.20.13 17:24:19
    Backtrace: DB::write_debug > DB::get_row > SettingsData::getSettingValue > StatsData::TotalHours > include > TemplateSet->getTemplate > TemplateSet->showTemplate > Template::show > CodonModule->render > Dashboard->index > call_user_func_array > MainController::RunAllActions
    Query: SELECT value FROM phpvms_settings WHERE name='TOTAL_HOURS'
    Error: (2006) - MySQL server has gone away
    =====
    
    
    =====
    
    =====
    Time: 03.20.13 17:24:47
    =====
    Time: 03.20.13 17:24:47
    Backtrace: DB::write_debug > DB::query > PilotData::updateProfile > Auth::ProcessLogin > Login->ProcessLogin > Login->login > Login->index > call_user_func_array > MainController::RunAllActions
    Query: UPDATE phpvms_pilots SET `lastlogin`=NOW(), `lastip`='187.135.47.79' WHERE `pilotid`=
    Error: (1064) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    =====
    
    
    =====

  10. Here is how it works my way:

    1. Create a class file like GetSchedules.class.php and paste the following in there and save it. Then upload into your core/common folder:

    <?php
    class GetSchedules extends CodonData
    {
     publicfunction getscheds()
    	 {
    $sql = SELECT * FROM phpvms_schedules ORDER BY arrtime + 0 ASC";
    return DB::get_results($sql);
    	 }
    }
    ?>
    

    2. Use a table where you want to show the pulled out data like this:

    <?php
    $list = GetSchedules::getscheds();
    ?>
    Upcoming Arrivals - Current Time is <?php echo date('G:i') ;?></h3>
    <table width="100%" border="1">
    <tr>
    <td>Departure</td>
    <td>Arrival</td>
    <td>Arrival Time</td>
    <td>Aircraft</td>
    <td>Status</td>
    </tr>
    
    <?php
    $count = 0;
    foreach($list as $flight)
    {
    if(($flight->arrtime + 0) > date('G:i'))
    {
    if($count < 5)
     {
    $aircraft = OperationsData::getAircraftInfo($flight->aircraft);
    ?>
     <tr>
    	 <td><?php echo $flight->depicao ;?></td>
    	 <td><?php echo $flight->arricao ;?></td>
    	 <td><?php echo $flight->arrtime ;?></td>
    	 <td><?php echo $aircraft->fullname ;?></td>
     </tr>
     <tr>
    	 <td>
    	 <?php
    	 if(($flight->arrtime - date('G:i')) <= 1)
    	 {
    		 echo 'Arriving Soon';
    	 }
    	 else
    	 {
    		 echo 'In Flight';
    	 }
    	 $count++;
    	 ?>
    	 </td>
     </tr>
     }
    }
    }
    </table>
    

    Hi Parkho, I did that, created with notepad of windows with the first code, and after rename it as "GetSchedules.class.php" (extension included), after i uploaded to core/common folder via ftp.

    The table was created in admin options "Add new page". i think i did something wrong. this is the result:

    http://www.argavirtual.xtrweb.com/pruebas/index.php/pages/schedules2

  11. Hi, i updated the phpvms to phpvms_extended (sqli i think and more options), https://github.com/D...ab=repositories i follow the steps :

    There is an easier way around all that...

    First: open your core/app.config.php

    Second: find this...

    # Pilot pilots to only fly aircraft they're ranked to
    Config::Set('RESTRICT_AIRCRAFT_RANKS', false);

    Make this true.

    Third: copy and paste that code in your core/local.config.php file so it doesn't get overwritten during any updates to phpVMS.

    Fourth: change all your aircraft to the rank you want each of them to be flown by. Now when a member searches for a flight, only those routes that have the aircraft they are ranked for will show up in the results page.

    Note: All aircraft at and below their rank will show, not the ones that they aren't ranked for.

    But not work, a "student" or "new hired" pilot can see all routes, inclusive the routes (schedules) of commander rank.

    Regards.

    Please, i only did two questions in this forum (this is the third) nobody answer my questions.

  12. Hi, i dont understand the install instrucctions, Can someone help me please?

    I make a .txt, paste the code and after change de .txt extension by .php extension, after i copy the code in a new page, in phpvms, and up the file .php that i did in hosting, but i have a error.

    http://www.argavirtual.xtrweb.com/core/modules/Schedules/Schedules%20board.php

    Fatal error: Class 'DB' not found in /home/u131375289/public_html/core/modules/Schedules/Schedules board.php on line 3

    <?php
    $query = "SELECT * FROM phpvms_schedules ORDER BY arrtime + 0 ASC";
    $list = DB::get_results($query);
    echo '<h3>Upcoming Arrivals - Current Time is '.date('G:i').'</h3>';
    echo '<table width="100%" border="1">';
    echo '<tr><td>Departure</td><td>Arrival</td><td>Arrival Time</td><td>Aircraft</td><td>Status</td></tr>';
    $count = 0;
    foreach($list as $flight)
    {
        if(($flight->arrtime + 0) > date('G:i'))
        {
    		    if($count < 5)
    		    {
    				    $aircraft = OperationsData::getAircraftInfo($flight->aircraft);
    				    echo '<tr><td>'.$flight->depicao.'</td><td>'.$flight->arricao.'</td><td>'.$flight->arrtime.'</td><td>'.$aircraft->fullname.'</td>';
    				    echo '<td>';
    				    if(($flight->arrtime - date('G:i')) <= 1)
    				    {
    						    echo 'Arriving Soon';
    				    }
    				    else
    				    {
    						    echo 'In Flight';
    				    }
    				    echo '</td></tr>';
    				    $count++;
    		    }
        }
    }
    echo '</table>';
    ?>
    
  13. Hi, i updated the phpvms to phpvms_extended (sqli i think and more options), https://github.com/DavidJClark?tab=repositories i follow the steps :

    There is an easier way around all that...

    First: open your core/app.config.php

    Second: find this...

    # Pilot pilots to only fly aircraft they're ranked to
    Config::Set('RESTRICT_AIRCRAFT_RANKS', false);

    Make this true.

    Third: copy and paste that code in your core/local.config.php file so it doesn't get overwritten during any updates to phpVMS.

    Fourth: change all your aircraft to the rank you want each of them to be flown by. Now when a member searches for a flight, only those routes that have the aircraft they are ranked for will show up in the results page.

    Note: All aircraft at and below their rank will show, not the ones that they aren't ranked for.

    But not work, a "student" or "new hired" pilot can see all routes, inclusive the routes (schedules) of commander rank.

    Regards.

×
×
  • Create New...