Jump to content

homer09001

Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by homer09001

  1. this is when this include is in my script: include 'core/codon.config.php'; without it i can load the profile page but my image is broken? Edit: if i change include 'core/codon.config.php'; to require_once it lets me load the Profile page but my image is still broken????
  2. Hang on a sec, i think i've been getting the id the wrong way, i can't check until i can get the id card showing in the profile. regarding the placement of the file: phpVMS: http://testdomain.dth-scripts.com/PHPVMS/ createid.php: http://testdomain.dth-scripts.com/PHPVMS/PilotIDs/
  3. ok that is where the file is placed at the moment in a folder called PilotIDs in the root folder but when i try to include the file in the Profile template, it says the createid.php file does not exist on the other point of the pilot id number, how can i clean it so its only the actual numeric entry? Its obviously done in PHPVMS before with the login script but i can work it out?
  4. Ok i have worked out why it wasn't getting the pilot info, because its being given the full pilot id which is TVA0001 which is not how pilot ids aren't stored in the database so what suggestions are there for getting the id in the correct format to retrieve their data?
  5. The only problem im having is where should i put my file so i can include it on the profile page because i want to place my ID card when the avatar is? At the moment is says file not found when i try to include it, and i've tried placing my file in the Profile module folder Also im having issues getting the pilot data, it pulls the avatar no problem but it isn't retrieving anything else? function CreateID($pilotid){ include 'core/codon.config.php'; $pilotid = DB::escape($pilotid); $pilotinfo = PilotData::getPilotData($pilotid); // DEBUG ECHO echo $pilotinfo->hub; echo $pilotinfo->totalhours; echo $pilotinfo->pilotid; All 3 of those DEBUG Echo's don't print on the screen?
  6. I've designed a Pilot ID Card style avatar that is dynamically updated, how can i put this in place of the pilot normal avatar? I've tried editing the template for the profile by putting a standard php include to the custom script but it says it does not exist yet I know it does? You can see the script here: http://testdomain.dth-scripts.com/Flyoasis/createid.php
  7. the only way I can think of this being possible is injecting the news directly into the database using SQL implanted into core code which is not recommended
  8. What skin are you using? If it's "Clowdy" I believe this has already been resolved, if you look in the profile template file from what I read the code that displays the image has been commented out, so just remove the comment markers. Unfortunatly I can't answer your second question
  9. unless you can come up with some sort of agreement with the owner of SimRoutes then you can't link directly to the route page.
  10. Sorry if I I'm missing something LOL what is VACentral?
  11. Yes, but I think giving the pilot a download link on the flight briefing would be better. Ideal solution would be a direect link to the route on SimRoute.com
  12. homer09001

    METARS

    ohh yeah, well whilst im on that subject has anyone managed to modify that page to show UK and other Non-us weaher maps?
  13. homer09001

    METARS

    Im trying this on EGLL (London Heathrow) and it can't get a map :S any solution, i've tried googling for alternative map sources but can't find any good ones
  14. Small suggestion for the next update, giving admin the ability to attach a flightplan file to each route added, allowing a pilot to download the associated flightplan for that schedule and load it direct into FS. Ability to upload multiple with small label for each would be ideal to allow uploading plans for different addons LVL-D 767 PMDG etc.
  15. Thinking ahead Nabeel thanks, ill take a look later.
  16. this has acctualy given me a great idea for a module that: 1. Lists flights for a pilot that depart only from the airport they are currently positioned provided there is an aircraft there 2. Allows the pilot to Deadhead on any flight departing from that station.
  17. you could duplicate the current flight listing module I suppose and the restrict it as you wish then your not effecting any standard modules?
  18. Perfect, Thanks Nabeel, couldn't have completed this module without you Release V1.2 now available.
  19. but how does the confirmation id relate to a pilot? because when i was using pilot id, i could update the record in the pilots table with that, yet there is no confirmed column?
  20. all i need to do is have the pilot id available in the e-mail hence why i modified the source code for one of the functions, i can't find another way of making the id available.
  21. Ok so re-Upload the lib/skins folder then go to your database and then open the phpvms_settins table make sure the CURRENT_SKIN setting Is set to "crystal" without quotes that should fix your problem
  22. Try re-uploading the Lib/skins folder, the error shows that a file is missing. Although I think CURRENT_SKIN should acctualy be name of the skin your using?
  23. Why not make a module for this yourself? create a new member group then modify the menu file to only show the link if the person logged on belongs to that group, same as the admin panel link is shown, then make the link point to a new module and just bassicaly duplicate the admin pirep managment module.
  24. Your welcome , i added it to my admin panel to make it easier when managing ranks so i could make sure i had the right image for each rank.
  25. i haven't a clue what im missing here, but no matter what i try its not sending an e-mail from my module??? <?php class MemAprv extends CodonModule { public function __construct() { CodonEvent::addListener('MemAprv'); } public function EventListener($eventinfo) { if($eventinfo[0] == 'registration_complete') { $userinfo = $eventinfo[2]; $firstname = $userinfo['firstname']; $lastname = $userinfo['lastname']; $email = $userinfo['email']; // get the pilot ID $pilotdata = GetPilotByEmail($email); $pilid = $pilotdata->pilotid; $subject = SITE_NAME . ' Registration'; $message = Template::GetTemplate('email_registered.tpl', true); mail($email, $subject, $message); } } } ?>
×
×
  • Create New...