Jump to content

Nabeel

Administrators
  • Posts

    8148
  • Joined

  • Last visited

  • Days Won

    39

Everything posted by Nabeel

  1. I omit the start letters in my code using regex
  2. To refer to a file use SITE_URL then the path: <style type="text/css">@import "<?php echo SITE_URL?>/assets/css/default.css";</style> That's probably why
  3. No prob, check out the API docs as well (see my sig) There's alot of functionality available
  4. Easiest way would be using this: http://tablesorter.com/docs/ And you can see in the code, that the tablesorter class is in the <table> tag, you should just have to include the javascript file, then it should just work... Why is there XML output in the middle of your code? There should be a start parameter for the GetSchedules - GetSchedule(start, limit, only_enabled), IIRC
  5. What do you mean hand-typing them every time? Well, more like, what do you mean by 'every time'?
  6. This thread: http://forum.phpvms.net/index.php?topic=272.0
  7. Use: <?php $country_name = Countries::getCountryName($userinfo['location']); Or whichever variable holds the country code (pretty sure it's "location")
  8. No prob! At least you are trying. You're getting blanks because you're using $pilot instead of $newpilot in some places eg, you just need: Login Pilot ID: <?php echo PilotData::GetPilotCode($newpilot->code,$newpilot->pilotid)?><br/>
  9. Nope, it's trying to find a scaling factor for the graph, that seemed to be where it was hanging up (infinite loop). SO you probably had another PIREP which gave it an exit
  10. You'll have to do what Nige said, since the pilot variable hasn't been assigned to the template. Using Vars::Post() is probably also cleaner, since it will filter, though I think you can use Vars::$post->code etc. But no difference
  11. You'd have to ask them, I have no idea
  12. So just the manual PIREPs are showing without the leading zero?
  13. I meant checking threads in the FAQ http://forum.phpvms.net/index.php?topic=795.0 http://forum.phpvms.net/index.php?topic=798.0
  14. Nabeel

    Add bid

    When I checked the page, the schedules weren't there. Can you re-upload everything? Revert to the default schedules_* templates (for now)
  15. You can get the pilot code as: [code php] <?php $pilot = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); This will return: VMS001 Depending on the format specified for the pilot id's. And yes you can sign in with just an ID or a string with ID. It doesn't make a difference, since any leading text is stripped and just the ID is used, so VMA0001 will be stripped to 0001, and then leading zero's are erased. Generally people will use VMA001, or whatever their pilot ID is, so that's ok. Refer to API docs: http://docs.phpvms.net/api/ There's a couple other threads about forum integration, that will be the basic code you need to use, except just replace the SMF specific code with phpBB, and you should be set.
  16. Nabeel

    Add bid

    And make sure that folder/files in it at 777
  17. Nabeel

    Add bid

    Re-upload your /lib/js folder, you're missing js-front.js
  18. Re-upload the /lib/js folder, and set all the files to 777 in it, seems a javascript file is missing
  19. I need the exact error messages (with the line numbers), and if you can, the number of flights you have had for the past week, day by day. Thanks
  20. This belongs in support. Have you modified the pilot center template? And if you have, did you check/copy over changes from the original?
×
×
  • Create New...