Jump to content

mark1million

Moderators
  • Posts

    2284
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by mark1million

  1. Hi I use this its an excellent add on :-) and easy to install. http://forum.phpvms.net/index.php?topic=1557.0 AIRMail... Installed it Friday works a treat!
  2. Hi for some reason i have a schedule that it will show up on but all my other routes it gives me the following error, any help would be appreciated. no aircraft performance data available (missing flight duration)
  3. Nabeel, Im trying to display the pilot group ie active inactive on the pilots list, i have read through the api but just seem to be going round in circles, Can you point me in the right direction?
  4. Excellent addition worked first time Just one question is it possible to change the $ to £ as the system doesn't seem to use the local config to get the singes? Nice work!
  5. yes i do its based upon the forum creation its a simple add on file. in your coremodules create another folder named in my case TSRegister (case sensitive) place this code in to that folder and when some one registeres it will create a teamspeak account with the same password and in my case Pilot is and Firstname this can be changes to what ever you like but it suites my cause. <?php class TSRegister extends CodonModule { public function __construct() { CodonEvent::addListener('TSRegister'); } public function EventListener($eventinfo) { if($eventinfo[0] == 'registration_complete') { $userinfo = $eventinfo[2]; $fname = $userinfo['firstname']; $lname = $userinfo['lastname']; $pass = $userinfo['password1']; $email = $userinfo['email']; $code = $userinfo['code']; $uinfo = PilotData::GetPilotByEmail($userinfo['email']); $code = PilotData::GetPilotCode($uinfo->code, $uinfo->pilotid); $pilot_id = $fname.$lname.$code.$pilot_id; $pilot_id_klein = strtolower($pilot_id); $passMD5 = md5($pass); $tm = time(); mysql_connect("your own server", "username", "password") or die(mysql_error()); mysql_select_db("YOUR TS DB NAME") or die(mysql_error()); // Insert a row of information into the table "ts2_clients " mysql_query("INSERT INTO ts2_clients (i_client_id, i_client_server_id, b_client_privilege_serveradmin, s_client_name, s_client_password, dt_client_created, dt_client_lastonline) VALUES('0', '1', '0', '".$code.' '.$fname."', '".$pass."', '', '' ) ") or die(mysql_error()); mysql_close(); //echo "Data Inserted!"; } } } ?> Its a bit crude but it works
  6. All working good here too.
  7. Back to the original error now on view details, Fatal error: Call to undefined method SchedulesData::getscheduleflowncounts() in /home/mgrant/public_html/grantsva.com/core/modules/Schedules/Schedules.php on line 79
  8. ok here now after beta, just testing more functions
  9. You can always do two completely different installs.
  10. This is a new one..
  11. Pilot Brief is throwing up this, Fatal error: Call to undefined method Schedules::findschedules() in /home/mgrant/public_html/grantsva.com/core/modules/Schedules/Schedules.php on line 95
  12. OK also in the admin i get this, Open Flash Chart JSON Parse Error [syntax Error] Error at character 0, line 1: 0:
  13. Now i get this, Warning: Invalid argument supplied for foreach() in /home/mgrant/public_html/grantsva.com/core/templates/schedule_details.tpl on line 23
  14. HA was just going to post about that lol Thanks
  15. Nabeel, I have a couple of MySql servers running on my development machine, is it possible to define a port number to connect to?
  16. Fantastic!!!! Thank you Nabeel.
  17. I am using phpbb 3.6 all works fine here, but the user goes inactive but thats OK as nasty things can happen otherwise .....
  18. Hi everyone, when a user registers i have an insert statement taken from the create forum account that inserts a users ID and name in to my teamspeak db, what i currently have is this, // Insert a row of information into the table "ts2_clients " mysql_query("INSERT INTO ts2_clients (i_client_id, i_client_server_id, b_client_privilege_serveradmin, s_client_name, s_client_password, dt_client_created, dt_client_lastonline) VALUES('0', '1', '0', '".$code.$fname."', '".$pass."', '', '' ) ") So this inserts in to my teamspeak db Pilot ID and First name like this ABC0001Mark, what i am trying to do is put a space in between the id and the name so it inserts like this, ABC0001 Mark Im no coder and have been hunting about with no luck, google who normally is my best friend yields no results, any suggestions would be gratefully received. Thanks.
  19. OK must me my end, i have manually set the default, as defined "0" in the db and workes ok now.
  20. Im getting the following error when trying to register, Error Registering Field 'transferhours' doesn't have a default value. I am using the default registration .tpl as well
  21. Nabeel a good feature would be inactivity, would it be possible to write in to the code if a pilot doesn't file a pirep for a specified amount of time he goes inactive? And following on from that displays a image, so for example if a pilot is active a green image is displayed next to his name, http://www.grantsva.com/index.php/pilots if he becomes inactive another image is displayed, hope you get where im coming from.
  22. Skinning can take ages, i have been working on my site for over 6 months, and i still say its not complete just a good starting point. Have a look on the forum Roger has done a tutorial and has some examples as well.
  23. Sorry got cut off but you get the drift, at least phpvms is now installed for you. You can now begin the experience of skinning Good Luck!
  24. i already have teamviewer.
×
×
  • Create New...