The Arcive of vBulletin Modifications Site. |
|
|
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:
|
|
#2
|
||||
|
||||
|
Moved to Articles as a "how to".
|
|
#3
|
||||
|
||||
|
I'm pretty sure you don't have to instantiate a new instance of the Thread datamanager class.
|
|
#4
|
|||
|
|||
|
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
|
![]() |
|
|