To be honest, I don't know what 'folderid' is for (maybe for when you select a subscription folder?). If you want to check for a forum id, then I think what you want is to check $foruminfo['forumid'].
Edit: one other thing - that location is pretty early in the function, and there could be an error or the user could be previewing the thread, so you might not want to subtract your points there. If you want to do it only when the thread or reply is posted then you'd want to do it after $dataman->save() is called.
|