Jump to content

Heritage1

Members
  • Content count

    75
  • Joined

  • Last visited

Community Reputation

5 Neutral

2 Followers

About Heritage1

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    http://heritageva.net/hva

Profile Information

  • Gender
    Male
  • Location
    New Hampshire
  • Interests
    Camping,fishing,puppies,flying,simming,to much to list here.

Recent Profile Visitors

1861 profile views
  1. Live Map iFrame Not Working

    Suggest going to the Admin CP, and copy the text/script into a created page via "Add Page" in the admin panel, from the acars.php file. Name the page anything you'd like, (example; Myacars or SiteAcars ). this creates a formatted page in htm or html depending on how you have config files setup from the core. From there you can embed the created page you have created in the Main layout.php file or the frontpage_main.php file with the <iframe> script. As mentioned above, you Can't cross reference directly the framing from the actual script. This is the ONLY way to do so. And remember one Major important thing in messing with any Main scripts. ALWAYS make a backup COPY ! Hope this helps you. Jim
  2. Check if all pireps are accepted

    Yes there is One easy way I've come up with, if you go to this link below, and scroll down. You will see a map towards the bottom. Accepted, Rejected, Pending, with all info inregards to Aircraft, and much more . Plus the route on the Map for said PIREP. You will have to make some changes to the code I've provided in regards to point to YOUR server ICON's. I have pasted the Code Snippet for anyone who so desires to use this. Hurry up and go to the Link provided, as I am shutting down my Server as of Jan.2nd, 2018. So don't wait to long. Remember, this pirep map is at the bottom near the footer. On one note, I have reversed the airplane icon for those who don't understand coding to the phpvms default aircraft. And, I've attached the actual file for everyone. Enjoy ! Jim L. CEO Heritage VA The Link to view the PIREP Map ; http://heritageva.net/hva The Actual Code: <?php /* The following script below was used by the old timers from Heritage VA. This script of course is free to use by anyone. It is designed to work also with ANY Bootstrap system, and is 100% automated for ALL pireps recorded, including any staff members and Admins that fly. Sadly Heritage VA has closed, but we are still active with phpvms forums and will help in anyway possible to fellow members. We Hope you enjoy this little snippet, we did, and it looks awesome. Thank you all. And may God speed ! December 19th, 2017 */ ?> <!--SATELLITE REMARKED OUT FOR TERRAIN BELOW--> <div id="arrivals" style="width:94%; height: 680px"></div> <script type="text/javascript"> var MY_MAPTYPE_ID_2 = 'alaskamap'; <!--DO NOT CHANGE --> <!-- Snazzy Maps, can be changed to whatever you want @ snazzymaps site.--> var stylez_2 = [{"featureType":"all","elementType":"geometry","stylers":[{"hue":"#ff4400"},{"saturation":-68},{"lightness":-4},{"gamma":0.72}]},{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"hue":"#0077ff"},{"gamma":3.1}]},{"featureType":"landscape.natural.terrain","elementType":"geometry.fill","stylers":[{"visibility":"on"}]},{"featureType":"poi.park","elementType":"all","stylers":[{"hue":"#44ff00"},{"saturation":-23}]},{"featureType":"transit","elementType":"labels.text.stroke","stylers":[{"saturation":-64},{"hue":"#ff9100"},{"lightness":16},{"gamma":0.47},{"weight":2.7}]},{"featureType":"transit.line","elementType":"geometry","stylers":[{"lightness":-48},{"hue":"#ff5e00"},{"gamma":1.2},{"saturation":-23}]},{"featureType":"water","elementType":"all","stylers":[{"hue":"#00ccff"},{"gamma":0.44},{"saturation":-33}]},{"featureType":"water","elementType":"labels.text.fill","stylers":[{"hue":"#007fff"},{"gamma":0.77},{"saturation":65},{"lightness":99}]},{"featureType":"water","elementType":"labels.text.stroke","stylers":[{"gamma":0.11},{"weight":5.6},{"saturation":99},{"hue":"#0091ff"},{"lightness":-86}]}] var latlng = new google.maps.LatLng(<?php echo Config::Get('MAP_CENTER_LAT')?>,<?php echo Config::Get('MAP_CENTER_LNG')?>); var bounds = new google.maps.LatLngBounds(); bounds.extend(latlng); var center = bounds.getCenter(); var options = { center : center, backgroundColor : '#FFFFFF', streetViewControl : true, zoomControlOptions : { style : google.maps.ZoomControlStyle.SMALL }, minZoom : 2, mapTypeControlOptions : { mapTypeIds : [google.maps.MapTypeId.TERRAIN, MY_MAPTYPE_ID_2] }, mapTypeId : MY_MAPTYPE_ID_2 }; var styledMapOptions_2 = { name : "RoadMap" }; var map_2 = new google.maps.Map(document.getElementById("arrivals"), options); var alaskamap = new google.maps.StyledMapType(stylez_2, styledMapOptions_2); map_2.mapTypes.set(MY_MAPTYPE_ID_2, alaskamap); var flightMarkers_2 = []; var image = new google.maps.MarkerImage('<?php echo SITE_URL; ?>/lib/images/onground.png', <!--default phpvms,can be changed to what you want--> new google.maps.Size(32, 32), new google.maps.Point(0, 0), new google.maps.Point(5, 5)); var depmarker = []; var arrmarker = []; <?php $pirep_list = PIREPData::getRecentReportsByCount(20); $shown = array(); foreach($pirep_list as $pirep) { // Dont show repeated routes if(in_array($pirep->code.$pirep->flightnum, $shown)) { continue; } else $shown[] = $pirep->code.$pirep->flightnum; if(empty($pirep->arrlat) || empty($pirep->arrlng) || empty($pirep->deplat) || empty($pirep->deplng)) { continue; } ?> dep_location = new google.maps.LatLng( <?php echo $pirep->deplat ?> , <?php echo $pirep->deplng ?> ); arr_location = new google.maps.LatLng( <?php echo $pirep->arrlat ?> , <?php echo $pirep->arrlng ?> ); flightMarkers_2[flightMarkers_2.length] = new google.maps.Marker({ position : dep_location, map : map_2, icon : image, title : "<?php echo "$pirep->depname ($pirep->depicao)";?>" }); flightMarkers_2[flightMarkers_2.length] = new google.maps.Marker({ position : arr_location, map : map_2, icon : image, title : "<?php echo "$pirep->arrname ($pirep->arricao)";?>" }); depmarker[depmarker.length] = new google.maps.Marker({ position : dep_location, map : map_2, icon : new google.maps.MarkerImage( "http://chart.googleapis.com/chart?chst=d_text_outline&chld=80FF00|14|h|000000|b|<?php echo "$pirep->depicao";?>", null, null, new google.maps.Point(20, 22)) }); arrmarker[arrmarker.length] = new google.maps.Marker({ position : arr_location, map : map_2, icon : new google.maps.MarkerImage( "http://chart.googleapis.com/chart?chst=d_text_outline&chld=BC1A15|14|h|000000|b|<?php echo "$pirep->arricao";?>", null, null, new google.maps.Point(29, 19)) }); var flightPath_2 = new google.maps.Polyline({ path : [dep_location, arr_location], strokeColor : "#E68A01", strokeOpacity : 0.9, strokeWeight : 2, geodesic : true }).setMap(map_2); <?php } ?> if (flightMarkers_2.length > 0) { var bounds = new google.maps.LatLngBounds(); for (var i = 0; i < flightMarkers_2.length; i++) { bounds.extend(flightMarkers_2[i].position); } } map_2.fitBounds(bounds); </script> <?php $count = 20; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table class="sky_table" width="94%" cellspacing="0" border="1"> <tr> <th>Flight</th> <th>Pilot</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Duration</th> <th>V/S</th> <th>Status</th> </tr> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); $acrid = OperationsData::getAircraftByReg($pirep->registration); echo '<tr>'; echo '<td><button type="button" class="btn btn-default"><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td></button>'; echo '<td><button type="button" class="btn btn-default"><a href="'.SITE_URL.'/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</a></button></td>'; echo '<td>'.$pirep->depicao.'</td>'; echo '<td>'.$pirep->arricao.'</td>'; echo '<td><button type="button" class="btn btn-primary btn-sm"><span class="badge">'.$pirep->aircraft.'</td></span></button>'; echo '<td>'.$pirep->flighttime.'</td>'; echo '<td><button type="button" class="btn btn-danger btn-sm"><span class="badge">'.$pirep->landingrate.' ft/m</td></span></button>'; if($pirep->accepted == PIREP_ACCEPTED) echo '<td><button type="button" class="btn btn-success">Accepted</button></td>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<td><button type="button" class="btn btn-danger"><span class="label label-important"><font color="black">Rejected</font></span></button></td>'; elseif($pirep->accepted == PIREP_PENDING) echo '<td><button type="button" class="btn btn-warning"><span class="label label-warning"><font color="black">Pending</font></span></button></td>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<td>On Progress</td>'; echo '</tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> </tbody> </table> <div class="clear"></div> <div class="clear"></div> frontpage_map.zip
  3. New skin loads slow

    Well, I agree, with above, unless your Host company is UNLIMITED in Sql, bandwidth, etc......don't attempt multiple phpvms sites. I on the other hand am running 5 PHPVMS active sites, which you all know is shutting down very soon. It is most definately possible depending on your hosting company to run an unlimited amount of sites for phpvms. I have been doing it for a very very long time. Poke me buddy if you still need a hand, I have time if you want. Jim
  4. recaptcha

    Below is a script until you figure out whats going on with the Registration process, I HIGHLY recommend you rename your original Registration.php file to Registration.php.default first. Always back it up ! You can make duplicates of course while messing around with it. This Code bypasses the call for the Captcha script completely , I don't recommend it, but at least pilots will be able to register until your problem is solved, hope this helps. Jim class Registration extends CodonModule { public function HTMLHead() { /*Show our password strength checker */ if($this->get->page == 'register') { $this->renderTemplate('registration_javascript.tpl'); } } public function index() { //updated to Google noCaptcha 1/15 if(Auth::LoggedIn()) { // Make sure they don't over-ride it $this->render('login_already.tpl'); return; } if(isset($_POST['submit'])) { $this->ProcessRegistration(); } else { $this->ShowForm(); } } protected function ShowForm() { $field_list = RegistrationData::GetCustomFields(); $this->set('extrafields', $field_list); $this->set('field_list', $field_list); $airline_list = OperationsData::getAllAirlines(true); $this->set('allairlines', $airline_list); $this->set('airline_list', $airline_list); $hub_list = OperationsData::getAllHubs(); $this->set('allhubs', $hub_list); $this->set('hub_list', $hub_list); $country_list = Countries::getAllCountries(); $this->set('countries', $country_list); $this->set('country_list', $country_list); $this->render('registration_mainform.tpl'); } /** * Registration::ProcessRegistration() * * @return */ protected function ProcessRegistration() { // Yes, there was an error if(!$this->VerifyData()) { $this->ShowForm(); return; } $data = array( 'firstname' => $this->post->firstname, 'lastname' => $this->post->lastname, 'email' => $this->post->email, 'password' => $this->post->password1, 'code' => $this->post->code, 'location' => $this->post->location, 'hub' => $this->post->hub, 'confirm' => false ); if(CodonEvent::Dispatch('registration_precomplete', 'Registration', $_POST) == false) { return false; } $ret = RegistrationData::CheckUserEmail($data['email']); if($ret) { $this->set('error', Lang::gs('email.inuse')); $this->render('registration_error.tpl'); return false; } $val = RegistrationData::AddUser($data); if($val == false) { $this->set('error', RegistrationData::$error); $this->render('registration_error.tpl'); return; } else { $pilotid = RegistrationData::$pilotid; /* Automatically confirm them if that option is set */ if(Config::Get('PILOT_AUTO_CONFIRM') == true) { PilotData::AcceptPilot($pilotid); RanksData::CalculatePilotRanks(); $pilot = PilotData::getPilotData($pilotid); $this->set('pilot', $pilot); $this->render('registration_autoconfirm.tpl'); } else { /* Otherwise, wait until an admin confirms the registration */ RegistrationData::SendEmailConfirm($email, $firstname, $lastname); $this->render('registration_sentconfirmation.tpl'); } } CodonEvent::Dispatch('registration_complete', 'Registration', $_POST); // Registration email/show user is waiting for confirmation $sub = 'A user has registered'; $message = "The user {$data['firstname']} {$data['lastname']} ({$data['email']}) has registered, and is awaiting confirmation."; $email = Config::Get('EMAIL_NEW_REGISTRATION'); if(empty($email)) { $email = ADMIN_EMAIL; } Util::SendEmail($email, $sub, $message); // Send email to user $this->set('firstname', $data['firstname']); $this->set('lastname', $data['lastname']); $this->set('userinfo', $data); $message = Template::Get('email_registered.tpl', true); Util::SendEmail($data['email'], 'Registration at '.SITE_NAME, $message); $rss = new RSSFeed('Latest Pilot Registrations', SITE_URL, 'The latest pilot registrations'); $pilot_list = PilotData::GetLatestPilots(); foreach($pilot_list as $pilot) { $rss->AddItem('Pilot '.PilotData::GetPilotCode($pilot->code, $pilot->pilotid) . ' ('.$pilot->firstname .' ' . $pilot->lastname.')', SITE_URL.'/admin/index.php?admin=pendingpilots','',''); } $rss->BuildFeed(LIB_PATH.'/rss/latestpilots.rss'); } /* * Process all the registration data */ protected function VerifyData() { $error = false; /* Check the firstname and last name */ if($this->post->firstname == '') { $error = true; $this->set('firstname_error', true); } else { $this->set('firstname_error', ''); } /* Check the last name */ if($this->post->lastname == '') { $error = true; $this->set('lastname_error', true); } else { $this->set('lastname_error', ''); } /* Check the email address */ if(filter_var($this->post->email, FILTER_VALIDATE_EMAIL) == false) { $error = true; $this->set('email_error', true); } else { $this->set('email_error', ''); } /* Check the location */ if($this->post->location == '') { $error = true; $this->set('location_error', true); } else { $this->set('location_error', ''); } // Check password length if(strlen($this->post->password1) <= 5) { $error = true; $this->set('password_error', 'The password is too short!'); } else { $this->set('password_error', ''); } // Check is passwords are the same if($this->post->password1 != $this->post->password2) { $error = true; $this->set('password_error', 'The passwords do not match!'); } else { $this->set('password_error', ''); } if($error == true) { return false; } return true; } }
  5. Heritage VA is closing

    Sorry mischka , took so long to answer..... Expense is a Major one, and of course the lack of pilots recently. However, I will remain of course very active here on the Forums for sure. There is always someone new that needs a little help, we all know how that one goes....lol. Heritage has been around since the age of the Doe Doe Bird, hehehe, long time for sure. I think over 11 years now. We started off with just Forum Boards in FS98, and as time went on merged into all of the upgrades. We actually started with the flight sim called A.T.P. by Sublogic, ( lets see how good someones memory is ). As a Web Master on any Web Site, you can well understand the Time involved and the countless money it takes sometimes also. Well, I've decided to retire just a little bit from designing sites, and "ACTUALLY" start flying, (go figure lol ), As a retired Marine Real World Pilot, who can't fly anymore, Flight Sim is the next best thing for sure. And I've got some serious Bucks invested into Flight Control Systems for sure. Its time I started using them ! I would like to Thank Everyone here for all of your support throughout the years, I have a lot of friends here and enjoy everyone here. I as mentioned will remain very active here. I also would like to wish everyone a very Merry Christmas this year, and hope all of your Holidays are GREAT !!!! And again, thank you all for your support, and may God Speed !! On one quick note, I will be re-configuring universal Skins and will be posting a lot of my work here, when all is complete, and set for anyone's domain to use. Will take just a little time, but maybe some of you can use a new look etc.......All details will be posted with help files enclosed, and of course the requirements. Thanks All, and Peace to all ! some links of upcoming skins............... http://heritageva.net/hva http://heritageva.net/bbb http://heritageva.net/mpd All use PHPVMS ver.5.xx and php.ini version 5.3 (for the older modules, must have access to your cpanel / server) Jim Lyman CEO Heritage VA & Company.
  6. Heritage VA & Company is for Sale. I am NOT looking for a profit, just cover the costs, My Server is Unlimited all the way around. There are until Jan. 2nd, 2018, 3 Active PHPVMS sites running at the moment, below are the links for you to view them, register, and I will approve rights for you for you to view all of the work I've done. Each Skin is different and runs their own set of menu's, along with other features. Bandwidth= "Unlimited" / Databases=MySqL or MySqLlite "Unlimited" / Drive space="unlimited" Many other features also in the control panel of the Host/Server. I use iPage for a hosting company. Here are the Links; http://heritageva.net/hva http://heritageva.net/mpd http://heritageva.net/bbb There are more sites installed of course in the Server, such as a dedicated Forum Board, MyFAQ Center, and more. Let me know, and here is my email ; jimbonewhampshire@yahoo.com Jim Lyman CEO Heritage VA & Company
  7. Heritage VA is closing

    Wow, thanks guys, means a whole lot to me, I have some great friends here for sure, thank you. Jimbo
  8. We will be closing, but I will still be involved with phpvms, and I am looking to fly for another Airline, would love some invites, its been real and thank you so much, I will still be around lol. Jungle Jimbo
  9. New Log/Acars Software APVacars

    Long time is right, curious if you have it fixed yet, if not, one major problem is the script line, you can't have <html> and <body> first of all on the same call line. 2 different animals. 2nd, the type=/text is totally wrong, and it also needs its own call such as this for example; <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css"> ( see how the type="text/css"> is called?? this applies to most everything in the <head> example </head> ONLY area, before the closing of the head of course. Much more on this, but let me know if you need help Jim
  10. Live flight tracker fault.

    its all about your Sql database make sure its writing..... let me know if you need help
  11. vacentral news

    Same here, my Server is unlimited, let me know if you need a backup plan etc....
  12. Front Page Help

    Looks very good to me, What exactly are you trying to change?? Also it looks like your using an HTML5 Carousel Slider which obviously has been incorporated into PHP. You need to find the the carousel script usually in the layout.php, hopefully its NOT in the frontpage_main.php file. All images through have got to point to wherever you photos live, being a simple carousel all you need to do is to change the image sizes, however, they all need to be EXACTLY the same size ! hope this helps, and let me know exactly what your trying to do. Jimbo
  13. Drop Down Menus

    Ah yes, thee ol menu series continues, I've created a super easy menu system for all newbies, below is the coding, play around with it, I use it in 2 of my phpvms sites. Here ya go; <!--START NEW MENU SCRIPT FOR HEAD universal with the newest bootsrap.css and bootstrap.js which are included with this skin DON"T replace them please --> <style> /* MUST BE in <head> This will run also without bootstrap on any skin */ .dropbtn { background-color: #378682; /* you may change colors,font sizes etc.Always back things up,you may remark out if you don't want this menu system */ color: white; padding: 14px; font-size: 14px; border: none; cursor: pointer; min-width: 200px; } .dropdown { position: relative; display: inline-block; } .dropdown-content { display: none; position: absolute; background-color: #AFCFCD; min-width: 290px; box-shadow: 0px 28px 28px 8px rgba(0,140,12,0.2); z-index: 1; } .dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block; } .dropdown-content a:hover {background-color: #DCDCDC} .dropdown:hover .dropdown-content { display: block; } .dropdown:hover .dropbtn { background-color: #42757E; } </style> <!--======= END Menu script for top of headder <head> =====--> <div id="collapse2z-Three" class="accordion-body collapse"> <div class="panel-body"> <div class="row"> <div class="col-md-12"> <h4 class="no-margin no-padding">Menu #1 System</h4> <div align="left"> div class="dropdown"> <!-- replace below scripting with your stuff/site menus --> <button class="dropbtn">Operations</button> <div class="dropdown-content"> <a href="<?php echo url('/pilots') ?>">Pilot Roster</a> <a href="<?php echo url('/acars') ?>">ACARS Live Map</a> <a href="<?php echo url('/departuretv'); ?>">Airport Monitor</a> <a href="<?php echo url('/toppilot') ?>">Top Pilot</a> <a href="<?php echo url('/touchdownstats') ?>">Touch Down Stats</a> <?php if(Auth::LoggedIn()) { ?> <a href="<?php echo url('/logout'); ?>">Logout</a> <?php } else { ?> <a href="<?php echo url('/registration'); ?>">Sign Up</a> <a href="<?php echo url('/login'); ?>">Login</a> <?php } ?> <a href="<?php echo url('/hub'); ?>">Our Hubs</a> <a href="<?php echo url('/Fleet'); ?>">Our Fleet</a> </div> </div> <div class="dropdown"> <button class="dropbtn">Dropdown</button> <div class="dropdown-content"> <a href="#">Link 1</a> <a href="#">Link 2</a> <a href="#">Link 3</a> </div> </div> <div class="dropdown"> <button class="dropbtn">Dropdown</button> <div class="dropdown-content"> <a href="#">Link 1</a> <a href="#">Link 2</a> <a href="#">Link 3</a> </div> </div> <div class="dropdown"> <button class="dropbtn">Dropdown</button> <div class="dropdown-content"> <a href="#">Link 1</a> <a href="#">Link 2</a> <a href="#">Link 3</a> </div> </div> <div class="dropdown"> <button class="dropbtn">Dropdown</button> <div class="dropdown-content"> <a href="#">Link 1</a> <a href="#">Link 2</a> <a href="#">Link 3</a> </div> </div> <div class="dropdown"> <button class="dropbtn">Dropdown</button> <div class="dropdown-content"> <a href="#">Link 1</a> <a href="#">Link 2</a> <a href="#">Link 3</a> </div> </div>
  14. login redirect

    Yeh I think Parkho is right, beaware of any hosting company, especially a paid host, they have a habit of upgrading your php version. Long story short, you need to be running a PHP version of 5.3 as the php.ini file on the server is far different then the latest versions. This "WILL" screw things up with any PHPVMS 5.5x you are running, including All Modules. Get a hold of your Hosting company and check on that, hope this helps you ! Jimbo
  15. Developing Custom Pages/Modules and MVC

    Outstanding, very well done, thanks
×