Quote:
Originally Posted by cddw.ltd
What about setting a variable (would it have to be in the database?)
Called $rssposts or something, and in the same way that the users postcount is incremented for each post to increment the $rssposts variable also?
To account for the threads already posted I can just give the variable the current number to start with?
|
If you want to fiddle with this more, you may want to look at the threads table instead. When you install AboutToday, a field called histtd_threadid is added to the thread table. When a thread is created by AboutToday (either by a user manually or by the auto creation process), that field is populated. If you counted the number of rows where that field has a value, it would give you the number of posts done via the AboutToday program. Something like:
PHP Code:
$abouttodayposts = $db->num_rows($db->query_read("SELECT histtd_threadid FROM `" . TABLE_PREFIX . "thread` WHERE histtd_threadid NOT LIKE """));
NOTE: if you uninstall and reinstall AboutToday, that field is dropped then readded so any threads created before the reinstall would no longer have that field populated.