Jump to content

Tom

Members
  • Posts

    1517
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Tom

  1. Tom

    Hub Stats

    I'll do it tomorrow if nobody beats me to it
  2. You can use a question that wouldn't be an obvious answer, i.e. what is the fourth word in this sentence? Rather than, are you a bot (enter "no")
  3. Kendo, on 19 October 2010 - 09:14 PM, said: ...
  4. Here try this <?php $flights = PIREPData::getLastReports($userinfo->pilotid, '10'); if(!$flights){ echo 'No flights yet!'; } else { $img = '<img src="http://www.gcmap.com/map?P='; foreach($flights as $flight){ $img.= $flight->depicao.'-'.$flight->arricao.','; } $img.= '&MS=bm&MR=240&MX=650x360&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" /><br />Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.kls2.com/~karl/">Karl L. Swartz</a>'; echo $img; } ?>
  5. You can use the following: PilotData::findPilots(array('p.hub'=>'CYYZ'))
  6. It looks quite good, but then there's this:
  7. I'm not entirely sure what you're trying to achieve with $string, but providing it's correct: <? $flights = PIREPData::getLastReports($userinfo->pilotid, '10'); $string = ""; if(!$flights){ $string = 'No flights have been filed!'; } else { foreach($flights as $flight) { $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+'; } } ?> Your string will end up looking like this, for example: "EGKK+-+KJFK,+KJFK+-+EGKK,+EGKK+-+KMIA,+KMIA+-+EGKK,+" and so on... If that's what you intended?
  8. Tom

    Mal ware

    Roger do you mean the whole 'This site may harm your device/computer' thing under links? That's all I see that looks abnormal, and that would be expected on the entire site if they suspect malware anywhere on the domain. And Vansers are you getting it on your site? :s
  9. Tom

    Detachable 2.1

    Really..? Thomas, see here: http://docs.phpvms.net/api/codon_core/StatsData.html For example; Total Hours Flown: <? echo StatsData::TotalHours(); ?>
  10. In core_navigation.tpl remove the following: <?php echo $MODULE_NAV_INC;?>
  11. Appears to be on all pages... unless you changed the layout/footer tpl.
  12. This is because your templates aren't closing divs in the right places. Somewhere before the footer you need an extra </div>
  13. You're going to have to ask the TS3 forums about that, but if you can you can just use action.php and throw up a page to show the last few news items as you would on the frontpage.
  14. You're going to want to leave $page_content in your layout.tpl, otherwise pages won't have their content. To add custom pages, you can either create them through the Pages thing in the admin panel or create your own module to show the template, which would look something like this: <?php class MyPage extends CodonModule { public function index() { Template::Show('mypage.tpl'); } } ?> Which would be in MyPage.php in a core/modules/MyPage/ folder, and to view it would be mysite.com/index.php/MyPage Alternatively, if you're just wanting to edit the homepage, change the code in frontpage_main.tpl
  15. Apologies. Invalid and incorrect are the same in my head. They might as well be... I was simply answering his question.
  16. That img code is incorrect. It would look something like this (including link): <a href="#"><img src="url.jpg" height="100" width="50" alt="Whatever" /></a>
  17. Have you actually read what Adsense tells you to do? It has nothing to do with the divs...
  18. Right ok, that makes more sense. Replace <img src="<?php echo SITE_URL?>/lib/skins/ObsessBlue/image/img_15.jpg" alt="" /> with the code adsense gives you.
  19. What does this have to do with adsense? Either way, it's invalid; you open divs you don't close... it will break things.
  20. Just put: <script type="text/javascript"><!-- google_ad_client = "ca-pub-############"; /* Header */ google_ad_slot = "8775993061"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Between <head> and </head> somewhere, in layout.tpl. Simple as that.
  21. I have an export of all the FSX airports' data. If you fly in FSX that's about as complete a database you need?
  22. Tom

    Problem IE

    Can I have a link for the site please?
  23. Tom

    Problem IE

    Set the z-index for the parent of the dropdown list to a really high number.
×
×
  • Create New...