Oxymoron290 Posted April 29, 2013 Report Share Posted April 29, 2013 Hey guys! Remember SimPilotGroup's Airmail Module available at https://github.com/D.../phpVMS-AirMail ? I've been doing a few additions to the module lately, specifically those we have set up as our milestones. (Viewable at https://github.com/D...sues/milestones ) With the most recent one being a contacts addition (Pull Request #6 https://github.com/D...-AirMail/pull/6 ) Here is a video demonstrating the new additions: This is already in production over at Wings on Air http://wingsonair.net ! Stay tuned for more updates to this module soon! A ton of thanks to SimPilotGroup for creating the original airmail module and making this neat little addition possible. Enjoy, Oxymoron290 Temprary Content: While we are waiting for SimPilot to evaluate and accept the pull request the download will not be available at his github, to get it while it's hot, download the source at https://github.com/O...l/tree/contacts (Because we all have a little hipster in us saying "I had an address book before it was even in the airmail module") 2 Quote Link to comment Share on other sites More sharing options...
warpennys Posted April 29, 2013 Report Share Posted April 29, 2013 Wunderful! Who wooda thunk it?! Good Job, Oxy! Quote Link to comment Share on other sites More sharing options...
BaRBeR Posted April 29, 2013 Report Share Posted April 29, 2013 Nice job Quote Link to comment Share on other sites More sharing options...
Toyuko Posted April 30, 2013 Report Share Posted April 30, 2013 Good job! Quote Link to comment Share on other sites More sharing options...
warpennys Posted May 1, 2013 Report Share Posted May 1, 2013 The source code can be found Here @ Github in the Files Changed Tab. If you are willing to assemble it and begin using it. You will need to copy the code from those pages referring to contacts. The file structure is as follows: core/common/ContactsData.class.php core/modules/Contacts/Contacts.php core/templates/contacts/contacts_home.tpl core/templates/contacts/view_contact.tpl You can get the info for the sql tables from Github. Before you can use this AirMail addition you must update AirMail 3.0 with the newest changes by Oxymoron. (information for that is here.) Keep in mind that we are constantly updating this new addon for AirMail. There will be more updates to it to include features like a mini buddy list you can put on the pilot pub profile and pull counts of how many contacts you have and blocked contacts you have. Also, there are option buttons that can be used on the pilot pub profile, like message, block, unblock. They are complete, but have not been posted yet. When Oxy has time they will be added to the source code. The links to create the buttons are as follows: site_url/contacts - view contacts site_url/contacts/blocked - blocked contacts site_url/contacts/add/PILOTID - add a contact site_url/contacts/remove/PILOTID - remove a contact site_url/contacts/block/PILOTID Fix the links to work with your site; <?php $contact = ContactsData::getContact($pilot->pilotid, Auth::$userinfo->pilotid); if($contact->blocked == 'Y'){ echo '<a href="'.SITE_URL.'/index.php/contacts/unblock/'.$pilot->pilotid.'">'; echo '<img height="30" src="'.SITE_URL.'/lib/skins/yoursite/images/pilot_pub_profile/unblock_pilot.png" title="Unblock Pilot" alt="Unblock Pilot" border="0" />'; echo '</a>'; }else{ if($contact == null){ echo '<a href="'.SITE_URL.'/index.php/contacts/add/'.$pilot->pilotid.'">'; echo '<img height="30" src="'.SITE_URL.'/lib/skins/yoursite/images/pilot_pub_profile/add_pilot.png" title="Add Pilot To Your Contacts" alt="Add Pilot" border="0" />'; echo '</a>'; echo '<a href="'.SITE_URL.'/index.php/contacts/block/'.$pilot->pilotid.'">'; echo '<img height="30" src="'.SITE_URL.'/lib/skins/yoursite/images/pilot_pub_profile/block_pilot.png" title="Block Pilot" alt="Block Pilot" border="0" />'; echo '</a>'; }else{ if($contact->blocked == 'N'){ echo '<a href="'.SITE_URL.'/index.php/contacts/remove/'.$pilot->pilotid.'">'; echo '<img height="30" src="'.SITE_URL.'/lib/skins/yoursite/images/pilot_pub_profile/remove_pilot.png" title="Remove Pilot From Your Contacts" alt="Remove Pilot as Contact" border="0" />'; echo '</a>'; } } } ?> Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted May 8, 2013 Report Share Posted May 8, 2013 Nice job! Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted July 3, 2013 Report Share Posted July 3, 2013 Any news on this little piece of work getting added or released by you guys? I was gonna try and make my way through the code as suggested a couple posts up but decided not to in anticipation of release. That is truly a nice add on for AirMail. Quote Link to comment Share on other sites More sharing options...
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.