Log in

View Full Version : Get number of new posts from a forum


UberMensch
02-02-2008, 09:40 PM
How can I fetch the number of new posts from a specific forum? I doubt this can be done with templates alone, so I'm expecting a bit of php is required. How could I achieve this?

Lynne
02-02-2008, 10:00 PM
You would do a query in a plugin - but which plugin would depend on where you want to use this count. You would also need to define 'new' - do you mean new in the last 24 hours, new since the user was last online, new in that the user has never read it, etc.

UberMensch
02-02-2008, 10:13 PM
You would do a query in a plugin - but which plugin would depend on where you want to use this count. You would also need to define 'new' - do you mean new in the last 24 hours, new since the user was last online, new in that the user has never read it, etc.

The plugin would be the hook called when the board index is viewed. By "new" I mean the new posts since the user was last online ;)

Lynne
02-02-2008, 11:08 PM
You might want to see if this hack would do what you want since it's alreay written: https://vborg.vbsupport.ru/showthread.php?t=122995

UberMensch
02-03-2008, 10:21 AM
With a bit of editing, that should work out fine! Thanks for your help ;)