Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

2305 Excellent

About servetas

  • Rank
    PHP-Mods Staff

Contact Methods

  • Website URL
  • Skype

Profile Information

  • Gender
  • Location
    Athens, Greece

Recent Profile Visitors

21420 profile views
  1. servetas

    Login Question

    This is what I regularly use: include_once '../core/codon.config.php'; if(Auth::LoggedIn()) { echo 'You are logged in'; } else { echo 'You are not logged in'l } Of course, you will have to update the include_once line in order to point to the path of your phpVMS core/codon.config.php according to the current directory of your web application.
  2. servetas

    Property System v1

    Hello There, I just saw your messages here. Support is not offered through the forum. Please open a new support ticket under the PHP-Mods billing system and I will be more than glad to assist you.

  4. servetas

    How to change "Bid added" text [SOLVED]

    The "Bid added" is included within your core/modules/Schedules/Schedules.php file. It should be around line 144. ___________________________________________ phpVMS Modules | Web Hosting | Pilot Awards (w/Auto Awards) | Pilot Shop | Real Booking System | Forum System
  5. servetas

    Adding a different reg to my fleet livery

    As soon as you have the psd files of the livery I believe that you should be able to do the required changes.
  6. Yes of course, Have't you kept the installers of the modules? If no, you will probably have to get into your phpVMS files and database and move them to your new phpVMS installation. _________________________________________ phpVMS Modules | Web Hosting | Pilot Awards (w/Auto Awards) | Pilot Shop | Real Booking System | Forum System
  7. Hmmm, what you request is not that easy because it may require a few work to be done. Open the core/common/PIREPData.class.php file and find this: public static function deleteField($id) { $sql = 'DELETE FROM ' . TABLE_PREFIX . 'pirepfields WHERE fieldid=' . $id; $res = DB::query($sql); if (DB::errno() != 0) return false; return true; //TODO: delete all of the field values! //$sql = 'DELETE FROM '.TABLE_PREFIX.' } after this, add the following part of code: public static function getSumByField($pilotid, $field) { $sql = "SELECT SUM(v.value) AS total FROM ".TABLE_PREFIX."pirepvalues AS v LEFT JOIN ".TABLE_PREFIX."pireps AS p ON p.pirepid=v.pirepid WHERE v.fieldid='$field' AND p.pilotid='$pilotid' AND v.value REGEXP '^[0-9]+$'"; $total = DB::get_row($sql); if(!$total) return 0; return $total->total; } Then within the pilot's center or any other part of your website, you can use the following code to show the total points. Just ensure that the pilot really submits numbers within the points section although I added an extra check within the where statement. <?php echo PIREPData::getSumByField(SET_HERE_THE_PILOT_ID, SET_HERE_THE_FIELD_ID); ?> Do not forget to update the SET_HERE_THE_PILOT_ID and SET_HERE_THE_FIELD_ID values accordingly. I did not test it but it should work. Let me know if it does. ___________________________________________ phpVMS Modules | Web Hosting | Pilot Awards (w/Auto Awards) | Pilot Shop | Real Booking System | Forum System
  8. servetas

    Schedule Notes in ACARS?

    Have you try to get in touch with the developers of smartCARS? Considering that the community does not have access to the core part of the smartCARS, we are not able to assist you to this.
  9. servetas

    Access Error

    According to this I can see that parkho has a break on line 64. If you have something that looks almost identical I would suggest you to just remove the break statement. If you are not sure about what do do, paste here lines 70-80 and we will be able to review it. I assume that line 73 has probably a break statement
  10. servetas

    Mix TPL & PHP modules?

    What do you see after you click on the search button? What is your website url?
  11. servetas

    Recaptha on php7

    Found this: https://github.com/tutsplus/how-to-integrate-google-no-captcha-recaptcha-on-your-website/blob/master/recaptchalib.php Does your recaptchalib.php look alike? If yes, try to replace this: function ReCaptcha with this: function __contruct
  12. servetas

    Mix TPL & PHP modules?

    Are you using a different table prefix for your database tables? The module is set to query the phpvms_schedules database table. Does it exist?
  13. servetas

    Mix TPL & PHP modules?

    Follow the steps below: 1) Open the core/common/FrontSchedulesData.class.php and where "public function" replace with "public static function". 2) Open the core/modules/FrontSchedules/FrontSchedules.php and where ".tpl" replace with ".php". 3) Open the core/templates directory and change the name of the "airport_search.tpl" file to "airport_search.php". They should work correctly afterwards.
  14. servetas

    Mix TPL & PHP modules?

    Yes they can but you will have to make a few changes in order to make it work correctly. Which module are you trying to install on 5.5?
  15. servetas


    This is an English speaking forum plus the fact that I do not speak French yet :D. Please write in English