Jump to content

turtle6340

Members
  • Posts

    41
  • Joined

  • Last visited

Posts posted by turtle6340

  1. Just a quick question, I did a small VFR flight to test the fsfk images etc and all worked great..

    Except, it did not upload a landingprofile or verticalprofile map

    Could that be because a) the flight was only at 2500 ft and B) only 8 minutes in length?

    Just curious ...

  2. Well, lets see who can beat who to it. lol I am not a pro at php at all. I am in my first php class at school as we speak. So it takes me a while to come up with stuff on my own. I hate being a newbie still after 9 years of doing this kind of stuff. :blink:

    Maybe not the cleanest way but this works for me ....

    Add this to TopPilotData.class

    public function alltime_miles ($howmany) {

    $query = "SELECT pilot_id, SUM(miles)AS 'total' FROM top_flights GROUP BY pilot_id ORDER BY total DESC LIMIT $howmany";

    return DB::get_results($query);

    }

    Then in tp_index I added ..

    $all_miles= TopPilotData::alltime_miles(5);

    foreach($all_miles as $all) {

    $pilot = PilotData::GetPilotData($all->pilot_id);

    echo '<tr>';

    echo '<td align="center">'.$pilot->firstname.' '.$pilot->lastname.' - '.PilotData::GetPilotCode($pilot->code, $pilot->pilotid).'</td>';

    echo '<td align="center">'.$all->total.'</td>';

    echo '</tr>';

    Hope this helps

    • Like 1
  3. 1/ On all the pilots profiles the "last flight date" is showing 1969 and not the real date of the last flight. How can this be updated so it shows the actual last date.

    Same problem here.. Not too much of an issue for me so I haven't gotten around to digging into this one yet, but I have checked the d-base itself and the column for the last flights never gets updated and still stays 0000-00-00 (or whatever formatting is used .. I can't remember right now)

    I thought it was only me, maybe it was something I had done (or not done). But when I get home I'll put this as #1 on my list and see if I can find the answer.

    (Unless Nabeel, you have already figured it out by then ;))

  4. sorry about that ..

    in admin/modules/PilotAdmin/PilotAdmin.tpl ...

    Util::SendEmail($pilot->email, $subject, $message);

    # Reject in the end, since it's delted

    PilotData::RejectPilot($this->post->id);

    }

    public function ChangePassword()

    {

    $password1 = $this->post->password1;

    $password2 = $this->post->password2;

    // Check password length

    if(strlen($password1) <= 5)

    {

    Template::Set('message', Lang::gs('password.wrong.length'));

    Template::Show('core_message.tpl');

    return;

    }

    Change the above password length field to the number in the 2 other files..

    Remember.. because these 3 files have been modified, they could get overridden in an update ..

  5. Sorry for got to add ....

    In lib/js/jquery.pstrength

    /**

    * $.fn.PStrength.defaults

    * These are the default values that can be overidden

    */

    $.PStrength.defaults = {

    verdicts: ["Very Weak","Weak","Medium","Strong","Very Strong"],

    minCharMsg: "The minimum number of characters is",

    tooShortMsg: 'Too Short',

    unsafeMsg: 'Unsafe Password Word!',

    colors: ["#f00","#c06", "#f60","#3c0","#3f0"],

    scores: [10,15,30,40],

    powMax: 1.4,

    common: ["password","sex","god","123456","123","liverpool","letmein","qwerty","monkey"],

    minChar: 6,

    displayMin: true

    Set this min character to the same number you set in my earlier post ..

  6. In core/modules/Registration ....

    // Check password length

    if(strlen($this->post->password1) <= 5)

    {

    $error = true;

    Template::Set('password_error', 'The password is too short!');

    }

    else

    Template::Set('password_error', '');

    I haven't had a chance to test changing the above number myself, but I think it's probably a good place to start :)

  7. hey Chris, if you are still up for the idea, I have been working on exactly this topic.. If you want, send me the details that you need (want) to be available, and I'll work on it alongside mine... Or, just PM me and when iget mine finished I can give the whole code and you can change as needed ...  (i'm a little strapped for time but hope to have mine finished within this week)

  8. In core/common/RegistrationData.class ...

    public static function SendEmailConfirm($email, $firstname, $lastname, $newpw='')

    {

    /*$firstname = Vars::POST('firstname');

    $lastname = Vars::POST('lastname');

    $email = Vars::POST('email');*/

    $confid = self::$salt;

    $subject = SITE_NAME . ' Registration';

    Template::Set('firstname', $firstname);

    Template::Set('lastname', $lastname);

    Template::Set('confid', $confid);

    $message = Template::GetTemplate('email_registered.tpl', true);

    //email them the confirmation

    Util::SendEmail($email, $subject, $message);

    }

    .. Edit out the 'Registration' part of the $subject with what you would like there ..

    Was that the code you were looking for?

  9. Depending on the text you want to edit ..

    in core/templates, there are 4possible files:

    registration_sentconfirmation

    registration_mainform

    registration_complete

    email_registered

    and in the admin/templates ..

    email_registrationaccepted

  10. Tried the latest beta (706) and here's what I get in the schedule list ..

    Days Flown:

    Warning: Invalid argument supplied for foreach() in /home/public_html/core/classes/Util.class.php on line 51

    135

    .. where the 135 should actually be the days of the week ..

  11. IE 7 (not sure which build) and haven't tried it in FF.. I see your reasoning in commenting it out, so I'm left wondering why it wouldn't work unless I uncommented.. Maybe I'll install the beta and see what happens..

×
×
  • Create New...