Jump to content

RichardRodgers

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

8 Neutral

About RichardRodgers

  • Rank
    Newbie
  1. Thank you bud. That works great. I just need to set things in the Pilots.php so that it will not display the heading name for that HUB
  2. Hi guys, I have several HUBS set up for my VA (http://www.rafairuk....ndex.php/pilots), but like us all I have a number of inactive or 0 hour pilots on roster. What I am trying to do is put all the pilots who I feel need to not be shown in the main rosters into on HUB that can then be hidden. That is the easy part and I can do that no probs. What I cant do is sort out the coding so that my current Rosters page will not display the HUB I have called "Holding Sqn" I have searched for something like this and the only thing I can find mentions something like "Skip it in the foreach loop in the pilot_list.tpl file". That may well be the answer but I have now clue how to implement it in my pilots_list.tpl code. I would be gratefuf if someone could poss point me in the right direction on this. Here is my current coding:- <h3><?php echo $title?></h3> <?php if(!$allpilots) { echo 'There are no pilots!'; return; } ?> <table id="tabledlist" class="tablesorter"> <thead> <tr> <th>Pilot ID</th> <th>Name</th> <th>Rank & Awards</th> <th>Joined</th> <th>Flights</th> <th>Hours</th> <th>Last Flight</th> <th>Status</th> </tr> </thead> <tbody> <?php foreach($allpilots 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 align="center"><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td> <td align="center"><?php echo $pilot->joindate?></td> <td align="center"><?php echo $pilot->totalflights?></td> <td align="center"><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td> <td align="center"><?php echo $pilot->lastpirep?></td> <td><?php if($pilot->retired == '1') {echo '<img src="'.SITE_URL.'/lib/skins/rafairuk/images/red_thumbs_button_b.jpg" alt="warning" /> - Inactive';} else {echo '<img src="'.SITE_URL.'/lib/skins/rafairuk/images/green_thumbs_button_b.jpg" alt="warning" /> - Active';} ?></td> <?php } ?> </tbody> </table> Thanks guys Richard
  3. Colin, I have done a similar thing to you but rather than have Active, Retired or LOA I needed Active, In-Active or New Recruit I can get it to display whichever one I set from the three choices in all places(rosters example http://www.rafairuk....ndex.php/pilots) except in the Admin 'View All Pilots' list. I changed a setting in Admin/modules/pilot admin/pilot_admin.php from Retired to Not Active. try as I might I could not get my head around how to get the choice of 3 options in there. Whatever I tried I kept getting syntax errors. My way of thinking was that being as I didn't need RETIRED anyway, if I had NOT ACTIVE in there it was better than having RETIRED. Give me a shout if you wish. Richard
  4. Hi guys, I am looking to add a search drop down to the Find a flight serach page that will allow me to use the data in the NOTES box of a flight schedule. The following code is for the search parameters that are concerned with searching by DEPARTURE AIRPORT <div id="depapttab"> <p>Select your departure airport:</p> <select id="depicao" name="depicao"> <option value="">Select All</option> <?php if(!$depairports) $depairports = array(); foreach($depairports as $airport) { echo '<option value="'.$airport->icao.'">'.$airport->icao .' ('.$airport->name.')</option>'; } ?> </select> <input type="submit" name="submit" value="Find Flights" /> </div> What would I need to change to get this to search by the NOTES instead. The reason I ask is that we use the NOTES box to contain a pilots name, and so wish to be able to search for all flights relating to a particular pilot. As always, any help gratefully received. Richard
  5. Have been trying to log in to my site (RAFAIRUK) but keep getting the following: No input file specified. Even when I try to click on a filed PIREP to view it I get the same message. Any ideas would be welcomed. Richard
  6. Hello to you all, There is a new kid on the block within the military/civilian VA world. Two friends and myself started RAF Air UK after being involved with both military and civilian VAs for over 20 years between us. We offer both offline and online flying. Offline flights can be with FS2004/FSX, but for online flights we require FS2004 simply due to the fact that everyone has to have the same scenery/aircraft installed so we see the same as each other. The online flights take place using multi-player which enables us to provide training for those new to flight simulator and also means that we can create scenarios that reflect how the RAF carry out their duties in the real world. If interested in trying your hand at flying close formation at 500kts or flying a Time On Target (TOT) sortie where you could be one of 6-10 pilots tasked with overflying several targets within 2 seconds of a pre-determined time, then look no further. All you will need to bring to the party is the need to have some fun and learn how the big boys do it in the RW. Come and take a look and have a chat. Richard
  7. Well guys, think by trial and error I may have found it. Looks like it is the Layout.tpl that does it so I have just placed the text between <FONT COLOR #......> </FONT> tags. Seems to work for me so all is good.
  8. Am new to the world of phpVMS, but hav set up a VA using it but need to change a few colours. The attached image shows the text that I need to alter. Both the BLUE and BLACK text are what I need to change. Ideally I could do with it all being white or light grey. I am fully aware of hex colour codes as have used them in html sites in past. What I do not know is which of the .css files contain the parts that I need to alter. Would be most grateful for a few quick pointers. Richard
×
×
  • Create New...