Jump to content

vazquezjm

Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by vazquezjm

  1. Hi there!

    When I try to manually enter a PIREP, I fill all the fields in /index.php/pireps/filepirep and when I hit "Submit" I'm redirected to /index.php/pireps/mine (which is right) but I get this error message: "This PIREP is not yours!" :wacko:

    It works flawlesly with kACARS but not manually, please help!

  2. For the sake of ensuring everything that's required to be created when a pilot registered is created, I would just do:

    $data = array(
    'firstname' => '',
    'lastname' => '',
    'email' => '',
    'password' => 'New123',
    'code' => '',
    'location' => '',
    'hub' => '',
    'confirm' => false);
    RegistrationData::AddUser($data);

    (Obviously filling in the rest appropriately).

    Ok, I did this and nothing happened. No pilots were inserted :(

    API calls work. I tried with a couple of classes and methods so I know the codon.config.php is being included properly.

    Is there any way I can debug, read a log or something like that? I set Config::Set('DEBUG_MODE', true); in the local.config.php and nothing was shown during the execution of the script.

    Thank you.

  3. The password you enter there has to be plain text, so you could do something like import them all as $data['firstname'].time() and send them an email (using Util::SendEmail) telling them their password and how to change it, for example.

    I'm planning to do raw inserts into the table, but not sure how to generate the password using MD5.. something like:

    $pass = md5("NewPass*123");

    and then:

    INSERT INTO pilots (pilotid, firstname, password) VALUES ($pilotid, $firstname, $pass);

    will suffice?

    Then, when the pilot logs in, he will enter his email and "NewPass*123" (in this example) and he will be logged in?

  4. Hi there!

    I'm creating a PHP script to export pilots from a custom built VA Admin System I did a few years ago.

    I opened RegistrationDataClass.php and found out that the AddUser method receives the following array as parameter:

    $data = array(
    'firstname' => '',
    'lastname' => '',
    'email' => '',
    'password' => '',
    'code' => '',
    'location' => '',
    'hub' => '',
    'confirm' => false);
    

    I can fill most of those fields with legacy data, but not sure how to create a pre-defined password and salt (?) and have pilots change their passwords once the logon for the first time into the system. Also, are those the only required fields to create an entry in the pilots table?

    TIA!

  5. Hi all.

    I was wondering if a news item could have its own view/page? For instance: va-domain.com/news/1, va-domain.com/news/322, etc

    What for? Have the possiblity to show more content, have each news item marked as "Like" on Facebook or shared on other social networks, etc.

  6. Hi!

    I'm trying to filter results by aircraft, and added the following code to TouchdownStats.php:

    public function by_aircraft($aircraftId)  {
       $this->set('stats', TouchdownStatsData::by_aircraft($aircraftId));
       $this->show('touchdownstats/touchdownstats_index.tpl');
    }    
    

    and this code to TouchdownStatsData.class.php:

    public function get_stats_by_aircraft($aircraftId) {
       $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps`
                   WHERE landingrate < '0' 
                   AND aircraft = $aircraftId 
                   ORDER BY landingrate DESC";
    
    	return DB::get_results($query);
    }
    

    When I invoke the listing (/index.php/Touchdownstats/by_aircraft/2), I get:

    Fatal error: Call to undefined method TouchdownStatsData::get_stats_by_aircraft() in .../core/modules/TouchdownStats/TouchdownStats.php on line 25

    What am I missing? :unsure:

  7. Hi.

    I was creating a news post for my VA and noticed that title is truncated when saved. Looks like it is limited to 30 characters. The thing is that the title field on /admin/index.php/sitecms/editnews?id=xx is not limited to 30 characters.

    Another improvement I'd suggest to this page is the ability to unpublish an entry (checkbox) without having to delete it.

    Thank you!

  8. This too. They're used for past flights for sure, and on the live map, that's how it knows what coordinates to look up. I would just leave them in

    It would be a nice feature to enable/disable an airport.

    We create monthly spec ops around the world. Since those flights are not part of the regular schedule, we have lots of airports listed on our route finder. Maybe adding a checkbox to hide the airports would be something to consider for future releases and will not affect database integrity ;)

    • Like 1
  9. DATABASE NAME= ?_localhost ?= the name of the database. So if you created a database as whodat then it would be whodat_localhost

    USERNAME= whodat_? ?= User permitted to that database so if you add vazquezjm then it would be whodat_ vazquezjm

    PASSWORD= whatever password you have setup in that database.

    If you still need help, Private Message (PM) me

    Thanks Jeff, it worked! B)

  10. I am trying to upload the new version with a clean install and get this:

    Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>Incorrect database name 'fsxxp_virtual ' (1102)</b></font>]<br />[<font color=000000><b></b></font>]</font><p> </blockquote><hr noshade color=dddddd size=1> thrown in /home/fsxxp/public_html/virtual/core/classes/ezdb/ezdb_mysql.class.php on line 140

    Please advise! Any help appreciated!

    Never mind working now :)

    How did you solve it?

  11. Hi All.

    I'm experiencing the same error:

    Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>Access denied for user 'vazquezb_ladeusr'@'localhost' (using password: YES) (1045)</b></font>]<br />[<font color=000000><b></b></font>]</font><p> </blockquote><hr noshade color=dddddd size=1> thrown in /home2/vazquezb/public_html/lade-virtual.com.ar/core/classes/ezdb/ezdb_mysql.class.php on line 99

    What could be wrong? I'm using cPanel and tried both manual and wizard modes for creating the DB :(

  12. does anyone have an exam already made with multiple choice answers that you could send me to use in the development?

    I do, but they're in Spanish  :-

    Anyway, they're simple questions with 3 or 5 possible answers, only one of them is valid. Let me know if you need help ;)

  13. I'm working on my own version right now. Exams are multiple choice type and will have several controls like session, time laps since last unsuccessful try and more. This is a personal project but will maybe it will be easy to integrate it with phpVMS, will see  ;)

×
×
  • Create New...