Hi there - to launch the form from the correct forums I have a plugin that uses:
if (in_array($forumid, array(53,65)))
{
header( 'Location:/listings/misc.php?do=form&fid=8' ) ;
}
These are the same forums as the code in the custom question is using in the form itself i.e.
$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($forumid, array(53,65)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";
Quote:
Originally Posted by bananalive
Have you got added any plugins in the AdminCP using any of the Easy Forms hooks, they may be causing a conflict.
If you make prefix compulsory then it should only accept valid prefixes and won't submit with an incorrect prefix.
|