The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
Have you tried $this->registry->userinfo['posts'] ?
|
#3
|
|||
|
|||
That did it! Thanks so much.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|