Quote:
Originally Posted by rayw
I'm trying to modify this form a little bit so that I have a drop down box with a list of 2-3 forums that users can choose to post the information too. I'm not an experienced programmer so I'm having a little trouble getting this working.
Would anyone be willing to post exactly what needs to be modified for this to work correctly?
THanks! 
|
Add to plugin code with NEW dropdown...
Add to proper location...
'dropdownanswer4' => TYPE_STR,
$dropdownanswer4 = $vbulletin->GPC['dropdownanswer4];
HTML Code:
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'answer1' => TYPE_STR,
'answer2' => TYPE_STR,
'radioanswer1' => TYPE_STR,
'radioanswer2' => TYPE_STR,
'radioanswer3' => TYPE_STR,
'radioanswer4' => TYPE_STR,
'radioanswer5' => TYPE_STR,
'radioanswer6' => TYPE_STR,
'radioanswer7' => TYPE_STR,
'dropdownanswer1' => TYPE_STR,
'dropdownanswer2' => TYPE_STR,
'answer3' => TYPE_STR,
'radioanswer8' => TYPE_STR,
'radioanswer9' => TYPE_STR,
'radioanswer10' => TYPE_STR,
'radioanswer11' => TYPE_STR,
'answer4' => TYPE_STR,
'dropdownanswer1' => TYPE_STR,
'answer5' => TYPE_STR,
'answer6' => TYPE_STR,
));
// Part 2
$answer1 = $vbulletin->GPC['answer1'];
$answer2 = $vbulletin->GPC['answer2'];
$radioanswer1 = $vbulletin->GPC['radioanswer1'];
$radioanswer2 = $vbulletin->GPC['radioanswer2'];
$radioanswer3 = $vbulletin->GPC['radioanswer3'];
$radioanswer4 = $vbulletin->GPC['radioanswer4'];
$radioanswer5 = $vbulletin->GPC['radioanswer5'];
$radioanswer6 = $vbulletin->GPC['radioanswer6'];
$radioanswer7 = $vbulletin->GPC['radioanswer7'];
$dropdownanswer1 = $vbulletin->GPC['dropdownanswer1'];
$dropdownanswer2 = $vbulletin->GPC['dropdownanswer2'];
$answer3 = $vbulletin->GPC['answer3'];
$radioanswer8 = $vbulletin->GPC['radioanswer8'];
$radioanswer9 = $vbulletin->GPC['radioanswer9'];
$radioanswer10 = $vbulletin->GPC['radioanswer10'];
$radioanswer11 = $vbulletin->GPC['radioanswer11'];
$answer4 = $vbulletin->GPC['answer4'];
$dropdownanswer3 = $vbulletin->GPC['dropdownanswer3'];
$answer5 = $vbulletin->GPC['answer5'];
$answer6 = $vbulletin->GPC['answer6'];
Lower Plugin code area...> questions...>
HTML Code:
////////////////////////////////////////////////////////////////////////////////////////////////////
//DROP DOWN CHOICES : QUESTION 4 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////
$dropdownquestion4 = "Which forum to post to question here...<<<";
// The following choices must NOT have quotation marks
$dropdownchoice4a = "MLB";
$dropdownchoice4b = "NFL";
$dropdownchoice4c = "NBA";
////////////////////////////////////////////////////////////////////////////////////////////////////
Good Luck