Hey All,
I've seen several people ask how to get the dropdown menus to determine what thread to respond to using this hack.
I "think" I figured it out after much cussing lol...
I wound up NOT having to declare any new variables, and NOT having to modify the "form" template. All I did was pretty much what I had been working on previously, but called it slightly differently since the calls I was making were causing SQL to panic because of the array usage.
Here's the code if you're interested: Replace the $formreplythreadid = "XX"; (in the Form Plugin - NOT the template) with:
Code:
//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no
$formreply = "1";
if ($dropdownanswer1 == 'Mage'){
$formreplythreadid = "43";}
if ($dropdownanswer1 == 'Warlock'){
$formreplythreadid = "34";}
if ($dropdownanswer1 == 'Warrior'){
$formreplythreadid = "41";}
if ($dropdownanswer1 == 'Rogue'){
$formreplythreadid = "42";}
if ($dropdownanswer1 == 'Priest'){
$formreplythreadid = "40";}
if ($dropdownanswer1 == 'Hunter'){
$formreplythreadid = "46";}
if ($dropdownanswer1 == 'Paladin'){
$formreplythreadid = "45";}
if ($dropdownanswer1 == 'Shaman'){
$formreplythreadid = "44";}
//EXISTING THREAD ID FOR FORM TO REPLY IN
Obviously, you would want to replace the numerics I have here with the appropriate threads to your forums. I would "assume" that posting to a forum would follow a similar pattern. As you can see, I use this form for recruiting purposes for World of Warcraft *grin*. The single quotes and the literal term of what the variable should be were the key apparently. Thanks for all the help - I hope it finds you well =)