Jump to content

freshJet

Members
  • Posts

    1470
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by freshJet

  1. Thats too bad. Been looking for a paid client for a while now but with no luck at all. Everyone has stopped offering it for some reason :blink:

    If you can use VB then I recommend you take Vangelis' open source module and modify it. That's what I started doing, left it for a while though.

  2. Solved. Took an entire day, but solved. I've found a solution and it works for me, but please backup core/codon.config.php and core/classes/TemplateSet.class.php.

    Open up codon.config.php and scroll down a bit until you see all the define() declarations. Add the following at the bottom:

    define('ADMIN_PATH', SITE_ROOT.'admin');
    

    Then, at the end of the file, add:

    $admin_skin = Config::Get('ADMIN_SKIN');
    define('ADMIN_SKINS_PATH', ADMIN_PATH.DS.'lib'.DS.$admin_skin);
    

    Save your changes and close. Then, navigate to core/classes and open TemplateSet.class.php. Scroll down to the getTemplate() function, should be line 198. Replace the existing function with the following one:

    public function getTemplate($tpl_name, $ret=false, $checkskin=true, $force_base=false)
    {
    
     /* See if the file has been over-rided in the skin directory
      */
     if(strstr($tpl_name, $this->tpl_ext) === false)
     {
      $tpl_name .= $this->tpl_ext;
     }
    
     if(defined('ADMIN_PANEL') && ADMIN_PANEL === true){
      if(defined('ADMIN_SKINS_PATH') && file_exists(ADMIN_SKINS_PATH . DS . $tpl_name)){
       $tpl_path = ADMIN_SKINS_PATH . DS . $tpl_name;
      }
      else
      {
       $tpl_path = $this->template_path . DS . $tpl_name;
      }
     }
    
     if($force_base === true)
     {
    
      $old_tpl = $this->template_path;
      $this->template_path = Config::Get('BASE_TEMPLATE_PATH');
    
      if($checkskin === true)
      {
       if(defined('SKINS_PATH') && file_exists(SKINS_PATH . DS . $tpl_name))
       {
     $tpl_path = SKINS_PATH . DS . $tpl_name;
       }
       else
       {
     $tpl_path = $this->template_path . DS . $tpl_name;
       }
      }
     }
     if((!defined('ADMIN_PANEL') || $force_base == true) && $checkskin == true)
     {
    
      if(defined('SKINS_PATH') && file_exists(SKINS_PATH . DS . $tpl_name))
      {
       $tpl_path = SKINS_PATH . DS . $tpl_name;
      }
      else
      {
       $tpl_path = $this->template_path . DS . $tpl_name;
      }
     }
    
     if($force_base)
     {
      $this->template_path = $old_tpl;
     }
     if(!file_exists($tpl_path))
     {
      trigger_error('The template file "'.$tpl_path.'" doesn\'t exist');
      return;
     }
    
     extract($this->vars, EXTR_OVERWRITE);
    
     ob_start();
     include $tpl_path;
     $cont = ob_get_contents();
     ob_end_clean();
    
     # Check if we wanna return
     if($ret==true) 
      return $cont;
    
     echo $cont;
    }
    

    Save that too and close it. Now, you should be able to copy your files from admin/templates into admin/lib/[skin] and edit them there.

    Any problems, let me know.

    • Like 2
  3. Surprised no one else has gone into this in detail before. It's really annoying.

    This is in core/classes/TemplateSet.class.php:

    if($force_base === true)
           {
               $old_tpl = $this->template_path;
               $this->template_path = Config::Get('BASE_TEMPLATE_PATH');
    
               if($checkskin === true)
               {
                   if(defined('SKINS_PATH') && file_exists(SKINS_PATH . DS . $tpl_name))
                   {
                       $tpl_path = SKINS_PATH . DS . $tpl_name;
                   }
                   else
                   {
                       $tpl_path = $this->template_path . DS . $tpl_name;
                   }
               }
           }
    
           if((!defined('ADMIN_PANEL') || $force_base == true) && $checkskin == true)
           {
               if(defined('SKINS_PATH') && file_exists(SKINS_PATH . DS . $tpl_name))
               {
                   $tpl_path = SKINS_PATH . DS . $tpl_name;
               }
               else
               {
                   $tpl_path = $this->template_path . DS . $tpl_name;
               }
           }
           else
           {
               $tpl_path = $this->template_path . DS . $tpl_name;
           }

    Now obviously this is for the main site as well.

  4. About to release my admin skin, however I have been forced to edit the default template files in admin/templates. I noticed that adding them to the skin folder, like you would on the main site, does not work. Changes made to those files in the skin folder do not show up.

    Is there a way around this?

  5. Concept is good, my only concern at the moment would be that there is currently no decent scenery for Prestwick. The last one was released in 2004 but it has changed quite a bit since, particularly in that runway 13/31 is now 12/30. Another thing is that it's rarely controlled or used on VATSIM, if you intend to get your pilots flying online.

    Personally I'd pick Glasgow over Prestwick. In the real world Prestwick is declining and will surely be dead within 5 years, at least in terms of scheduled passengers.

    I wouldn't get too concerned about days off for aircraft, I would make them fly every day.

    As for the fleet, I would probably choose between the Islander and the Twin Otter. There is a good payware model for the Twotter and that's what counts nowadays. Same goes for the ATR, great choice by the way.

    One issue that challenges the whole concept is that flyuk have a division that lets pilots fly about the highlands. Most of them copy Loganair's routes from Glasgow to the Hebridies but it extends beyond just Glasgow. It is, or used to be, very popular, particularly among those flying online who don't want to fly 747s out of Heathrow.

    If you think you can make it work, then sure, go for it, but be sure it will work before you invest time and money :)

    Happy New Year!

  6. Since the PHP mail function does not allow multiple receipients, you would need to repeat the line that sends the email, I think it starts Email::send. All you would do is repeat the line and change the receipient to the email itself, so instead of the variable $to (for example), you would enter the email, i.e 'email@site.com'.

  7. I know why but I asked what do they pay as in how much per rank.

    Sorry, thought you said why.

    Using a real world example, British Airways pay £10/hr for First Officers and Captains, that's about $16. I use very high prices, but that's because there's no salary. My lowest rank pays £28/hr. My highest rank is £500.

×
×
  • Create New...