at the moment i am thinking about the ranks and restrictions.. i think i am done with that tomorrow.. at all it sounds great and i love your addon as i love phpvms
Hi guys. I have not been on much the last couple of weeks and missed out on a bunch of conversation. Is this good to go with the latest phpVMS beta?
**EDIT**
Ok I’m a dork. I just re read the threads. I’ll be giving this a go tonight. Thanks for the great work you do to add to the phpVMS experience
I have it running on 808 - have not tried anything past that but it should be ok. Yes - writing your own tests is what it is all about. I just put a test in it to give an idea how it works.
So far this is great! I’m liking it very much. Can you tell me one quick thing please. I edited some things color wise to make it match my site better. I then went and closed the exam Center. The results were not so great.
I need to know where do I edit that info where the message is at. I want to center it up and put it inside of a table like when the center is open. Right now it is squeezed between my header and footer and it is situated to the left.
Like I said before, I am badly wanting to add that info into the Exam Center table in the center of my page. The answer is most likely right under my nose and I simply overlooked the obvious.
Here is a little hint…
If you use dreamweaver or similar, you normally have a search function to search for a text. In my case, i would copy that and search in the sourcecode of the core folder from phpvms. Then you will find it out. Only in this case, its a dynamic text which means you probably wont find it in any file as the text you see there. What you can do is, download mozilla + firebug and find out what the area is called there..
You will find out that its div id “error” which you can edit in the style.css in a row around 38.
Exams.php line 15 ->
echo '<div id="error">'.$message->value.'</div>';
Also - for those that have custom css files you need to have the following lines in your css in order for some of the backgrounds during the testing/approval process to render correctly ->
#error { border: 1px solid #FF0000; background: #FFCCDA; padding: 1px; text-align: center; }
#success { border: 1px solid #008020; background: #D8FFCC; padding: 1px; text-align: center; }
#pending { border: 1px solid #008020; background: #FFFF99; padding: 1px; text-align: center; }
Happy Coding
Thanks! I appreciate it. And yeah, I do use Dreamweaver. I however, do not have Firebug installed for FireFox. I forgot to reinstall it after a reformat of my PC. :-[
On another note, Is is safe to get rid of the lines like
emplate::Show('exam_list.tpl');
? Just curious. I have yet to figure out why they are there. I’m guessing it is for the testing and tweaking stage so we know what files do what?
Getting rid of lines that tell it what template to show will make it so nothing will display. You can change the file that it shows to match your template or just redo the existing one.
They will all be reformated to match the new version in the next release, like this ->
$this->show('exam_list.tpl');
but it will do the same thing.
Ah ok. Fair enough. It looks kind of goofy, but hey, the addon works a treat so far. I’m happy with it.
Exams.php line 15 ->
echo ‘
’.$message->value.‘’;Also - for those that have custom css files you need to have the following lines in your css in order for some of the backgrounds during the testing/approval process to render correctly ->
#error { border: 1px solid #FF0000; background: #FFCCDA; padding: 1px; text-align: center; }
#success { border: 1px solid #008020; background: #D8FFCC; padding: 1px; text-align: center; }
#pending { border: 1px solid #008020; background: #FFFF99; padding: 1px; text-align: center; }
Happy Coding
This fixed my issue from earlier on. Thanks!
I took the private pilot exam today and it was flawless. Worked great. later on tonight, I flew a flight and uploaded a pirep and recalculated everything in the control panel, and it gave me the money back that it took from me today to take the exam.
So if pilots pay, they get the money back on recalcs.
phpVMS Version 2.0.812
hmmmm. seems as though when a pirep is approved it doesnt just add the pay for that flight to the money in the pilot’s “bank” but recalculates all the pireps… I will have to find some kind of work around, probably going to end up being another table for the examcenter for pilot pay, with a listener for pireps…
As slick as it is working now, I’m more than sure you will find a easy fix I just happened to notice that last night and I knew it had to be brought up. I had another guy testing it all out today on my site and he likes it as well. I’m thinking this is going to go over very well on my site once I open it up public.
Thanks again for your hard work. It is appreciated.
by the way how is it going on with the script? any news about that “application exam” ?
by the way how is it going on with the script? any news about that “application exam” ?
Gotten side tracked this week with a project at work, I should be back at it this weekend
Hiya, is this compatible with phpVMS 1.2.700? If not is there an easy fix to allow it to work with it?
Hiya, is this compatible with phpVMS 1.2.700? If not is there an easy fix to allow it to work with it?
It will not function properly in 700 - it uses some functions that did not appear until around the 770 version. You could re-write most of the code to function but I think it would be easier to upgrade to the newer version when it comes out, or a beta now.
For error messages or success messages, do:
<?php
$this->set('message', 'some message');
// error
$this->render('core_error.tpl');
// success
$this->render('core_success.tpl');
Or the Template::Set()/Template::Show() equivalents
That keeps that standard across the other code, since those templates can be modified
hmmmm. seems as though when a pirep is approved it doesnt just add the pay for that flight to the money in the pilot’s “bank” but recalculates all the pireps… I will have to find some kind of work around, probably going to end up being another table for the examcenter for pilot pay, with a listener for pireps…
This I have to check. I think it was a quick workaround for what I was doing at the time. It shouldn’t be recalculating all the PIREPs though, that would be wrong. Also, any other issues let me know since I’m planning to release soon so I can take care of any issues or other hooks you might need.
simpilot, is there a release that you could make that would allow this to work on 1.2.700. As yes we could upgrade to BETA but alot of us prefer to wait till the official release is out.