![]() |
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:
|
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'. |
All times are GMT. The time now is 01:15 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:
|