![]() |
Can't get info for custom thread field to save to DB
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') Code:
$vbulletin->input->clean_array_gpc('p', array('newfield', TYPE_INT)); Code:
$this->validfields['newfield'] = array(TYPE_INT, REQ_YES); Code:
$this->validfields['newfield'] = array(TYPE_INT, REQ_YES); |
Where are you setting the value for $post['newfield']?
|
All times are GMT. The time now is 10:03 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:
|