03-01-2011, 08:19 AM
|
|
|
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by ascroft
Hi there - still keen to find a way to use the same form but called from multiple forums and posting back in to there. I have maybe 40 geographic forums that i am keen to use the same form in.
Thank you.
|
- Edit Form
- Add 'Custom' Question
- Type
- Reference
- 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>";
- Compulsory:
- Form Hook: Form Start:
PHP Code:
$form['forumid'] = $qo['forumid'];
- Form Hook: Before Submit:
PHP Code:
$forumid = $form['forumid'] = $qo['forumid'];
|