turtle6340
-
Posts
41 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by turtle6340
-
-
I hope you're right hahaha still waiting on a response on their site .. kinda baffling ..
-
ok will do thanks Nabeel As a side note I did a one hour flight at 23000 and still same prob ..
-
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 only 8 minutes in length?
Just curious ...
-
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.
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
- 1
-
In my case it's for the pilots.. Screenshot 1 is the admin pages and screenshot 2 is the dbase (pilots table)
I started working on it last night but it was late so I'll try my hand at it today sometime ..
-
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 )
-
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 ..
-
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 ..
-
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
-
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)
-
-
was this a brand new (clean) install or were you trying to update?
-
core/templates/schedule_boarding_pass
-
I get the same problem, however when I'm in the admin panel apprving pireps, I just make sure I go into maintenance and use the 'recalculate distances' option and then all is ok ..
-
You want to know 'how' to do it?
Or you need to know what they should be chmod'ed to?
-
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?
-
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
-
Build 707 worked like a charm Thanks Nabel
-
hahaha yep i did what i was supposed to, i'll try the newest build and let you know
-
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 ..
-
Beautiful job Nabeel !!! Looks fantastic !!
-
Hi all, forgive me if i didn't see this before, but does anyone have the solution to show the roster in ascending order? (lowest id's at the top). Thanks in advance and again my apologies if I'm blind lol...
-
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..
-
Just re-uploaded the admin folder and still get no icons (no big deal just driving me nuts trying to find it lol). I'm using IE ..
FSFK Question (SOLVED)
in Support Forum
Posted
Sorry so long in the reply to this .. It was my fault (was using FSFK 2.8), Thomas had fixed it for v3 and up.. Once updated, everything is great !!