With a little help from my friend I was able to make the top 10 richest show the bankval + storep value.
In
store.php
Find:
Code:
$topresult = $DB_site->query("SELECT * FROM user ORDER BY storep DESC LIMIT 10");
while ($top = mysql_fetch_array($topresult)) {
Replace with:
Code:
$topresult = $DB_site->query("SELECT user.*,bankval+storep as total FROM user,items_user WHERE user.userid = items_user.userid ORDER BY total DESC LIMIT 10");
I didn't find a way to combine the two in the postbit section, simply because the $post query was far too complicated to mess with.
If you want to show Bank: underneath Gold: where each user's avatar is in the showposts, just add:
Bank: $store[bankval]