Author Topic: How to disable statistics?  (Read 6395 times)

0 Members and 1 Guest are viewing this topic.

Offline dmitrijjuy

  • Pre-Newbie
  • Posts: 9
    • View Profile
How to disable statistics?
« on: December 03, 2013, 07:26:39 PM »
Hello. I want to disable sessions statistics at least for non-registered users.
Please tell me how to do it?
The main goal - to minimize database queries to the table "4images_sessions".
If it is possible to completely disable this function - it will be very good! :)

Offline senloel

  • Full Member
  • ***
  • Posts: 196
    • View Profile
Re: How to disable statistics?
« Reply #1 on: December 03, 2013, 07:33:19 PM »
In ACP - Setings - Session and User Settings you can show the Whos-online-List only to admins if you want to.

To disable whos-online on index.php, open templates/your-template/home.html, find:

{whos_online}

and replace with:

<!--
{
whos_online
-->



Offline dmitrijjuy

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: How to disable statistics?
« Reply #2 on: December 03, 2013, 08:01:19 PM »
Thank you for "index.php", but I want to disable sessions statistics , and not just to show or not to show this for all visitors. In ACP I see only "Only visible for admins when deactivated" and Display admins bold in "Who's online". I want to totally disable it for all.
Tell me, please, where it can be turned off in the file? Maybe need to remove or change some code?

I do not need this. How can I "disable" it? (picture below):
« Last Edit: December 03, 2013, 08:22:59 PM by dmitrijjuy »

Rembrandt

  • Guest
Re: How to disable statistics?
« Reply #3 on: December 03, 2013, 08:21:56 PM »
Hi!
... I want to totally disable it for all.
Tell me, please, where it can be turned off in the file? Maybe need to remove or change some code?

search in index.php:

define
('GET_USER_ONLINE'1);

and replace:

//define('GET_USER_ONLINE', 1);


mfg Andi

Offline dmitrijjuy

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: How to disable statistics?
« Reply #4 on: December 03, 2013, 08:30:17 PM »
Statistics still works! I need to disable it for all users, for my, for all pages, to minimize database queries (see picture above). My database (mysql) is still used for this!  :cry:

Rembrandt

  • Guest
Re: How to disable statistics?
« Reply #5 on: December 03, 2013, 08:45:14 PM »
Sure, the first step was for the Frontend...
now for the backend:
search in admin/home.php:

require('admin_global.php');

insert below:

define
('USER_INTEGRATION',1);

Offline dmitrijjuy

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: How to disable statistics?
« Reply #6 on: December 04, 2013, 08:07:21 AM »
Thanks, that's cool!
But I want to remove the database queries.
In the picture below you can see that I want to remove: