AIRMail Beta 2.1

DAMN! I double posted, must’ve got sidetracked when I read Jeff and Dave’s response from last week (don’t I feel stupid). Anyways, it fixed it. Thanks guys.

DAMN! I double posted, must’ve got sidetracked when I read Jeff and Dave’s response from last week (don’t I feel stupid). Anyways, it fixed it. Thanks guys.

Well glad to hear you got it all solved.

I’ve got a quick question, and it may be because I’m kind of a noob when it comes to phpvms (although I have a decent amount of knowledge with php). When I add the code:

MainController::Run('Mail', 'checkmail');

to the Pilot Center, it put’s a <center> tag around it. For the life of me, I cannot find what is doing this. I don’t want it centered. Any ideas?

Thanks.

EDIT: Got it. It was “hidden” in mail_check.tpl

it says the module mail was not found?

it says the module mail was not found?

Reupload your files. Keep the file structure intact. It will work. I have been using airmail since Simpilot released it.

After all these months I just noticed that when I send a new message out, it shows me two airmail tables. Does anyone else have any problems at all with duplicate tables? And example of what I am talking about is the same thing that was happening with the piulots page on the ObsessBlue template. And that is the one that I use. However, I have removed all of the Java off of that page and everything elsde that was causing the heart ache on the pilots page with ObsessBlue.

I’ll grab a screenie and come back and show you…Tonight or tomnorrow. It is late and I got 5 hours to sleep and get up and go to work.

have a great night fellas.

Ray

and

Please keep in mind that before I send a new message, there is 1 and only 1 airmail table on that page. After send, there is 2 just like you see here.

Sorry edited out content that was not needed.

No one else have this issue? I have heavily modified the code with this module, but nothing that should make it appear twice like the pilots list on ObsessBlue.

I have not seen it before Ray. Is the airmail sent twice in the database? If it is I would guess something in the module has gotten altered. If it is only sent once and the table is displayed twice I would lean to the templates more.

No one else have this issue? I have heavily modified the code with this module, but nothing that should make it appear twice like the pilots list on ObsessBlue.

Yeah, it happens to me when I send a NOTAM and when I click “refresh” it goes back to normal. I haven’t edited the module at all. I was never troubled with it so I never asked for help.

It must be something in the function calls in the module then. I will look through and see if I can find it.

Ok I was beginning to wonder. I have checked all my code until I was blue in the face and went and looked at all the template edits and all and everything looked good.

And yes this is the only time I see it happen is when a NOTAM is sent out. I just sent a test mail to my girlfriends pilot account she uses and it don’t happen. Then I posted a NOTAM immediately after and there it was.

Thanks for confirming this for me. I was beginning to pull my hair out on this one. I am real surprised this went on this long without getting reported. I noticed it some time back but thought the problem was from me modifying the templates so much.

Replace the contents of your Mail.php file in core/modules/Mail/ with this. I changed a few things around the NOTAM option. You should only see the table once now.

Pastebin -> http://pastebin.com/NTRTrVSD

1 Like

I replaced said code with code from pastebin and still get tow tables after sending a NOTAM. I looked at my database and it is only being written once. And I went and checked my inbox after sending NOTAMS and I only got 1 copy of the NOTAM.

I will go ahead and do a virgin phpVMS install and put airmail on it and test it on that and see if I still get this error or if it is only on custom skins.

It is confirmed. It does the very same thing on a virgin install of phpVMS.

Replace the contents of mail.php in the module folder with this, I just tested it and it does not duplicate the table when sending a NOTAM.

Pastebin -> http://pastebin.com/nF6dtZcS

1 Like

AS usual Simpilot, you come through again. Nice job and a very big thank you! Works a treat.

Way to be guys, neg posts trying to help. Gotta love it.

1 Like

Negative posts? Someone dropping your Karma down? I’m more than glad you got this little error fixed and straight and really appreciate it as I do appreciate all of your addons and contributions to phpVMS.

Thanks again.

Ray

Where ever i add <?php MainController::Run(‘Mail’, ‘checkmail’); ?> it just has a mind of its own.

The “You have no new mail” just wants to float to the right even though the rest of the code is to the left, im not a coder can anybody help me?

http://www.easternairwaysvirtual.co.uk/eva/index.php