ага спасибоРад что помог
ага спасибоРад что помог
[24-Feb-2012 22:41:31] PHP Notice: Undefined variable: row in /var/www/booster/data/www/!!!/admin/admin_forums.php on line 143
[24-Feb-2012 22:41:31] PHP Notice: Undefined variable: row in /var/www/booster/data/www/!!!/admin/admin_forums.php on line 144
[24-Feb-2012 22:41:31] PHP Notice: Undefined index: L_POINTS_DISABLED in /var/www/booster/data/www/!!!/cache/tpl__admin_admin_forums.tpl.php on line 64
Крон задачу посмотри у меня помойму были проблемы с ней. и логи глянь.Установил все по инструкции но так не чего и не начисляется! Помогите плиз.
// Get SUMMARIZED user's dlstat
$db->query("
INSERT INTO ". NEW_BT_LAST_USERSTAT_TABLE ."
(user_id, topics_count, up_add, down_add, release_add, bonus_add, seed_points_raw, speed_up, speed_down)
SELECT
user_id, SUM(seeder), SUM(up_add), SUM(down_add), SUM(release_add), SUM(bonus_add), ((SUM(seed_time_add)*{$bb_cfg['seed_points_per_hour']})/(3600*SUM(seeder))), SUM(speed_up), SUM(speed_down)
FROM ". NEW_BT_LAST_TORSTAT_TABLE ."
GROUP BY user_id
");
// Update TOTAL user's dlstat
$db->query("
UPDATE
". BT_USERS_TABLE ." u,
". NEW_BT_LAST_USERSTAT_TABLE ." ub
SET
u.u_up_total = u.u_up_total + ub.up_add,
u.u_down_total = u.u_down_total + ub.down_add,
u.u_up_release = u.u_up_release + ub.release_add,
u.u_up_bonus = u.u_up_bonus + ub.bonus_add,
u.seed_points = u.seed_points + (". get_bonus_sql_case ($bb_cfg['seed_points_f'], 'ub.topics_count', 'ub.seed_points_raw') .")
WHERE u.user_id = ub.user_id
");
// Get SUMMARIZED user's dlstat
DB()->query("
INSERT INTO ". NEW_BB_BT_LAST_USERSTAT ."
(user_id, topics_count, up_add, down_add, release_add, bonus_add, seed_points_raw, speed_up, speed_down)
SELECT
user_id, SUM(seeder), SUM(up_add), SUM(down_add), SUM(release_add), SUM(bonus_add), ((SUM(seed_time_add)*{$bb_cfg['seed_points_per_hour']})/(3600*SUM(seeder))), SUM(speed_up), SUM(speed_down)
FROM ". NEW_BB_BT_LAST_TORSTAT ."
GROUP BY user_id
");
// Update TOTAL user's dlstat
DB()->query("
UPDATE
". BB_BT_USERS ." u,
". NEW_BB_BT_LAST_USERSTAT ." ub
SET
u.u_up_total = u.u_up_total + ub.up_add,
u.u_down_total = u.u_down_total + ub.down_add,
u.u_up_release = u.u_up_release + ub.release_add,
u.u_up_bonus = u.u_up_bonus + ub.bonus_add,
u.seed_points = u.seed_points + (". get_bonus_sql_case ($bb_cfg['seed_points_f'], 'ub.topics_count', 'ub.seed_points_raw') .")
WHERE u.user_id = ub.user_id
");
после заменыКрон задачу посмотри у меня помойму были проблемы с ней. и логи глянь.
/includes/cron/jobs/tr_cleanup_and_dlstat.php
найти
Замени на этоPHP:// Get SUMMARIZED user's dlstat $db->query(" INSERT INTO ". NEW_BT_LAST_USERSTAT_TABLE ." (user_id, topics_count, up_add, down_add, release_add, bonus_add, seed_points_raw, speed_up, speed_down) SELECT user_id, SUM(seeder), SUM(up_add), SUM(down_add), SUM(release_add), SUM(bonus_add), ((SUM(seed_time_add)*{$bb_cfg['seed_points_per_hour']})/(3600*SUM(seeder))), SUM(speed_up), SUM(speed_down) FROM ". NEW_BT_LAST_TORSTAT_TABLE ." GROUP BY user_id "); // Update TOTAL user's dlstat $db->query(" UPDATE ". BT_USERS_TABLE ." u, ". NEW_BT_LAST_USERSTAT_TABLE ." ub SET u.u_up_total = u.u_up_total + ub.up_add, u.u_down_total = u.u_down_total + ub.down_add, u.u_up_release = u.u_up_release + ub.release_add, u.u_up_bonus = u.u_up_bonus + ub.bonus_add, u.seed_points = u.seed_points + (". get_bonus_sql_case ($bb_cfg['seed_points_f'], 'ub.topics_count', 'ub.seed_points_raw') .") WHERE u.user_id = ub.user_id ");
PHP:// Get SUMMARIZED user's dlstat DB()->query(" INSERT INTO ". NEW_BB_BT_LAST_USERSTAT ." (user_id, topics_count, up_add, down_add, release_add, bonus_add, seed_points_raw, speed_up, speed_down) SELECT user_id, SUM(seeder), SUM(up_add), SUM(down_add), SUM(release_add), SUM(bonus_add), ((SUM(seed_time_add)*{$bb_cfg['seed_points_per_hour']})/(3600*SUM(seeder))), SUM(speed_up), SUM(speed_down) FROM ". NEW_BB_BT_LAST_TORSTAT ." GROUP BY user_id "); // Update TOTAL user's dlstat DB()->query(" UPDATE ". BB_BT_USERS ." u, ". NEW_BB_BT_LAST_USERSTAT ." ub SET u.u_up_total = u.u_up_total + ub.up_add, u.u_down_total = u.u_down_total + ub.down_add, u.u_up_release = u.u_up_release + ub.release_add, u.u_up_bonus = u.u_up_bonus + ub.bonus_add, u.seed_points = u.seed_points + (". get_bonus_sql_case ($bb_cfg['seed_points_f'], 'ub.topics_count', 'ub.seed_points_raw') .") WHERE u.user_id = ub.user_id ");
P.S. Если посмотреть в логи можно все найти и поправить.
Notice: Undefined variable: db in .../netclub-lai.ru/www/forum/includes/cron/jobs/tr_cleanup_and_dlstat.php on line 116
Fatal error: Call to a member function query() on a non-object in .../netclub-lai.ru/www/forum/includes/cron/jobs/tr_cleanup_and_dlstat.php on line 116
DB()->query("
а когда полностью добавите в движок?P.S. сид поинты чуть позже будут добавлены в движок, потерпите))