Jump to content

Количество сообщений в сутки на главной


Recommended Posts

Заинтересовала возможность выводить данные количества сообщений форума в сутки на главную страницу. Как возможно это реализовать?

Link to comment
Share on other sites


Не понял.


А это тогда куда?

if( $this->settings['show_totals'] )
   if( ! isset( $stats['total_attachments'] ) OR $stats['update_attachments'] < ( IPS_UNIX_TIME_NOW - 1 * 60 * 60 ) )
       $row = $this->DB->buildAndFetch( array('select' => 'COUNT(*) as count', 'from' => 'attachments') );

       $stats['total_attachments'] = $row['count'];
       $this->caches['stats']['total_attachments']  = $stats['total_attachments'];
       $this->caches['stats']['update_attachments'] = IPS_UNIX_TIME_NOW;

       $this->cache->setCache( 'stats', $this->caches['stats'], array( 'array' => 1 ) );

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...