Jump to content

Nabeel

Administrators
  • Posts

    8149
  • Joined

  • Last visited

  • Days Won

    39

Everything posted by Nabeel

  1. There probably will be alot of changes. Here's my suggestion - Create a new Lang class, called class MultiLang { ... } In a new file, and create it into an addon with your custom templates, and release it as an addon. If you place the MultiLang file and just call it, it autoloads.
  2. Looks good. I don't have skype atm. But maybe you can implement this into an add-on. I can't integrate just yet, a little too much going on.
  3. Hey there, What's your airline (link to it on vaCentral)? Did you add the API key to your config file?
  4. No prob, try updating to 906 now, I did fix a few things with that
  5. Ah I see. Available is spelled wrong in the config string. Just wondering - why are you doing glob, why not just include 'lang/LANG/lang.php'; which could then include the other files included: $base = dirname(__FILE__); include $base.'/file1.php'; But glob might be ok. But, there might be a faster implementation, rather than using glob (which is pretty slow), like this function http://github.com/ns....class.php#L276 Or the FileIterator, but that might be PHP 5.3 only. And what's in the language file? For the config file, inside the en.lang.php file there is: $trans = array( Perhaps instead of an extra XML file, just add another array: $lang_info = array( 'name' => 'English', ); $trans = array( Just a suggestion And the loading language from the cookie looks interesting. Let me know where you make out with this, perhaps I can roll this back in upstream Thanks!
  6. Which version are you on?
  7. Yeah, it's a good book, I used it more for a reference. The place where I learned alot was from http://cprogramming.com/ You'll probably be able to find all my posts from 2002-2005 on there haha. But it was a great place to learn the real basics. Visual Quickstart guide is great once you get started to keep going and refer to.
  8. Nabeel

    Airports

    You can't delete airports, since they're logged into the system. If you REALLY need to delete it, and it hasn't been used anywhere, you can delete it through phpMyAdmin
  9. Haha.. you never know... Clear your sessions table. For some reason, it's not emptying out. Are you using mysqli?
  10. There's these books called the "visual quickstart guides", those are good for starting. The books i started programming with were: c++ the programming language (this book is THE bible) visual quickstart guide: C++ (the one i mentioned above) c++ stl but more advanced
  11. Yes you can use that for multi-lang strings
  12. Good to hear!
  13. As long as the rest of the site is working, it's fine
  14. There are some - in the core/lang/en.lang.php file I think it's called. All the other language is directly in the templates, since you can modify the templates you can change the language as well
  15. Nabeel

    Coding

    Haha I'm serious, Wordpress is the nastiest software written.
  16. What do you mean? Do you mean language strings?
  17. Well, there is that pilot shop addon, maybe you could fix that?
  18. Try reuploading that file it says it failed loading, weird
  19. Nabeel

    Coding

    Wordpress is the nastiest, ugliest piece of software ever, and should die in a fire.
  20. They're being fixed for beta. The height/width are actually set within the template now.
  21. Ok, here's what it is: I guess you set your MAP_CENTER_LAT and MAP_CENTER_LNG in the local.config file. It doesn't like the 00 in front of the 002.213000, so in local.config.php, just remove those first two zeros. Let's see if that helps center: new google.maps.LatLng(48.514400, 002.213000), Would then read: center: new google.maps.LatLng(48.514400, 2.213000), I'm not sure why it doesn't like that. I'll modify the template to cast that into a string
  22. Thanks, I'm looking at it right now. Are you using the default acarsmap.tpl file? It's having trouble with this line: Error : missing ) after argument list Source file : http://@@@@@/index.php/acars Line : 63, Column : 49 Code Source : center: new google.maps.LatLng(48.514400, 002.213000), That's the cause.... however I'm not exactly sure why.
  23. Nabeel

    Coding

    I'd use a CMS, but I'd go with something like modx. The advantage is that they've all been tested and hardened for security and other fixes
  24. Make sure you uploaded all the files
  25. It'll show some debug output on the screen. What is that?
×
×
  • Create New...