Quote:
Originally Posted by bananalive
- Create Custom Question with:
Reference Name: forumid
PHP Code:
PHP Code:
$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] ."\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";
- Edit Form -> Form Hook: Before Submit:
PHP Code:
$forumid = $form['forumid'] = $qo['forumid'];
|
Hi and sorry for the double post!
i use this code in a custom qo! It works! BUT: in the results_table, results_poll and in the output (Thread) the answer of the Question is only the Forum ID (See @ Screens). It it possible to save the Forumtitle and not the Forum id in the Database/ Thread ?
kind regards