Jump to content

Tom

Members
  • Posts

    1517
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Tom

  1. Tom

    Main Page

    It's not css, it's your code. Check frontpage_main.tpl compared to some other pages. On the other page you linked there are two <p></p> instances before the content of the page, which don't exist on the frontpage. They cause the extra space. Like so: <td class="main_content_box"> <p></p> <p></p> <table...
  2. Attached to this because my site is being dodgy right now and showing an error page even though the file exists...
  3. It appears I can't attach tpl files... :S So, here is a zip checkall.zip
  4. I had the file on my site but haven't uploaded it since changing hosts. I'm on my phone so I'll upload it when I get home this evening, if anyone has the file and wants to attach it to their post feel free
  5. Tom

    acars map embed

    Remove that first </head>...
  6. Tom

    acars map embed

    Remove the </head> directly after that javascript. I'm not sure exactly what else it is, have a look in core_htmlhead.tpl.
  7. Tom

    acars map embed

    You'll need the following somewhere in your <head></head> section: <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> And possibly some others.
  8. Try the following: <?php if(MainController::$activeModule == 'FRONTPAGE') { ?> // Your refresh code <?php } ?>
  9. Tom

    acars map embed

    Embed http://yoursite.com/action.php/acars in an iframe or something. That will show the acars map and flight table without any skin.
  10. Tom

    Module Error

    It's in core/classes/Debug.class.php, line 127 or so. I'm using public static function showCritical($message, $title='') { if($title == '') $title = 'An error was encountered'; Template::set('message', $message); Template::set('title', $title); Template::Show('core_error.tpl'); }
  11. Okay thanks, I'll give it a go
  12. Hello, After moving to fivedev hosting I'm seeing the following error on my site: Warning: simplexml_load_file() [function.simplexml-load-file]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 I'm reading an XML file on another domain. Does anyone know how I can work around this? Thanks
  13. Tom

    VAForum 2

    Yeah. I'm not sure what I want to do at the moment. I've coded a new forum and it's great, but upgrading to it is going to be difficult to say the least. I think I might just fix the current one up as a "basic" addon, and release the new forum as a "pro" version. How do people feel about this?
  14. Tom

    VAForum 2

    Yeah I think that was one of the things I was thinking of when I said there were problems people hadn't noticed yet
  15. Tom

    VAForum 2

    Oops late reply, sorry Have you included forum_styles.tpl? It includes the following: .forum_img{max-width:90%;} which should remove any template busting (doesn't decrease the actual download size of the image, however) - that may be a non-IE thing, if you're using IE...
  16. if($condition){ // Do things } for the second you need a form somewhere, and in the appropriate module it's sent to $url = 'http://www.twitter.com/'; $post = $this->post->input: $twitter = $url.$post; where your input field is named input.
  17. Tom

    Alternate way

    If it's the skin you showed me before it's possible using the normal skinning process. It just requires a little work...
  18. Oh that's interesting. I would expect the client to record pax based on what your flying, rather than what the schedule has the aircraft as, for exactly this reason - if that's correct it's a bit of a flaw IMO. You should have a word with lorathon and see what he says. I guess the workaround is only going to be create each schedule for each aircraft, if you wish to continue using kACARS... sorry :/
  19. This doesn't limit you to what you fly. If you wish (this is what I do) you can just set every route to the same aircraft. It's just to act as a guidance when you are accepting PIREPs submitted.
  20. Assuming you're working within the view function, place the following somewhere after $userinfo is defined. if($userinfo->retired == 1) { $this->set('message', 'Sorry! This Profile Is Not Available!'); $this->render('core_error.tpl'); return; } Hopefully should work
  21. Tom

    VAForum 2

    Can they not get to grips with BBCode? Thankfully I've found a great text editor so an image button will be present
  22. In the admin panel go to edit airlines
  23. Tom

    VAForum 2

    BBCodes already in use: [b][/b], [u][/u], [i][/i], [p][/p], [img][/img], [url][/url], [list][/list], [*][/*] Bold, underline, italic, paragraph, image, link, list and list item respectively. So for an image, you would use: [img=http://www.link.com/to/file.jpg] Which reminds me of something else I want to do: better BBcode processing and custom codes.
  24. <?php echo 'Your last 5 landings '.TouchdownStatsData::top_landings($userinfo->pilotid); ?> Would probably work - you shouldn't need the quotes.
×
×
  • Create New...