Get number of posts from user in hook location "threadfpdata_presave"
I'm trying to implement a plugin that checks the number of posts a user has before allowing certain keywords.
The problem I'm having is when modding the plugin in the threadfpdata_presave hook location (before the post is made active/listed), I don't know how to check the number of posts a user has.
Another thread said to use $vbulletin->userinfo['posts'] but this seems null. Any idea what other code I could use to find out the number of posts from a user?
|