![]() |
Custom fields in new thread
I'd like to add a custom field to new threads.
So far I have this. I execute this SQL Query: Code:
ALTER TABLE table ADD ( Table is the name of the vb thread table and var is the name of the field I'm adding. In the template I add this: Code:
<div style="padding:$stylevar[formspacer]px"> newpost_process Code:
if ($type == 'thread') newthread_post_start Code:
$vbulletin->input->clean_array_gpc('p', array('var' => TYPE_STR)); threadfpdata_start Code:
$this->validfields['var'] = array(TYPE_STR, REQ_NO); I think I need to add a new plugin to global_start but I'm not sure. How do I call it? |
Is this supposed to display only in the postbit?
|
yes, in postbit
|
and maybe in showthread
|
Try $threadinfo[var] or $thread[var] in the postbit one of them might work.
|
All times are GMT. The time now is 01:20 AM. |
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:
|