Jump to content

mark1million

Moderators
  • Posts

    2288
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by mark1million

  1. Top Stuff!!!! Cant wait
  2. Got it, works a treat Thanks.
  3. No worries thanks for your great additions Off to edit the tpl's
  4. Excellent, ill give that a go now, great addition by the way, Thanks.
  5. 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!
  6. 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)
  7. 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?
  8. 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!
  9. 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
  10. All working good here too.
  11. 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
  12. ok here now after beta, just testing more functions
  13. You can always do two completely different installs.
  14. This is a new one..
  15. 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
  16. OK also in the admin i get this, Open Flash Chart JSON Parse Error [syntax Error] Error at character 0, line 1: 0:
  17. 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
  18. HA was just going to post about that lol Thanks
  19. Nabeel, I have a couple of MySql servers running on my development machine, is it possible to define a port number to connect to?
  20. Fantastic!!!! Thank you Nabeel.
  21. I am using phpbb 3.6 all works fine here, but the user goes inactive but thats OK as nasty things can happen otherwise .....
  22. 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.
  23. OK must me my end, i have manually set the default, as defined "0" in the db and workes ok now.
  24. 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
×
×
  • Create New...