in2tech Posted January 2, 2017 Report Share Posted January 2, 2017 Try this: <td align="center"><img src="<?php echo RanksData::getRankImage($pilot->rank);?>" alt="<?php echo $pilot->rank;?>" /></td> Quote Link to comment Share on other sites More sharing options...
mattsmith Posted January 2, 2017 Report Share Posted January 2, 2017 No Change Quote Link to comment Share on other sites More sharing options...
web541 Posted January 2, 2017 Report Share Posted January 2, 2017 Can you post your code for the table so we can take a look, but inspecting, it seems that you don't have a source for you image In other words, this is what you have <img src="" alt="Captain"> And you need to have this <img src="have something in this field" alt="Captain"> So there might be something going on, jnascar's post looks correct Quote Link to comment Share on other sites More sharing options...
Strider Posted January 2, 2017 Author Report Share Posted January 2, 2017 There seems to be a problem I need to work out. Quote Link to comment Share on other sites More sharing options...
rafaeletras Posted January 15, 2017 Report Share Posted January 15, 2017 (edited) Hello , I did every steps on installation guide but I have a problem I have the simspilot phpvms every file is .php'' Notice: The template file "/home/u147302258/public_html/v2/core/templates/hub/hubview.php" doesn't exist in /home/u147302258/public_html/v2/core/classes/TemplateSet.class.php on line 231 '' And I have the same problem on the admin page Best Regards Air Corsica Virtuel CEO Edited January 15, 2017 by rafaeletras Quote Link to comment Share on other sites More sharing options...
OWA001 Posted January 20, 2017 Report Share Posted January 20, 2017 Hey many thanks, the module works very well, can you add the information (a text box) for additional airport information? Thank you again Quote Link to comment Share on other sites More sharing options...
Angel Air Posted March 22, 2017 Report Share Posted March 22, 2017 Is there any way of displaying the schedules for a specific Hub? Thanks Scott Quote Link to comment Share on other sites More sharing options...
web541 Posted March 22, 2017 Report Share Posted March 22, 2017 Try using this <?php $dep_schedules = SchedulesData::findSchedules(array('depicao' => $hubs->icao)); foreach($dep_schedules as $sched) { echo $sched->code.$sched->flightnum.' | '.$sched->depicao.' - '.$sched->arricao; echo '<br />'; } $arr_schedules = SchedulesData::findSchedules(array('arricao' => $hubs->icao)); foreach($arr_schedules as $sched) { echo $sched->code.$sched->flightnum.' | '.$sched->depicao.' - '.$sched->arricao; echo '<br />'; } ?> You can then format it how you would like in your template. Quote Link to comment Share on other sites More sharing options...
Angel Air Posted March 23, 2017 Report Share Posted March 23, 2017 21 hours ago, web541 said: Try using this <?php $dep_schedules = SchedulesData::findSchedules(array('depicao' => $hubs->icao)); foreach($dep_schedules as $sched) { echo $sched->code.$sched->flightnum.' | '.$sched->depicao.' - '.$sched->arricao; echo '<br />'; } $arr_schedules = SchedulesData::findSchedules(array('arricao' => $hubs->icao)); foreach($arr_schedules as $sched) { echo $sched->code.$sched->flightnum.' | '.$sched->depicao.' - '.$sched->arricao; echo '<br />'; } ?> You can then format it how you would like in your template. Thank you for this, I have just got to find where to edit the table now Quote Link to comment Share on other sites More sharing options...
web541 Posted March 23, 2017 Report Share Posted March 23, 2017 2 hours ago, Angel Air said: I have just got to find where to edit the table now In case you are in need of inspiration <h3>Departure Schedules</h3> <br /> <table> <thead> <tr> <th>Flight Number</th> <th>Departure Airport</th> <th>Arrival Airport</th> <th>Flight Time</th> </tr> </thead> <tbody> <?php $dep_schedules = SchedulesData::findSchedules(array('depicao' => $hubs->icao)); foreach($dep_schedules as $sched) { ?> <tr> <td><?php echo $sched->code.$sched->flightnum; ?></td> <td><?php echo $sched->depicao; ?></td> <td><?php echo $sched->arricao; ?></td> <td><?php echo $sched->flighttime; ?>hrs</td> </tr> <?php } ?> </tbody> </table> <br /> <h3>Arrival Schedules</h3> <br /> <table> <thead> <tr> <th>Flight Number</th> <th>Departure Airport</th> <th>Arrival Airport</th> <th>Flight Time</th> </tr> </thead> <tbody> <?php $arr_schedules = SchedulesData::findSchedules(array('arricao' => $hubs->icao)); foreach($arr_schedules as $sched) { ?> <tr> <td><?php echo $sched->code.$sched->flightnum; ?></td> <td><?php echo $sched->depicao; ?></td> <td><?php echo $sched->arricao; ?></td> <td><?php echo $sched->flighttime; ?>hrs</td> </tr> <?php } ?> </tbody> </table> Quote Link to comment Share on other sites More sharing options...
Angel Air Posted March 25, 2017 Report Share Posted March 25, 2017 Thank you web541, Works great it was exactly what I was wanting. Scott Quote Link to comment Share on other sites More sharing options...
natcret Posted March 31, 2017 Report Share Posted March 31, 2017 On 3/22/2017 at 4:15 PM, web541 said: Try using this <?php $dep_schedules = SchedulesData::findSchedules(array('depicao' => $hubs->icao)); foreach($dep_schedules as $sched) { echo $sched->code.$sched->flightnum.' | '.$sched->depicao.' - '.$sched->arricao; echo '<br />'; } $arr_schedules = SchedulesData::findSchedules(array('arricao' => $hubs->icao)); foreach($arr_schedules as $sched) { echo $sched->code.$sched->flightnum.' | '.$sched->depicao.' - '.$sched->arricao; echo '<br />'; } ?> You can then format it how you would like in your template. Will apologize upfront, however this is rather confusing. Is this code specifically for use with the Hub Module or is this referencing somewhere else? Regards, Nat Quote Link to comment Share on other sites More sharing options...
natcret Posted March 31, 2017 Report Share Posted March 31, 2017 On 1/2/2017 at 4:44 PM, jnascar said: Try this: <td align="center"><img src="<?php echo RanksData::getRankImage($pilot->rank);?>" alt="<?php echo $pilot->rank;?>" /></td> This worked for me. Quote Link to comment Share on other sites More sharing options...
web541 Posted March 31, 2017 Report Share Posted March 31, 2017 2 hours ago, natcret said: Will apologize upfront, however this is rather confusing. Is this code specifically for use with the Hub Module or is this referencing somewhere else? Yes, this is specifically for the hub module. Check this post Put that in the hubview.tp/.php file Quote Link to comment Share on other sites More sharing options...
natcret Posted April 1, 2017 Report Share Posted April 1, 2017 Copy that. Thanks! Quote Link to comment Share on other sites More sharing options...
gio1961 Posted June 7, 2019 Report Share Posted June 7, 2019 Hi guys, someone at the updated version for phpvms 5.5.2? Thank you Quote Link to comment Share on other sites More sharing options...
Lausitzaircargo Posted March 29, 2020 Report Share Posted March 29, 2020 Hello Guys, have anybody fix them to bring the Leaflet Maps working? I don´t find anything about that. Cheers Quote Link to comment Share on other sites More sharing options...
SmarticleCo Posted May 24, 2020 Report Share Posted May 24, 2020 How would I get the pilot roster for a hub displayed on a front end page? Thanks Quote Link to comment Share on other sites More sharing options...
Strider Posted May 29, 2020 Author Report Share Posted May 29, 2020 I don't quite understand what you mean? phpvms by default puts the roster into hubs and shows them. This module lets you click on a hub and get more detail about the hub. Especially if you have set the roster to not show by hub. Quote Link to comment Share on other sites More sharing options...
Strider Posted May 29, 2020 Author Report Share Posted May 29, 2020 I have updated this to V1.4. It now uses leaflet maps instead of googlemaps. Quote Link to comment Share on other sites More sharing options...
lorlandi Posted June 4, 2020 Report Share Posted June 4, 2020 On 5/29/2020 at 9:40 AM, Strider said: I have updated this to V1.4. It now uses leaflet maps instead of googlemaps. Great Job, Many Thanks. Luis Quote Link to comment Share on other sites More sharing options...
SmarticleCo Posted June 9, 2020 Report Share Posted June 9, 2020 On 5/29/2020 at 8:40 AM, Strider said: I have updated this to V1.4. It now uses leaflet maps instead of googlemaps. im using iCrew so how would i get to display the pilots for a certain hub on the front end site? thanks Quote Link to comment Share on other sites More sharing options...
Strider Posted June 9, 2020 Author Report Share Posted June 9, 2020 If you are using the premium version of icrew, you will need to talk to icrewsystems about that. If using the freeware version, just look at the default code for the pilots list that ships with phpvms, as it might give you a clue as to how to go about that. 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.