![]() |
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? |
Have you tried $this->registry->userinfo['posts'] ?
|
That did it! Thanks so much. :)
|
All times are GMT. The time now is 04:58 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|