ACVA_CEO Posted November 21, 2010 Report Share Posted November 21, 2010 Hey all, Here's what's going on. I'm trying to display my Vatsim ID. It shows up under /profile/view/1 but won't show under /profile or /pilots. Does anyone know how to view the template for /profile/view/1 ? Chris Quote Link to comment Share on other sites More sharing options...
Strider Posted November 21, 2010 Report Share Posted November 21, 2010 It doesn't show up on the prrofile page. Pilots I assume pilots you mean the roster? There is code you have to uncomment for it to show up. Quote Link to comment Share on other sites More sharing options...
ACVA_CEO Posted November 22, 2010 Author Report Share Posted November 22, 2010 I did that..Is it supposed to be left in that area or moved down with the other lines in the pilots_list.tpl? Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted November 22, 2010 Moderators Report Share Posted November 22, 2010 You must go to core/templates/pilot_list.tpl Quote Link to comment Share on other sites More sharing options...
ACVA_CEO Posted November 22, 2010 Author Report Share Posted November 22, 2010 I have to do it in the core as well as in the skin? Won't the core be overwritten? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted November 22, 2010 Administrators Report Share Posted November 22, 2010 As long as you have placed your modified template files in your custom skins folder they will not be overwritten. If you have been modifying the files with in the core/templates folder (which you should not be doing) they will get overwritten in an update. The system looks for the needed template in the chosen skin, then if it is not found it will go get the generic one out of the core/templates folder. Quote Link to comment Share on other sites More sharing options...
ACVA_CEO Posted November 22, 2010 Author Report Share Posted November 22, 2010 Ok...good. That's what I've been doing (pilots_list under skin). Everything else shows up fine except for the vatsim id. Here is a the code from the page. <h3><?php echo $title?></h3> <?php if(!$allpilots) { echo 'There are no pilots!'; return; } ?> <table width="945" border="1" class="tablesorter" id="tabledlist"> <thead> <tr> <th>Pilot ID</th> <th width="25%">Name</th> <th width="19%">Rank</th> <th width="15%">Flights</th> <th width="17%">Hours</th> <th width="24%">Vatsim ID</th> </tr> </thead> <tbody> <?php foreach($allpilots as $pilot) { /* To include a custom field, use the following example: 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="7%" nowrap><div align="center"><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a></div></td> <td> <div align="center"><img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </div></td> <td><div align="center"><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></div></td> <td><div align="center"><?php echo $pilot->totalflights?></div></td> <td><div align="center"><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></div></td> <td><div align="center"><?php echo PilotData::GetFieldValue($pilot->pilotid, 'Vatsim_ID');?></div></td> <?php } ?> </tbody> </table> Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 22, 2010 Administrators Report Share Posted November 22, 2010 Is the field title Vatsim_IDor Vatsim ID? Are you using that same value you use in the other template? Quote Link to comment Share on other sites More sharing options...
ACVA_CEO Posted November 22, 2010 Author Report Share Posted November 22, 2010 I'm using Vatsim_ID ,Is there another template besides pilots_list? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted November 22, 2010 Administrators Report Share Posted November 22, 2010 For that one? Nope. If you make a different change (add some text somewhere), does that show up? Quote Link to comment Share on other sites More sharing options...
ACVA_CEO Posted November 22, 2010 Author Report Share Posted November 22, 2010 yeah...I got rid of the code except for the <div>, typed the word help, and it showed up in the vastim area as regular text Quote Link to comment Share on other sites More sharing options...
ACVA_CEO Posted November 22, 2010 Author Report Share Posted November 22, 2010 Ok...So I did a re-install and now it works...must have been an error in the database or something.... thanks for your help gents. Chris 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.