cfitz619 Posted February 3, 2021 Report Posted February 3, 2021 I currently have some code put in to show the payrate in the pilot's profile. I would like to have this amount update with the pay adjustment feature in the admin panel. Here are 2 pictures and the code I have put in. Thanks for any help to get this working. <li><strong>Total Money: </strong><?php echo FinanceData::FormatMoney($userinfo->payrate) ?></li><br /> Quote
Heritage1 Posted February 3, 2021 Report Posted February 3, 2021 Be careful with this next line of script, and on another note Pay Adjustment will Not bare any per/hr payrate, the only place to get this is in the Control Panel , Admin section of phpvms. However here is a script that should work for you, edit as you desire of course, the basic script is; <td align="center"><?php echo Config::Get('MONEY_UNIT').$rank->payrate.'/hr'; ?></td> This script is pulled from the yoursite.net/admin/templates/ranks_allranks.php , as mentioned this is the only place this lives in phpvms, hope this helps. Quote
Heritage1 Posted February 3, 2021 Report Posted February 3, 2021 Sorry, I'm bad, you need to replace this; <td align="center"><?php echo Config::Get('MONEY_UNIT').$rank->payrate.'/hr'; ?></td> with This, in the pilot_main.php file; <td align="center"><?php echo Config::Get('MONEY_UNIT').$pilot->payrate.'/hr'; ?></td> I am using this and of course rearrange to your skin etc. This does work well. Sorry about the Error, dizzy Day LOL Jim Quote
cfitz619 Posted February 3, 2021 Author Report Posted February 3, 2021 (edited) That works perfectly. Thank You. Edited February 3, 2021 by cfitz619 Thank You Quote
Heritage1 Posted February 4, 2021 Report Posted February 4, 2021 I'm so glad it did, "GREAT" News , glad I could help you. Jim 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.