Support Forums - Classified Ads Script Osclass
Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: Ivanko on March 05, 2017, 11:16:13 PM
-
Is this nice future working .....???
-
@Ivanko
http://forums.mb-themes.com/veronika-osclass-responsive-theme/bug-phone-statistics-are-not-showing-in-user-menu-items/
-
Yeah, phone clicks are fixed, but please check query in user-dashboard.php :
$query = "SELECT (year(s.dt_date)*100 + month(s.dt_date)) as yearmonth, sum(s.i_num_views) as views, sum(s.i_num_premium_views) as premium_views, sum(coalesce(e.i_num_phone_clicks, 0)) as phone_clicks
FROM {$db_prefix}t_item_stats s
INNER JOIN {$db_prefix}t_item i ON s.fk_i_item_id = i.pk_i_id
LEFT OUTER JOIN {$db_prefix}t_item_stats e
ON (s.fk_i_item_id = e.fk_i_item_id AND s.dt_date = e.dt_date)
WHERE i.fk_i_user_id = " . osc_user_id() . "
AND year(s.dt_date) >= " . $limit_year . "
AND month(s.dt_date) >= " . $limit_month . "
GROUP BY (year(s.dt_date)*100 + month(s.dt_date))
ORDER BY (year(s.dt_date)*100 + month(s.dt_date)) asc;";
replace with:
$query = "SELECT (year(s.dt_date)*100 + month(s.dt_date)) as yearmonth, sum(s.i_num_views) as views, sum(s.i_num_premium_views) as premium_views, sum(coalesce(e.i_num_phone_clicks, 0)) as phone_clicks
FROM {$db_prefix}t_item_stats s
INNER JOIN {$db_prefix}t_item i ON s.fk_i_item_id = i.pk_i_id
LEFT OUTER JOIN {$db_prefix}t_item_stats_veronika e
ON (s.fk_i_item_id = e.fk_i_item_id AND s.dt_date = e.dt_date)
WHERE i.fk_i_user_id = " . osc_user_id() . "
AND year(s.dt_date) >= " . $limit_year . "
AND month(s.dt_date) >= " . $limit_month . "
GROUP BY (year(s.dt_date)*100 + month(s.dt_date))
ORDER BY (year(s.dt_date)*100 + month(s.dt_date)) asc;";
For me Chart is showing properly...
-
@Ivanko,
Thanks, you are right, but it only fix showing of click counts (if you have problems with others as well).
-
No, No, all staff are showing properly now:
premium, normal, clicks.... :)