Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: iVaka on September 03, 2019, 12:45:52 PM

Title: How get the number of Unread posts and Updated Topics ?
Post by: iVaka on September 03, 2019, 12:45:52 PM
How get the number of Unread posts and Updated Topics ?

(https://i.ibb.co/BCZRzmf/Screen-Shot-2019-09-03-at-19-42-53.png)

Example: Unread (19) Updated Topics (8)
Title: Re: How get the number of Unread posts and Updated Topics ?
Post by: Kindred on September 03, 2019, 12:55:46 PM
not easily....   that query is possibly one of the most "expensive" queries in SMF (in terms of server resources) and you want to pull that data on EVERY PAGE?

You will kill your server.
Title: Re: How get the number of Unread posts and Updated Topics ?
Post by: iVaka on September 03, 2019, 01:32:39 PM
Quote from: Kindred on September 03, 2019, 12:55:46 PM
not easily....   that query is possibly one of the most "expensive" queries in SMF (in terms of server resources) and you want to pull that data on EVERY PAGE?

You will kill your server.

Ohhh.. you killed me .. Thx man! :) lock the topic