giorgi Posted September 3, 2010 Report Share Posted September 3, 2010 can you guys help me here it doesn't shows status pictures Quote Link to comment Share on other sites More sharing options...
Moderators joeri Posted September 3, 2010 Moderators Report Share Posted September 3, 2010 first off all don't just type helpp its verry anoying 2 Quote Link to comment Share on other sites More sharing options...
Moderators joeri Posted September 3, 2010 Moderators Report Share Posted September 3, 2010 also i am just getting not listed 1 Quote Link to comment Share on other sites More sharing options...
giorgi Posted September 3, 2010 Author Report Share Posted September 3, 2010 what? first i couldn't named this topic because i don't have enough time to think, i wan't be here from tomorrow until 15st September. and if you don't going to help just don't post!be a moderator doesn't mean anything Quote Link to comment Share on other sites More sharing options...
Tom Posted September 3, 2010 Report Share Posted September 3, 2010 Most likely because you don't have those images uploaded... Quote Link to comment Share on other sites More sharing options...
giorgi Posted September 3, 2010 Author Report Share Posted September 3, 2010 well i have uploaded green-status.gif and red-status.gif in images folder but it doesn't shows again well here's my pilots_list.tpl <div class="mcright"> <h3><?php echo $title?></h3> <?php if(!$allpilots) { echo 'There are no pilots!</div>'; return; } ?> <table class="sortable" width="700" cellspacing="1" cellpadding="5" border="1"> <thead> <tr> <th width="56px">Pilot ID</th> <th width="150px">Name</th> <th width="80px">Rank</th> <th width="55px">Flights</th> <th width="55px">Hours</th> <th width="100px">Last Flight</th> <th width="55px">Vatsim</th> <th width="55px">Ivao </th> <th width="65px">Active/Inactive</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'); */ ?> <tr> <td width="1%" nowrap><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> <div align="left"><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 $pilot->totalhours?></div></td> <td><div align="center"><?php //$report = PIREPData::GetLastReports($pilot->pilotid, 1); if($pilot->lastpirep == 0) { echo 'No data yet'; } else { $report = PIREPData::GetLastReports($pilot->pilotid, 1); echo date('d.M.Y', strtotime($report->submitdate)); } ?></td> <td><div align="center"> <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Vatsim ID' ); if( $fieldvalue != '' ) { echo '<a href="http://www.vataware.com/pilot.cfm?cid=' . $fieldvalue . '" target="_blank"><img src="/images/charticon.jpg" width="28" height="28" border="0" alt="Vatsim ID" /></a></a>' ; } else { echo '<img src="/images/nonreg.png" width="20" height="18" border="0" alt="Not Listed" /></a>' ; } ?> </div></td> <td><div align="center"> <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'IVAO ID' ); if( $fieldvalue != '' ) { echo '<a href="http://www.ivao.aero/members/person/details.asp?ID='. $fieldvalue . '" target="_blank"><img src="/images/charticon.jpg" width="28" height="28" border="0" alt="Ivao ID" /></a>' ; } else { echo '<img src="/images/nonreg.png" width="20" height="18" border="0" alt="Not Listed" /></a>' ; } ?> </div></td> <td><div align="center"><?php If ($pilot->retired == 0) { echo '<img src="/images/green-status.gif" />'; } else { echo '<img src="/images/red-status.gif" />'; } ?></div></td></div></td> <?php } ?> </div> </tbody> </table> <br /> </div> Quote Link to comment Share on other sites More sharing options...
Tom Posted September 3, 2010 Report Share Posted September 3, 2010 Save confusion and just link directly to the file: <? echo SITE_URL; ?>/lib/skins/SKIN_NAME/images/IMAGE_NAME.gif Quote Link to comment Share on other sites More sharing options...
giorgi Posted September 3, 2010 Author Report Share Posted September 3, 2010 can you say which line should i do this? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted September 4, 2010 Moderators Report Share Posted September 4, 2010 Look for the image source in the vataware url i placed images in the site root /images, thats why yours are not showing up Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted September 4, 2010 Administrators Report Share Posted September 4, 2010 Putting a / in front of the image path goes to the domain root. That's probably not what you want. Use an absolute URL 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.