Ok, I have tried just about everything I can think of, I get these errors when submitting -
Code:
Warning: Cannot use a scalar value as an array in /includes/functions_newpost.php on line 348
Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 763
This happens when I have send PM enabled. With my addon's for the drop down forum menu.
Here is a snip of my code I have on my form now.
PHP Code:
// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'dropforum1' => TYPE_STR,
'dropforum2' => TYPE_STR,
There is more code after this, this is only the relevent selections.
PHP Code:
// Part 2
$dropforum1 = $vbulletin->GPC['dropforum1'];
$dropforum2 = $vbulletin->GPC['dropforum2'];
There is more code after this, this is only the relevent selections.
PHP Code:
//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
$formforumid = "$dropdownforum1";
$dropforum1 = "2";
$dropforum2 = "4";
Form Template additions
PHP Code:
<tr>
<td class="alt1" valign="middle">
<b>$dropdownforum1</b>:
<td class="alt1" valign="middle" colspan="2">
<select name="dropdownforum1">
<option value="$dropdownforum1" <if condition="$dropdownforum1 == $dropforum1">selected="selected"</if>>$dropforum1</option>
<option value="$dropdownforum1" <if condition="$dropdownforum1 == $dropforum2">selected="selected"</if>>$dropforum2</option>
</select></td>
</td>
</tr>
Form Answers template
PHP Code:
$dropdownforum1
$dropforum1
$dropforum2
I dont know why it isn't working, I'm sure its something small I have missed, I am using Drop Down choices throughout the form, so I know my coding is correct for that on my form. I'm just not sure where I missed something or what, but maybe this can help someone else out.
I'm also willing to pay for service to help me get this form working with the Drop Down Choice for which form to post to.