The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Custom Fields on New Thread?
Hello,
I want to add two custom text fields on new thread which will be saved to database for that thread while posting that thread. And, then I want to call those two fields in showthread. How can I do that? I already created two text fields using a plugin at newthread_start hook and they are showing on while creating a new thread. NB: I followed this tutorial, but that one is saving the values with post, not database and that's creating some problems. Thanks |
#2
|
||||
|
||||
That article talks about adding it to the database also.
|
#3
|
||||
|
||||
Amm!! Can you please tell me which part is that?
Sorry for being such a nerd, but I am new to coding. Also, how can I call the values in a custom template? Thanks |
#4
|
||||
|
||||
Well, he just says "Add additional fields values to post/database" He shows and example of adding it to the post message. If you want it in the database, then you will need to add the field to the database and to the datamanager. I know there are other examples of doing that around here if you don't know how to do that.
|
#5
|
||||
|
||||
Quote:
Thanks |
#6
|
||||
|
||||
You really should look through the articles forums. There is a ton of information in there. Just a couple here:
Datamanagers: Objects as Data and Methods [HOW TO] Add custom fields to new threads |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|