The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
newpost_process hook
I need to know how to get the threadid in this hook. I am adding a tag to the database during this hook, and the only data I can't seem to get is the threadid. I have looked at the function_newpost.php file and from what I see in there $threadinfo['threadid'] should work. I have even tried $threadinfo[threadid] but that did not work either.
PHP Code:
|
#2
|
|||
|
|||
I think the problem is that when you're creating a new thread, the threadid hasn't been created yet. It won't be known until the thread is actually saved. It looks like at hook newpost_complete you would be able to use the threadid.
Also, do you want your code to run for both threads and posts? If you only want it to run when a new thread is created, you'll want to check for $type == 'thread'. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|