Moderators joeri Posted December 25, 2009 Moderators Report Posted December 25, 2009 hello gents a bid stuck here i have some awards to show but i can't get the award name infront away http://www.tnt-virtual.be/index.php/profile i just want to show the award can somebody point me in the correct direction gr joeri and a merry Xmass to you all Quote
Administrators Nabeel Posted December 25, 2009 Administrators Report Posted December 25, 2009 Can you pastebin the template code? That profile link requires login Quote
Moderators joeri Posted December 25, 2009 Author Moderators Report Posted December 25, 2009 ah sorry Nabeel here it is <div id="mainbox"> <h3>Pilot Center</h3> <div class="indent"> <p><strong>Welcome back <?php echo $userinfo->firstname . ' ' . $userinfo->lastname; ?>!</strong></p> <table> <tr> <td valign="top" align="center"> <img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" /> <br /><br /> <img src="<?php echo RanksData::GetRankImage($userinfo->rank) ?>" /> </td> <td valign="top"> <ul style="margin-top: 0px;"> <li><strong>Your Pilot ID: </strong> <?php echo $pilotcode; ?></li> <li><strong>Your Rank: </strong><?php echo $userinfo->rank;?></li> <?php if($report) { ?> <li><strong>Latest Flight: </strong><a href="<?php echo url('pireps/view/'.$report->pirepid); ?>"> <?php echo $report->code . $report->flightnum; ?></a> </li> <?php } ?> <li><strong>Total Flights: </strong><?php echo $userinfo->totalflights?></li> <li><strong>Total Hours: </strong><?php echo $userinfo->totalhours; ?></li> <li><strong>Total Transfer Hours: </strong><?php echo $userinfo->transferhours?></li> <li><strong>Total Money: </strong><?php echo FinanceData::FormatMoney($userinfo->totalpay) ?></li> <?php if($nextrank) { ?> <p>You have <?php echo ($nextrank->minhours - $pilot_hours)?> hours left until your promotion to <?php echo $nextrank->rank?></p> <?php } ?> </ul> </td> </tr> </table> <table> <tr> <td valign="top" nowrap> <p> <strong>Profile Options</strong> <ul> <li><a href="<?php echo url('/profile/editprofile'); ?>">Edit My Profile, Email and Avatar</a></li> <li><a href="<?php echo url('/profile/changepassword'); ?>">Change my Password</a></li> <li><a href="<?php echo SITE_URL.SIGNATURE_PATH.'/'.$pilotcode.'.png' ?>">View my Badge</a></li> <li><a href="<?php echo url('/downloads'); ?>">View Downloads</a></li> </ul> </p> <p> <strong>Flight Operations</strong> <ul> <li><a href="<?php echo url('/pireps/mine');?>">View my PIREPs</a></li> <li><a href="<?php echo url('/pireps/routesmap');?>">View a map of all my flights</a></li> <li><a href="<?php echo url('/pireps/filepirep');?>">File a Pilot Report</a></li> <li><a href="<?php echo url('/schedules/view');?>">View Flight Schedules</a></li> <li><a href="<?php echo url('/schedules/bids');?>">View my flight bids</a></li> <li><a href="<?php echo url('/finances');?>">View VA Finances</a></li> </ul> </p> <p> <strong>Awards</strong> <?php if(is_array($allawards)) { ?> <ul> <?php foreach($allawards as $award) { /* To show the image:*/?> <li><?php echo $award->name ?> <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></li> <?php } ?> </ul> <?php } ?> </p> <p> <strong>ACARS Config</strong> <ul> <li><a href="<?php echo actionurl('/acars/fsacarsconfig');?>">Download FSACARS Config</a></li> <li><a href="<?php echo actionurl('/acars/fspaxconfig');?>">Download FSPax Config</a></li> <li><a href="<?php echo actionurl('/acars/xacarsconfig');?>">Download XAcars Config</a></li> <li><strong>For FSFK, you need the following (Place in Documents/FS Flight Keeper/Templates): </strong></li> <li><a href="<?php echo actionurl('/fsfk/vaconfig_template');?>">VA-Template.txt</a></li> </ul> </p> </td> <td valign="top"> <?php StatsData::PilotAircraftFlownGraph($userinfo->pilotid); ?> </td> </tr></table> </div> </div> <br /> the same is on the public side you can view here http://www.tnt-virtual.be/index.php/profile/view/1 gr joeri Quote
Administrators simpilot Posted December 25, 2009 Administrators Report Posted December 25, 2009 try changing this -> <li><?php echo $award->name ?>  to this -> <li><?php echo $award->name ?><br /><br /> Quote
Moderators joeri Posted December 25, 2009 Author Moderators Report Posted December 25, 2009 this made the award go down(break) but not let the text disapear look here http://www.tnt-virtual.be/index.php/profile/view/1 what i actualy was trying to show was the dot and the award but not the award name. gr joeri Quote
Administrators simpilot Posted December 25, 2009 Administrators Report Posted December 25, 2009 this made the award go down(break) but not let the text disapear look here http://www.tnt-virtual.be/index.php/profile/view/1 what i actualy was trying to show was the dot and the award but not the award name. gr joeri oh, sry... try just removing most of that line like this-> <li> Quote
Administrators Nabeel Posted December 26, 2009 Administrators Report Posted December 26, 2009 This /* To show the image:*/?> <li><?php echo $award->name ?>  <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /></li> remove the <?php echo $award->name ?> peice Quote
Moderators joeri Posted December 26, 2009 Author Moderators Report Posted December 26, 2009 yes got is thanks all Quote
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.