Quote from: nuan88 at Aug 04, 2014, 03:38 PMThis is clearly above my pay grade, but you might want to have a look at the tool I posted for recent posts. It gets the service and queries for threads or posts and then grabs user data too.
While one user had trouble getting it to work, on my front page (where discuss is not called) it works perfectly.
I managed to get your snippets from
http://forums.modx.com/thread/91207/popular-threads-and-featured-threads?page=4 to work. Thanks for those
But they are not what I'm after. They use the post info from
disPost (the object associated with the table modx_discuss_posts),
modUser, and
disThread (the object associated with the table modx_discuss_threads)
What I am after is using the function
countUnreadPosts() of
disUser (the object associated with the modx_discuss_users)
I'm trying to show the user how many unread posts there are since they last logged on.
You'd think that it just found posts that are older than the users last login. Which I can do just with my own query but that doesn't take into consideration
private boards, and
ignore boards options which is done in the existing Discuss code.
I suppose I could recreate that too with my own query but that sort of defeats the object of reusable objects!