Jump to content

Tom

Members
  • Posts

    1517
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Tom

  1. Okay I finally got an email, it works when sending it to my site which is hosted on the same account, but not the main one... weird. They're both set up on google and everything, working properly when I send emails to it from other emails, just not the site ones.
  2. Tom

    URL problem

    Get rid of the index php... If you're trying to use url(), instead use fileurl()
  3. I mean in the database.
  4. Doing this will really mess up your flight tracking. Junior: Take a look at your aircraft table and create an excel spreadsheet with the column headings from the table. Then you can copy and paste data as much as you want in that spreadsheet and import it to your database in phpmyadmin.
  5. Hullo On my site (flyeug.co.uk) I'm not receiving any emails when pilots register. I have no idea if pilots are getting emails, but emails are working on another site hosted on the same account which is why I didn't think it would be worth bringing up in the fivedev forum. Any ideas?
  6. Tom

    Change Background color

    As in the page background? body{background:#D8D8D8;}
  7. I thought I'd let you know, I just tried to load VA list in IE to see the script errors and it basically crashed my computers Internet connection - couldn't load a single site at all. Never had this happen before :S Having to use phone...
  8. I would look in to a little script which only loads images when the user scrolls down to them - see these everywhere now. This would significantly reduce the load time on all the VA banners we don't see.
  9. Well someone has to say it! To be specific, it took me 32.63 seconds to finish loading the page on a decent internet connection. I would suggest Google Page Speed, but each time I try to enter va-list.com it appears to have given up trying to load the page
  10. Looks like you're using a really old version of phpVMS/the template. I suggest updating.
  11. http://forum.phpvms.net/topic/1317-request-contact-form-mod/page__view__findpost__p__8116
  12. Uh... <div class="mainblock"> <h2>Newest Pilots:</h2> <div class="block"> <table> <thead> <tr> <th width="50%" scope="col">Pilot ID#</th> <th width="50%" scope="col">Name</th> </tr> </thead> <tbody> <?php foreach($pilots as $pilot) { /* To include a custom field, use the following example: <td> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> </td> For instance, if you added a field called "IVAO Callsign": echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); */ ?> <tr> <td><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td><?php echo $pilot->firstname.' '.$pilot->lastname ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> exactly like that, into frontpage_recentpilots.tpl Then <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> wherever you want it... Should only show 5... if not you did it wrong :S
  13. Did you put your table into frontpage_recentpilots.tpl? You have to do that too.
  14. Are you using the current frontpage_recentpilots.tpl? If not, you do exactly what you want by pasting the code for your table into frontpage_recentpilots.tpl and making sure the variables are correct (i.e. as I posted before)
  15. Why don't you just use the original frontpage recent pilots and edit frontpage_recentpilots.tpl to suit? Makes life easier.
  16. If you're using frontpage_recentpilots.tpl this should work: <div class="mainblock"> <h2>Newest Pilots:</h2> <div class="block"> <table> <thead> <tr> <th width="50%" scope="col">Pilot ID#</th> <th width="50%" scope="col">Name</th> </tr> </thead> <tbody> <?php foreach($pilots as $pilot) { /* To include a custom field, use the following example: <td> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> </td> For instance, if you added a field called "IVAO Callsign": echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); */ ?> <tr> <td><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td><?php echo $pilot->firstname.' '.$pilot->lastname ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div>
  17. Tom

    Timetable

    I think this is what this is: http://forum.phpvms.net/topic/3185-timetable-10/
  18. Do you even have exam center installed? That link just takes me to your home page.
  19. Now now, no need to start that again. Stealth, if you're not using this topic anymore because it's outdated, please don't spam the forums with another
  20. It renders things fine, but it's pretty small when you're trying to use inputs and forms, as with any mobile device. Hence why people are increasingly developing mobile compatible versions of their sites.
  21. Tom

    php help

    Yeah I didn't know that did I, I had never seen it, hence assumed it would be static. Anyway, read my edit
  22. Tom

    php help

    Javascript in the acars map. I had assumed you were doing a static percentage bar In fact, scrap what I said earlier. Go look at core/modules/ACARS/ACARS.php - in the data function. within the foreach loop you can get the route distance and set it as a variable to return to the javascript. That should work
  23. Tom

    php help

    I had a quick look and it doesn't look like you'd even be able to get it by editing the javascript, you'd need to do a few more things in PHP.
×
×
  • Create New...