Insert custom thread field into the database
Hi there,
I have a good understanding of the vB templating system and PHP knowledge but I am having trouble working out how I could add a custom field on my thread pages to a new column in the "thread" table.
I know how I could add info to the table using PHP prepared statements but apparently it is better to use vBulletins own database classes however I can't find information on it anywhere!
I also don't know how I would get the generated thread ID to use as a reference when inserting this info or what my custom field would be called, I can't just use $POST['field']. These variables seem to be a mystery.
Advanced vBulletin documentation seems to be pretty scarce am I supposed to guess these variables and class names :S.
Thank you.
|