![]() |
How to update thread field on new post
I think this should help someone, I posted this as a question but now have it working.
First add the field foobar to the threads table (as an example). This is true/false based field, you will have to add your own checks, e.g who can update foobar etc In the quick reply/new reply template/s add this HTML in the thread management area quick reply area HTML Code:
<label for="qr_foobar"><input type="checkbox" name="foobar" value="1" id="qr_foobar" accesskey="w" tabindex="4" />Please update my Foobar</label> PHP Code:
PHP Code:
PHP Code:
|
Moved to Articles as a "how to".
|
I'm pretty sure you don't have to instantiate a new instance of the Thread datamanager class.
|
I based the code on how vb deals with openclose/sticky threads, when making a new post, so would be interested if we don't have to instantiate another instance of the thread manager class :)
|
All times are GMT. The time now is 01:25 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:
|