Вывод баланса пользователя
вот сюда: место куда это нужно
Вот что понадобилось в "/components/user/frontend.php"
добавил
$sql = "SELECT
u.id as id,
u.login,
u.nickname,
u.balance,
u.logdate as flogdate,
u.is_deleted as is_deleted,
u.birthdate, u.rating,
u.status as microstatus,
p.city, p.karma as karma, p.imageurl,
p.gender as gender
FROM cms_users u
INNER JOIN cms_user_profiles p ON p.user_id = u.id
WHERE u.is_locked = 0 AND u.is_deleted = 0
ORDER BY ".$orderby." ".$orderto."
LIMIT ".(($page-1)*$perpage).", $perpage";
Ниже тоже самое с запросом
else {
$sql = "SELECT
o.user_id as id,
u.login,
u.nickname,
u.balance,
u.logdate as flogdate,
u.is_deleted as is_deleted,
u.birthdate, u.rating,
u.status as microstatus,
p.city, p.karma as karma, p.imageurl,
p.gender as gender
FROM cms_online o
LEFT JOIN cms_users u ON u.id = o.user_id
INNER JOIN cms_user_profiles p ON p.user_id = u.id
WHERE u.is_locked = 0 AND u.is_deleted = 0
GROUP BY o.user_id
ORDER BY ".$orderby." ".$orderto."
LIMIT ".(($page-1)*$perpage).", $perpage";
}
затем в удобном для вас месте вставляем {$usr.balance}