Jump to content

ProSkyDesign

Moderators
  • Posts

    207
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ProSkyDesign

  1. I want to teach you about it, how can I contact you?
  2. can you send me the details to jose.bustos@proskydesign.com?
  3. Nice, I'm waiting for the update ! Laravel is a good and comfortable framework. Don't you have a release date yet?
  4. on image put right click and copy the image link, paste here pls
  5. Parkho has a module for that: https://github.com/parkho/Aviation-Weather-V1.0
  6. send me a P.M, I can help you
  7. 1.- http://php.net/ 2.-Online courses 3.-Books
  8. Servetas, he didn't ask for that, he only want center the content with a class (CSS) lol.
  9. you're welcome ! I guess instead of make a discussion about how mvc works better, we can work to give to Imanol a solution, guys. No problem servetas but tell me: which of them will make more changes in the phpvms's default syntaxes? Which of them is easier and faster? I guess put an image in the top of site with module won't affect in the normal function of phpvms.
  10. it should work: <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <section class="page-contents"> <div class="container"> <h3><i class="fa fa-users" fa-lg"></i> <?php echo $title?></h3> <?php if(!$pilot_list) { echo 'There are no pilots!'; return; } ?> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="sky_table"> <thead> <tr> <th>Pilot ID</th> <th>Name</th> <th>Rank</th> <th>Flights</th> <th>Hours</th> </tr> </thead> <tbody> <?php foreach($pilot_list as $pilot) { /* To include a custom field, use the following example: <td> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> </td> For instance, if you added a field called "IVAO Callsign": echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); */ // To skip a retired pilot, uncomment the next line: //if($pilot->retired == 1) { continue; } ?> <tr> <td width="1%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </td> <td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td> <td><?php echo $pilot->totalflights?></td> <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td> </tr> <?php } ?> </tbody> </table> </div> </section> If it no, send me a pm pls.
  11. Sure, but other way is break the hub separation (loop) and include the image in the template. Some people don't wannna break that division. I'm agree with you but not at all. We should avoid that when there is other solution or when the solution cause conflict with the syntaxe or more.
  12. add the image in the Pilot module, no in the template. (spanish: añade la imagen en el módulo, no en la plantilla para evitar el ciclo y así no se repetirá) <?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class Pilots extends CodonModule { public $title = 'Pilots'; /** * Pilots::index() * * @return */ public function index() { ?> // Image here <img src="" alt="" /> <?php // Get all of our hubs, and list pilots by hub $allhubs = OperationsData::GetAllHubs(); if(!$allhubs) $allhubs = array(); foreach($allhubs as $hub) { $this->set('title', $hub->name); $this->set('icao', $hub->icao); $pilot_list = PilotData::findPilots(array('p.hub'=>$hub->icao)); $this->set('allpilots', $pilot_list); # deprecated $this->set('pilot_list', $pilot_list); $this->render('pilots_list.tpl'); } $nohub = PilotData::findPilots(array('p.hub'=>'')); if(!$nohub) { return; } $this->set('title', 'No Hub'); $this->set('icao', ''); $this->set('allpilots', $nohub); # deprecated $this->set('pilot_list', $nohub); $this->render('pilots_list.tpl'); } /** * Pilots::reports() * * @param string $pilotid * @return */ public function reports($pilotid='') { if($pilotid == '') { $this->set('message', 'No pilot specified!'); $this->render('core_error.tpl'); return; } $pirep_list = PIREPData::GetAllReportsForPilot($pilotid); $this->set('pireps', $pirep_list); # deprecated $this->set('pireps_list', $pirep_list); $this->render('pireps_viewall.tpl'); } /* Stats stuff for charts */ /** * Pilots::statsdaysdata() * * @param mixed $pilotid * @return */ public function statsdaysdata($pilotid) { $data = PIREPData::getIntervalDataByDays(array('p.pilotid'=>$pilotid), 30); $this->create_line_graph('Past 30 days PIREPs', $data); } /** * Pilots::statsmonthsdata() * * @param mixed $pilotid * @return */ public function statsmonthsdata($pilotid) { $data = PIREPData::getIntervalDataByMonth(array('p.pilotid'=>$pilotid), 3); $this->create_line_graph('Monthly Flight Stats', $data); } /** * Pilots::statsaircraftdata() * * @param mixed $pilotid * @return */ public function statsaircraftdata($pilotid) { $data = StatsData::PilotAircraftFlownCounts($pilotid); if(!$data) $data = array(); include CORE_LIB_PATH.'/php-ofc-library/open-flash-chart.php'; $d = array(); foreach($data as $ac) { OFCharts::add_data_set($ac->aircraft, floatval($ac->hours)); } echo OFCharts::create_pie_graph('Aircraft Flown'); } /** * Pilots::create_line_graph() * * @param mixed $title * @param mixed $data * @return */ protected function create_line_graph($title, $data) { if(!$data) { $data = array(); } $bar_values = array(); $bar_titles = array(); foreach($data as $val) { $bar_titles[] = $val->ym; $bar_values[] = floatval($val->total); } OFCharts::add_data_set($bar_titles, $bar_values); echo OFCharts::create_area_graph($title); } /** * Pilots::RecentFrontPage() * * @param integer $count * @return */ public function RecentFrontPage($count = 5) { $pilot_list = PilotData::getLatestPilots($count); $this->set('pilots', $pilot_list); $this->set('pilot_list', $pilot_list); $this->render('frontpage_recentpilots.tpl'); } }
  13. Hi i can do it, can you mail me at jose.bustos@proskydesign.com?
  14. For use Look Up function you should add this in core/local.confing.php Config::Set('AIRPORT_LOOKUP_SERVER', 'phpvms'); Config::Set('PHPVMS_API_SERVER', 'http://api.vacentral.net'); Config::Set('PHPVMS_NEWS_FEED', 'http://feeds.feedburner.com/phpvms'); Config::Set('VACENTRAL_NEWS_FEED', 'http://feeds.feedburner.com/vacentral'); Config::Set('GEONAME_API_SERVER', 'http://ws.geonames.org');
  15. Hi, try adding this: <div class="sky-postcontent sky-postcontent-0 clearfix"> <div class="sky-content-layout"> <div class="sky-content-layout-row"> <!-- Your content here ============================================= --> </div> </div> </div>
  16. Try this: <img src="<?php echo SITE_URL; ?>/staff_photos/<?php echo $staff->picturelink; ?>" alt="<?php echo $staff->firstname; ?>">
  17. Open .htaccess and add this: RewriteEngine On RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$ RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301] and edit core/local.config.php in SITE_URL in stead of http://tiwil.tk/phpvms/ put http://www.tiwil.tk/phpvms/ Regarding jquery error is cause about a conflict with the jquery of phpvms and with the version of the jquery of your template. That errors could bring problems with the "No route passed", bid deletion, search flights, etc.
  18. 1.-jquery conflict 2.-To open the page with www, you should edit the local.config (add www. in SITE_URL) and add a rewrite condition to .htaccess
  19. The best option is put these information in profile_main. You should edit the core/modules/Frontpage/Frontpage.php replace with this: <?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ * @package module_frontpage */ class Frontpage extends CodonModule { public $title = 'Welcome'; public function index() { $this->set('usersonline', StatsData::UsersOnline()); $this->set('guestsonline', StatsData::GuestsOnline()); $this->set('pilotcode', PilotData::getPilotCode($pilot->code, $pilot->pilotid)); $this->set('report', PIREPData::getLastReports($pilot->pilotid)); $this->set('nextrank', RanksData::getNextRank($totalhours)); $this->set('allawards', AwardsData::getPilotAwards($pilot->pilotid)); $this->set('userinfo', $pilot); $this->set('pilot', $pilot); $this->set('pilot_hours', $totalhours); $this->render('frontpage_main.tpl'); } }
  20. mail me jose.bustos@proskydesign.com
  21. Hi I sent you an e-mail contact me at jose.bustos@proskydesign.com please.
×
×
  • Create New...