The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Ok...searched like a good little girl, found this https://vborg.vbsupport.ru/showthrea...t=thread+field, followed it...and nada. It always adds the DB default value of '0', not the radio buttons.
What am I doing wrong?? 1. Added field to DB 2. Added radio buttons to template for new thread (haven't even begun on edits 3. Added hooks: newpost_process Code:
if ($type == 'thread')
{
$dataman->setr('newfield', $post['newfield']);
}
Code:
$vbulletin->input->clean_array_gpc('p', array('newfield', TYPE_INT));
$newpost['newfield'] =& $vbulletin->GPC['newfield'];
Code:
$this->validfields['newfield'] = array(TYPE_INT, REQ_YES); Code:
$this->validfields['newfield'] = array(TYPE_INT, REQ_YES); |
|
#2
|
|||
|
|||
|
Where are you setting the value for $post['newfield']?
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|