![]() |
Update field on new post?
I added a field to the post table and in hook postdata_save, I have (trimmed down for display):
Quote:
It looks like there is threadfpdata_presave but if I do the same thing, it wants to add that field to the thread. I don't have any fields in the thread table or want to alter it, so how do I accomplish this? thanks! |
[s]Setting data in postsave won't save it to the database. By that time, the data has already been updated/created in the database, and you are working with post-processing tasks. You can just update the database with the DB object at postsave:[/s]
Whoops, read the hook wrongly. :p You should have a look at the ThreadPost Data Manager as well (there are a few DMs in that one file). |
All times are GMT. The time now is 04:57 AM. |
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:
|