![]() |
Get threadid once thread is created?
I'm still a modder noob and am having a hard time figuring this out... I have added a new field to my newthread template, and what I want to do is update a custom table with once the thread has been created with the new threa'ds threadid and the value from that custom field.
I think I've narrowed the hook down to the newthread_post_complete hook, and I'm a pretty decent php programmer and can handle the SQL update once I get the value, but I just don't know enough about vbulletin to grab that new thread id once it is added. Can someone help me here? I have looked at the article How to: Add additional fields but it seems add your field to the main thread table via the internal query update... it says nothing about grabbing data for your own table. :confused: I hope this makes sense, and thanks! |
Anybody? :erm:
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=245608" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=245608</a>
its the number in the url m8 so this thread id is 245608 |
I understand that part... but how can I grab that number with some custom php code in a plugin at the newthread_post_complete hook?
Thanks! |
$newpost['threadid']
$threadinfo['threadid'] |
$newpost worked. Thank you!
|
All times are GMT. The time now is 02:30 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:
|