Jump to content

ARV187

Members
  • Posts

    260
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by ARV187

  1. the path is wrong. it gives a not found error ;)

    http://argavirtual.com/public_html/cookies_permisos/cookiescrittext.js
    

    it surely should be without public_html

    Patch in host its right, its default folder to upload content, to any others things work ever without /public_html/, if you see the code in spoiler you can see the patch to work without /public_html/. Not its the fail unfortunately. :(

  2. Now cookie control not work.

    I did this:

    1. Create a file .js named "cookiescrittext.js" in /public_html/cookies_permisos/cookiescrittext.js with the code.

    2. Insert this line in layout.tpl in /public_html/lib/skins/myskin/

    <?php /*Any custom Javascript should be placed below this line, after the above call */ ?>
    </head>
    <body>
    <?php
    echo $page_htmlreq;
    ?>
    <script src="/cookies_permisos/cookiescrittext.js" type="text/javascript"></script>
    

    This are the instruction for cookie control, they provide 1 code to insert in page and 1 js script (cookieControl-6.2.min.js):

    Step 1

    Cookie Control uses jQuery. You don't need to have this installed on your site already - the script will check for this. If you DO have it installed, please just check that you have jQuery version 1.4.4 or later: Cookie Control is not compatible with earlier versions of jQuery.

    Step 2

    Download the Cookie Control script here (cookieControl-6.2.min.js)

    Upload it to your site.

    Step 3

    Copy the code (left) and update the path to the location where you've placed the Cookie Control Script.

    You may wish to create an include, embed it directly in your pages, or add it to an existing "footer" include for your site. It's entirely up to you.

    Either way, the code needs to be within the <body> tag of your page.

    The code (this is code that you said me to put in a file .js):

    <script src="/cookies_permisos/cookieControl-6.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">//<![CDATA[
    	 cookieControl({
    			 t: {
    					 title: '<ul><li>Este sitio usa cookies para guardar información en tu ordenador.</li><li>This site uses cookies to store information on your computer.</li></ul>',
    					 intro: '<ul><li>Algunas de estás cookies son esenciales para hacer funcionar correctamente nuestro sitio y nos ayuda a mejorarlo dandonos información de como se usa el sitio. Por favor lee este apartado:<span class="ccc-settings"> <a href="http://argavirtual.com/cookies_permisos/mas-informacion.html" target="_blank">Más información (Español).</a> <p>Al Usar nuestro sitio tu aceptas los terminos de nuestra <a href="http://argavirtual.com/cookies_permisos/politica.html" target="_blank"> Política de privacidad</a>.</span></li><p><li>Some of these cookies are essential to make our site work and others help us to improve by giving us some insight into how the site is being used. <br /><p>These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking some simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of this site. If you\'re not happy with this, we won\'t set these cookies but some nice features on the site may be unavailable.</p>To control third party cookies, you can also <span class="ccc-settings">adjust <a href="http://www.allaboutcookies.org/manage-cookies/" target="_blank">your browser settings.</a> <P><p>By using our site you accept the terms of our <a href="http://argavirtual.com/cookies_permisos/politica.html">Privacy Policy</a>.</p></span></li></ul>',
    					 full:'<p><span class="ccc-settings"> </span></p><p>.</p>'
    			 },
    			 position:CookieControl.POS_LEFT,
    			 style:CookieControl.STYLE_TRIANGLE,
    			 theme:CookieControl.THEME_LIGHT, // light or dark
    			 startOpen:true,
    			 autoHide:60000,
    			 subdomains:true,
    			 protectedCookies: [], // list the cookies you do not want deleted, for example ['analytics', 'twitter']
    			 apiKey: '7a2f596d80da6ca9f001262f0aaded3f31e3c253',
    			 product: CookieControl.PROD_FREE,
    			 consentModel: CookieControl.MODEL_EXPLICIT,
    			 onAccept:function(){ccAddAnalytics()},
    			 onReady:function(){},
    			 onCookiesAllowed:function(){ccAddAnalytics()},
    			 onCookiesNotAllowed:function(){}
    			 });
    function ccAddAnalytics() {
    			 jQuery.getScript("http://www.google-analytics.com/ga.js", function() {
    					 var GATracker = _gat._createTracker('UA-xxxxxxxxxx');
    					 GATracker._trackPageview();
    			 });
    			 }
    	 //]]>
    </script>
    

    Step 4

    Apply Cookie Control events to your cookie-dropping scripts. This will ensure that they won't drop cookies unless a user has opted in.

    Step 5

    Review our deployment and updates pages as they contain useful tips and news on using Cookie Control.

    View the full documentation for Cookie Control 6.

    Any idea? :(

  3. Please read again what he said to you.

    Then, layout.tpl call to google.js for example, and google.js code call to cookieControl-6.2.min.js, its a long patch...

    With this code can I link it changing the patch to google.js?

    <script src="/cookies_permisos/cookieControl-6.2.min.js" type="text/javascript"></script>

    a little part content in cookieControl-6.2.min.js,

    cookieControl version 6.2 (2014-06-25, R263, gerasimos)

    // Copyright © 2014 Civic UK (http://www.civicuk.com/cookie-law/)

    if(!Array.prototype.indexOf){Array.prototype.indexOf=function(e,f){for(var b=(f||0),a=this.length;b*{position:relative!important;display:inline-block;float:left}.ccc-bar .ccc-hdr h2{color:#f0942b;display:inline;padding-left:5px}.ccc-bar #ccc-hdricon{background-position:-313px 8px}.ccc-bar .ccc-hdr span.ccc-title{display:inline;padding:11px 9px 8px 9px;font-size:14px}.ccc-bar.ccc-dark .ccc-title{color:#888}.ccc-bar .ccc-c{overflow:hidden;position:fixed;top:50px;right:0;width:337px}.ccc-bar .ccc-ci{display:block;visibility:hidden;position:relative;top:0;right:0;background:#fff;border:solid 1px #888;border-style:none none solid solid;overflow:hidden;width:263px;margin:0 0 7px auto!important;padding:12px 33px;box-shadow:12px -12px 10px 10px #000}.ccc-bar.ccc-dark .ccc-ci{background:#363636;border-color:#000;color:#fff}.ccc-bar.ccc-bottom .ccc-c{top:auto;bottom:50px}.ccc-bar.ccc-bottom .ccc-ci{border-style:solid none none solid;margin:7px 0 0 auto!important;box-shadow:12px 12px 10px 10px #000;padding-top:25px}.ccc-bar #ccc-icon{display:none!important}.ccc-bar .ccc-expand{display:none}#cccwr.ccc-bar .ccc-close{margin-top:-8px;float:right!important;background:#90c944;width:auto;height:auto;text-indent:0;color:white;font-size:13px;line-height:13px;margin-left:20px;margin-right:20px;padding:11px 26px;border-radius:4px;-moz-border-radius:4px;-o-border-radius:4px;-webkit-border-radius:4px}#cccwr.ccc-bar .ccc-bt.ccc-fine{display:none}#cccwr.ccc-bar .ccc-close:hover{box-shadow:inset 1px 1px 5px 1px rgba(0,0,0,0.25);background:#3e3e3e;color:#f0942b}#cccwr.ccc-bar.ccc-dark .ccc-close:hover{box-shadow:inset 1px 1px 7px 0 rgba(0,0,0,0.25);background:#ddd;color:#000}@media only screen and (max-width:768px), and (max-device-width:768px){html #cccwr.ccc-bar .ccc-close{position:absolute!important;top:8px;right:1%;margin:0;width:30%;padding:11px 2.5%;text-align:center}html #cccwr.ccc-bar #ccc-ias{position:absolute!important;top:10px;right:37%;text-indent:-9999px;padding:0;width:32px;height:32px;background-image:url('//apikeys.civiccomputing.com/p/cc/6.2/ccc-icons.png');background-position:-400px 0}html .ccc-open #cccwr.ccc-bar #ccc-ias{background-image:url('//apikeys.civiccomputing.com/p/cc/6.2/ccc-icons.png');background-position:-400px -32px}html #cccwr.ccc-bar .ccc-title{display:none}div#cccwr div.ccc-c{overflow-y:scroll;height:210px;overflow-x:hidden}}@media only screen and (max-width:360px), and (max-device-width:360px){.ccc-bar div#cccw div.ccc-c{overflow-y:scroll;height:auto;max-height:400px;overflow-x:hidden}",html:' ....

  4. Not work, i put the code in this position:

    <?php /*Any custom Javascript should be placed below this line, after the above call */ ?>
    </head>
    <body>
    <?php
    echo $page_htmlreq;
    ?>
    <script src="/cookies_permisos/cookieControl-6.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">//<![CDATA[
     cookieControl({
    .........................................
    

    Page afected:

    /schedules/view

    Without code work fine:

    post-5667-0-92526900-1411123599_thumb.jpg

    With code its showed bad and show "No route passed"

    post-5667-0-33681500-1411123698_thumb.jpg

  5. Hi, in our website we are using google analytics, then recently we installed a cookie control script with this code:

    <script src="/cookies_permisos/cookieControl-6.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">//<![CDATA[
     cookieControl({
    	 t: {
    		 title: '<ul><li>Este sitio usa cookies para guardar información en tu ordenador.</li><li>This site uses cookies to store information on your computer.</li></ul>',
    		 intro: '<ul><li>Algunas de estás cookies son esenciales para hacer funcionar correctamente nuestro sitio y nos ayuda a mejorarlo dandonos información de como se usa el sitio. Por favor lee este apartado:<span class="ccc-settings"> <a href="http://argavirtual.com/cookies_permisos/mas-informacion.html" target="_blank">Más información (Español).</a> <p>Al Usar nuestro sitio tu aceptas los terminos de nuestra <a href="http://argavirtual.com/cookies_permisos/politica.html" target="_blank"> Política de privacidad</a>.</span></li><p><li>Some of these cookies are essential to make our site work and others help us to improve by giving us some insight into how the site is being used. <br /><p>These cookies are set when you submit a form, login or interact with the site by doing something that goes beyond clicking some simple links.</p><p>We also use some non-essential cookies to anonymously track visitors or enhance your experience of this site. If you\'re not happy with this, we won\'t set these cookies but some nice features on the site may be unavailable.</p>To control third party cookies, you can also <span class="ccc-settings">adjust <a href="http://www.allaboutcookies.org/manage-cookies/" target="_blank">your browser settings.</a> <P><p>By using our site you accept the terms of our <a href="http://argavirtual.com/cookies_permisos/politica.html">Privacy Policy</a>.</p></span></li></ul>',
    		 full:'<p><span class="ccc-settings"> </span></p><p>.</p>'
    	 },
    	 position:CookieControl.POS_LEFT,
    	 style:CookieControl.STYLE_TRIANGLE,
    	 theme:CookieControl.THEME_LIGHT, // light or dark
    	 startOpen:true,
    	 autoHide:60000,
    	 subdomains:true,
    	 protectedCookies: [], // list the cookies you do not want deleted, for example ['analytics', 'twitter']
    	 apiKey: '7a2f596d80da6ca9f001262f0aaded3f31e3c253',
    	 product: CookieControl.PROD_FREE,
    	 consentModel: CookieControl.MODEL_EXPLICIT,
    	 onAccept:function(){ccAddAnalytics()},
    	 onReady:function(){},
    	 onCookiesAllowed:function(){ccAddAnalytics()},
    	 onCookiesNotAllowed:function(){}
    	 });
    function ccAddAnalytics() {
    	 jQuery.getScript("http://www.google-analytics.com/ga.js", function() {
    		 var GATracker = _gat._createTracker('UA-xxxxxxxxxx');
    		 GATracker._trackPageview();
    	 });
    	 }
     //]]>
    </script>
    

    I wrote the code in index.php. But when I go to schedule page to bid all options are showed in same page (find by dep airport, arrive airport, airplan, distance....). And when we do a bid this error message is showed:

    No route passed

    Actually I commented the code to fix the issue, but what or where I must write the code to work? I wrote in domain\index.php at first line to prevent that cookies was installed, but seems a wrong site.

  6. ok, im not a expert certainly, only understand a little of php, but i did the customitation of phpvms to airline to which I belong. I dont know if that is enought, could be with a tutorial.

    I will wait your answer to ask to my airline staff if they are interested by 10€.

    Regards.

  7. Curshad, you want this? limit the number of row pilots?

    How i can limit the number of the tochdownstats 10 pilots to 5 pilot.

    Not sure exactly what you are looking for but the function "top_landings($howmany)" will return the top landings in order and limit it by the "$howmany" variable.

×
×
  • Create New...