The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
New Thread - Force Update on Post Table
I am creating a plugin that will have a checkbox in the newthread template. I want to setup a new plugin, but not sure what hook to use (I have tried a lot of them based on the newthread.php and functions_newpost.php) to update a value in the post table (not thread table) column to set to 1.
Thanks in advance! |
#2
|
||||
|
||||
You're probably trying to find newthread_post_complete.
|
#3
|
|||
|
|||
I tried putting the below in newthread_post_complete, but it didn't update the corresponding post column "homepage" in the post table to 1 when the checkbox was checked:
PHP Code:
--------------- Added [DATE]1248704503[/DATE] at [TIME]1248704503[/TIME] --------------- I actually did it by using newpost_complete and a custom DB query: PHP Code:
|
#4
|
|||
|
|||
Did you validate homepage before??
|
#5
|
|||
|
|||
Yes, I did that in newthread_post_start:
PHP Code:
|
#6
|
|||
|
|||
No, you have vlaidate fields before:
threadfpdata_start PHP Code:
|
#7
|
|||
|
|||
Yes - I also had that in place. Sorry, didn't know what you meant. Also, I noted in the second reply that I got it working. Thanks though!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|