homer09001 Posted May 28, 2009 Report Share Posted May 28, 2009 A little modification I made to the rank editing page on the Admin panel I thought I would share. 1. Open "/admin/templates/ranks_allranks.tpl" 2. Find this code: <tr> <th>Rank Title</th> <th>Minimum Hours</th> <th>Pay Rate</th> <th>Total Pilots</th> <th>Options</th> </tr> 3. Replace with: <tr> <th>Rank Title</th> <th>Minimum Hours</th> <th>Rank Image</th> <th>Pay Rate</th> <th>Total Pilots</th> <th>Options</th> </tr> 4. Find the following code: <td align="center"><?php echo $rank->rank; ?></td> <td align="center"><?php echo $rank->minhours; ?></td> <td align="center"><?php echo Config::Get('MONEY_UNIT').$rank->payrate.'/hr'; ?></td> <td align="center"><?php echo $rank->totalpilots; ?></td> <td align="center" width="1%" nowrap> 5. Replace with: <td align="center"><?php echo $rank->rank; ?></td> <td align="center"><?php echo $rank->minhours; ?></td> <td align="center"><img src="<?php echo $rank->rankimage; ?>"></td> <td align="center"><?php echo Config::Get('MONEY_UNIT').$rank->payrate.'/hr'; ?></td> <td align="center"><?php echo $rank->totalpilots; ?></td> <td align="center" width="1%" nowrap> 6. Save and Close "ranks_allranks.tpl". Now when you view all ranks in the admin panel it will show the corresponding image. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted May 30, 2009 Administrators Report Share Posted May 30, 2009 I'll integrate this into the main source tree, thanks! Quote Link to comment Share on other sites More sharing options...
homer09001 Posted May 30, 2009 Author Report Share Posted May 30, 2009 Your welcome , i added it to my admin panel to make it easier when managing ranks so i could make sure i had the right image for each rank. 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.