Administrators Nabeel Posted October 15, 2009 Administrators Report Posted October 15, 2009 That might be because of a few bugs and kinks on my part, I will try your code out soon. Edit: This should be working with the latest betas, error fixed on my side Quote
RogerB Posted October 19, 2009 Report Posted October 19, 2009 I was thinking for this module, it would be nice to have a notifier when you log in you get some sort of notification. Quote
TAV1702 Posted October 19, 2009 Report Posted October 19, 2009 I was thinking for this module, it would be nice to have a notifier when you log in you get some sort of notification. That would be pretty sweet. Quote
Administrators simpilot Posted October 19, 2009 Author Administrators Report Posted October 19, 2009 was thinking for this module, it would be nice to have a notifier when you log in you get some sort of notification. That would be pretty sweet. There is a function that has been built into the module to let a member know how many unopened airmail items there are waiting for him. it is about 2/3 of the way down on page 3 of this thread (Unread AIRmail items function). you can use that to return a value for unread items. If you wanted to do more with it, like images and such you could use an if statement in your template - something like if $variable >0 then show mail image notification.... I have been meaning to update this to a final version but have gotten sidetracked on some other projects, mainly a vatsim module to show live data within phpvms. With Nabeel's help I got that accomplished today so hopefully I can get Airmail done this week. Quote
jantorre Posted October 19, 2009 Report Posted October 19, 2009 Great! Virtual Norwegian will go live with phpVMS next weekend so will add this great module to the site. (starting with a basic template, working on something better) Im a big fan of youre modules and skins! Thank you Quote
TAV1702 Posted October 19, 2009 Report Posted October 19, 2009 There is a function that has been built into the module to let a member know how many unopened airmail items there are waiting for him. it is about 2/3 of the way down on page 3 of this thread (Unread AIRmail items function). you can use that to return a value for unread items. If you wanted to do more with it, like images and such you could use an if statement in your template - something like if $variable >0 then show mail image notification.... I have been meaning to update this to a final version but have gotten sidetracked on some other projects, mainly a vatsim module to show live data within phpvms. With Nabeel's help I got that accomplished today so hopefully I can get Airmail done this week. That's great news. I don't know how I missed that when I read this thread to begin with. DOH! As well, I found a few other fixes I needed too. :-[ One more quick thing, is there any way to show the messages in ones in box and sent box in the order of new on top to oldest on bottom? If not, I may see if sort order script can work for this request. Quote
TAV1702 Posted October 19, 2009 Report Posted October 19, 2009 I did an embed in my header with this code <?php if(!Auth::LoggedIn()) { //Show this if the pilot is not logged in } else { ?> <strong>Welcome back <?php echo $userinfo->firstname . ' ' . $userinfo->lastname; ?>!</strong> You Have <?php MainController::Run('Mail', 'checkmail', '') ?> Unread AIRmail Items <?php } ?> And it works great as far as showing how many unread messages a person has. I took it one step further to make it more personal and welcome the pilot as well, but it refuses to show my pilots name. Is my code wrong? I borrowed the function from the profile page where it welcomes the user. This is what it tells me Welcome back ! You Have 1 Unread AIRmail Items It does not put my name after the welcome back part. Quote
Administrators simpilot Posted October 20, 2009 Author Administrators Report Posted October 20, 2009 Try this <?php if(!Auth::LoggedIn()) { //Show this if the pilot is not logged in } else { ?> <strong>Welcome back <?php echo Auth::$userinfo->firstname . ' ' . Auth::$userinfo->lastname; ?>!</strong> You Have <?php MainController::Run('Mail', 'checkmail', '') ?> Unread AIRmail Items <?php } ?> Quote
Administrators simpilot Posted October 20, 2009 Author Administrators Report Posted October 20, 2009 AIRMail beta2 now available here -> http://forum.phpvms.net/topic/1421-airmail-beta-21/ Quote
TAV1702 Posted October 20, 2009 Report Posted October 20, 2009 Thanks a million! That worked a treat. And for the beta, do we just over write our current files? Obviously with a backup first. Quote
Administrators simpilot Posted October 20, 2009 Author Administrators Report Posted October 20, 2009 Thanks a million! That worked a treat. And for the beta, do we just over write our current files? Obviously with a backup first. Yes - overwrite everything - also replace the table in the database - there were signifigant changes to it in this version Quote
stuartpb Posted February 7, 2010 Report Posted February 7, 2010 Got this working on my site, it's perfect thanks Cheers, Stu Quote
Tom Posted June 2, 2010 Report Posted June 2, 2010 This has been released now.. notice the last post was in February? Quote
TheBulk Posted June 6, 2010 Report Posted June 6, 2010 Please ignore this post, posted in wrong place and was unable to delete post Quote
mynameiskhan Posted July 2, 2010 Report Posted July 2, 2010 can some body help me plz i am getting this error when try to login to AIRmail page. Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Mail::inbox' was given in /home/ahmad/public_html/virtualairblue/core/classes/MainController.class.php on line 218 waiting for some good help and one more question where exactly we have to put mailimages folder............. regards irfan khan http://www.vpia.org/virtualairblue/index.php Quote
Administrators simpilot Posted July 2, 2010 Author Administrators Report Posted July 2, 2010 can some body help me plz i am getting this error when try to login to AIRmail page. Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Mail::inbox' was given in /home/ahmad/public_html/virtualairblue/core/classes/MainController.class.php on line 218 waiting for some good help and one more question where exactly we have to put mailimages folder............. regards irfan khan http://www.vpia.org/virtualairblue/index.php If you downloaded the files from this thread and are running vms ver 2.x it will not run, which I believe is what you have at this point. The link to AIRMail 2.x is a few posts up on this page. Delete everything for AIRMail 1.0 and install the 2.x version. Quote
Guest Stephen Collopy Posted September 27, 2010 Report Posted September 27, 2010 I'm interested in helping you for Air France Virtual. http://afr.simairlines.com/ You can email me at: airfrance_ceo@simairlines.com Quote
Administrators simpilot Posted September 28, 2010 Author Administrators Report Posted September 28, 2010 The beta has been out for some time, version 2.0 is available in this forum. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.