Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. Hi, Caught a bug I think - I am using beta build 718 but I think it came from beta build 713. The registration form is inserting lower case letters into the database for the country location which makes the pilot profile show Afghanistan (the first country in the list) in the profile and such. Example - it inserts us instead of US into the location field in the pilots table. When I go into the db and edit it to uppercase the location and flag display properly.
  2. Good Luck On This One - I have not been able to figure it out yet ... ??? See threads below http://forum.phpvms.net/index.php?topic=951.0 http://forum.phpvms.net/index.php?topic=830.0
  3. From the profile module it is using: case 'view': $pilotid = $this->get->pilotid; if(preg_match('/^([A-Za-z]{3})(d*)/', $pilotid, $matches) > 0) { $pilotid = $matches[2]; } $userinfo = PilotData::GetPilotData($pilotid); Template::Set('userinfo', $userinfo); Template::Set('allfields', PilotData::GetFieldData($pilotid, false)); Template::Set('pireps', PIREPData::GetAllReportsForPilot($pilotid)); Template::Set('pilotcode', PilotData::GetPilotCode($userinfo->code, $userinfo->pilotid)); Template::Set('allawards', AwardsData::GetPilotAwards(Auth::$userinfo->pilotid)); Template::Show('pilot_public_profile.tpl'); break; And from the template for display: <strong>Awards</strong> <?php if(is_array($allawards)) { ?> <ul> <?php foreach($allawards as $award) { /* To show the image:*/?> <li><?php echo $award->name ?>&nbsp <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></li> <?php } ?> </ul> <?php } ?>
  4. The awards are showing in the public profile page for all pilots as well as in the pilot center when they are logged in. I have gone in and reset them all and the only one that will show is the first one in the list and it shows on all pilots even if it is not assigned to them. I have had to remove all awards for them not to show everywhere. Tried re-loading the beta and forced the update with no sucess... On the local development server here I went back and created a new site with beta 712 and the issue is not there, when I updated it to 713 it comes back. It must be something in the PilotData class I think, although I do not see a change in the file that would make it happen...
  5. Has anyone else had pilot awards start showing up for all pilots (even when they are not assigned an award) again after the last beta (rev 713) ? It started working correctly for me a few builds ago but now with this latest it has started acting up again...... ???
  6. You can call all the aircraft stats and populate an array using the code below: Template::Set('acstats', AircraftStats::getAircraftDetails()); You can replace "acstats" with whatever id you want for your array, then use the array however you wish. If you need the code to accomplish this pm me your email and I will send you the base code that you can skin.
  7. Is this what you are looking for... I have not completed the page layouts yet but let me know if the tables at the bottom is what you are looking for. I have built a module to get all this data out of the database using some of the classes that are already built in to phpVMS.... I can package it and email it you if the tables are what you are looking for. Fleet list -> http://www.simpilotgroup.com/newenglandair/index.php/Operations/fleet/ Fleet Stats -> http://www.simpilotgroup.com/newenglandair/index.php/Operations/aircraftstats/
  8. I had posted this same problem some time ago and the only way I can get it to center on the page is to remove the schedule frequency chart from the page. I have tried leaving it on the page and adjusting the related code around the chart with no success. If you find a solution, please post it...
  9. ;D - now working - reloaded files and ran update again - something must not have gone right the first time. THANKS for the fix!
  10. I uploaded the beta and ran the update as well as changed the name of the table row back to bidid before the update and front bids still does not work, I just get the "No bids are filed" returned. If I change the bidid name in the sql table it works again. Should I run the sql update individually?
  11. I got this to work on my site. ;D What I have found is that the newest beta update inserts a 20th row in the sql database table phpvms_schedules named bidid - the same as within the table phpvms_bids. I changed the name of the row 'bidid' in the table phpvms_schedules and the recent bids function came right back. Nabeel - what is the line 'bidid' in _schedules table used for? It has a small ammount of numerical data in it but it does not seem to match up to anything that I see right off. I imagine it is going to have to be renamed to avoid conflict with other functions as well. You can see it is working on the frontpage here - www.simpilotgroup.com/newenglandair
  12. Thanks Nabeel - That got it working ;D
  13. DOH! - That fixed it! ;D Many Thanks Nabeel - Keep up the good work! ...now off to see why recent bids won't show on the live site but work on the development server here.
  14. Ok - I re-uploaded the lateest beta and ran the update and here is what I get when I call a page that is looking for any kind of stats data.... ??? Fatal error: Class 'Statsdata' not found in /***********/newenglandair/lib/skins/NEVA_Custom_ver3.2/frontpage_leftnavbar.tpl on line 9 I have reverted back to the release version and everything comes back.
  15. I will do that - Should I run the install/update again?
  16. This what is being used - <a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname?></a>&nbsp&nbsp<img src="<?php echo SITE_URL?>/lib/images/countries/<?php echo $pilot->location?>.png"><br /> It is in a template for the left sidebar that is called up the same way in all the pages.
  17. yep - I let the ftp transfer overright all the files included in the beta. then used the install/update.php method and then get the error. when I upload my backup everything goes back to normal.
  18. I tried to upgrade to the latest beta to solve the awards issue with an award showing for all pilots but had to revert back to the release version due to getting the error "statsdataclass doesnt exist in......" on every page that shows any stats (pilot count, total hours, etc..) ???
  19. Ok - I'm Stumped... ??? I have added the pilot country flags to show next to the pilots name in the recent pilots list. It works fine on most of the pages of the site but on some pages the image does not show, just a place holder. Upon further investigation I have found that on the pages it does not show it has extra lines in the url.. example - on the front page - shows http://www.simpilotgroup.com/newenglandair/lib/images/countries/US.png'>http://www.simpilotgroup.com/newenglandair/lib/images/countries/US.png on the login page - no show http://www.simpilotgroup.com/newenglandair/newenglandair/lib/images/countries/US.png The sidebar is a template so the same code is being used on all the pages.... Is it a module issue? Also, it always produces the image name in caps which will not show the image, I have made a duplicate of the flag using caps and it shows fine but I do not want to have to create a duplicate for all the flags. Is there a way around this?
  20. You can create your own php pages and place them in the "Pages" folder and then call them through <your site>/index.php/Pages/yourpage, or that is what has worked for me. I have not tried the pages module in the admin center although I think that is designed for static pages versus pages that are calling functions and such. It is easy to create your own module as well and create new dynamic pages through that method. The great way Nabeel has designed this app makes it easy to add your own content.
  21. Thanks Nabeel - I have to say you have done a great job with phpVMS! I floundered around with a couple of other packages out there with little to no sucess but have enjoyed working with phpVMS and have learned a lot along the way. Keep up the good work!
  22. New England Virtual Air www.newenglandvirtual.com
  23. dug through the build log....... tried to modify usergroups.class.php and app.config.php and managed to destroy things pretty well here on the local development server.... : have created a new folder "admincbm" and modified the templates and such to just show what I want in the menu bar but when I call the folder it ends up going right back to the old admin folder and it's files. Guess I will wait for the next update.
  24. Is there a way to allow selective admin section log-ins? ie - allow a crew base manager to approve PIREPS but not get into the other functions of the admin panel. :
  25. I had no issues (that I know of) with cross browsers. With the map giving weird results, you have to place your map "center" location n the local.config file. Then to actually zoom you need to change the parameters in the acars.js file as shown prior, catch is... those numbers have to fit both the map window you are using as well as the map from google, hence the long extensions behind the decimal. These have to be calculated for your map if it is sized differently than the default VMS map.
×
×
  • Create New...