
Danny
Members-
Posts
17 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
Danny's Achievements
Newbie (1/14)
1
Reputation
-
Aha that fixed it Nabeel thanks
-
The only one i can see if in pilots.php public function index() { // 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); $this->set('allpilots', PilotData::findPilots(array('p.hub'=>$hub->icao))); $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); $this->render('pilots_list.tpl'); }
-
I just edited the pilots_list.tpl thats all i edited so its called the same as before?
-
Sorry for what may seem a silly question, But what do you meen?
-
yes like i have the forum addon and i dont want it to show on that but i want it to show on some other pages
-
Ok i guess the title makes no sense. Well watch the tutorial it shows you how to hide the side bar apart from on the homepage.. I want to make it not show on multiple pages but show on the rest atm i have it like this <?php if($_GET['module'] == 'profile') { ?> <?php } else { ?> <div id="right"> <h3>Recent Reports</h3> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> <h3>Newest Pilots</h3> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> <h3>Teamspeak Viewer</h3> <script type="text/javascript" charset="iso-8859-1" src="http://www.tsviewer.com/ts_viewer_pur.php?ID=907838&bg=transparent&type=8f8f8f&type_size=11&type_family=1&info=1&channels=1&users=1&js=1&type_s_color=000000&type_s_weight=bold&type_s_style=normal&type_s_variant=normal&type_s_decoration=none&type_s_color_h=525284&type_s_weight_h=bold&type_s_style_h=normal&type_s_variant_h=normal&type_s_decoration_h=underline&type_i_color=000000&type_i_weight=normal&type_i_style=normal&type_i_variant=normal&type_i_decoration=none&type_i_color_h=525284&type_i_weight_h=normal&type_i_style_h=normal&type_i_variant_h=normal&type_i_decoration_h=underline&type_c_color=000000&type_c_weight=normal&type_c_style=normal&type_c_variant=normal&type_c_decoration=none&type_c_color_h=525284&type_c_weight_h=normal&type_c_style_h=normal&type_c_variant_h=normal&type_c_decoration_h=underline&type_u_color=000000&type_u_weight=normal&type_u_style=normal&type_u_variant=normal&type_u_decoration=none&type_u_color_h=525284&type_u_weight_h=normal&type_u_style_h=normal&type_u_variant_h=normal&type_u_decoration_h=none&skin=ts2_classic"></script><noscript>Enable JavaScript or visit</noscript> <h3>Users Online<br /> <?php $usersonline = StatsData::UsersOnline(); $guestsonline = StatsData::GuestsOnline(); ?> </h3> <h4 class="style6">Pilots Online </h4> <?php foreach($usersonline as $pilot) { echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />'; echo " {$pilot->firstname} {$pilot->lastname}<br />"; } ?> <br /> There's <?php echo count($usersonline);?> Pilot(s) Online. <h4 class="style3">Guests Online </h4> <p class="txt-red10"> There's <?php echo count($guestsonline);?> Guest(s) Online. </div> <?php } ?> Any ideas of this is possible
-
Everything on that site i made my self? Not too sure what your on about?
-
My new VA Virtual Thomas Cook. No pilots as of yet but i have hi hopes. Wondered what you thought of the simple yet effective layout. http://virtualthomascook.com/
-
Yea i only thought something small like 100x100
-
This is the code there currently. <?php $roster = PilotData::getAllPilots(); ?> <?php if(!$roster) { echo 'There are no pilots!'; return; } ?> <table id="tabledlist" class="tablesorter"> <thead> <tr> <th>Pilot ID</th> <th>Name</th> <th>Rank</th> <th>Flights</th> <th>Hours</th> <th>HUBs</th> </tr> </thead> <tbody> <?php foreach($roster as $pilot) { ?> <tr> <td width="1%" nowrap> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <center><?php echo $pilot->firstname.' '.$pilot->lastname?></center> </td> <center><td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td></center> <center><td><?php echo $pilot->totalflights?></td></center> <center><td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td></center> <center><td><?php echo $pilot->hub?></td></center> </tr> <?php } ?> </tbody> </table>
-
http://virtualthomascook.com/index.php/pilots Ok were slowly getting there :S Any idea why its doing that?
-
Maybe it would be a nice idea to have the picture on there aswell? Thanks for the script.
-
Joeri your not understanding. I want to get rid of the list of hubs and have just one list of pilots with there hub next to there name.
-
I have emailed them yes and i am waiting for a reply the domain is only a small cost so if i have to change name then thats fine to me I tried that Mitchell But all i got was There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!There are no pilots!