vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Easy Forms v4.x - Create a form or multiple forms without php or html knowledge (https://vborg.vbsupport.ru/showthread.php?t=234385)

bananalive 03-12-2011 07:04 PM

Quote:

Originally Posted by Internetcafe (Post 2172545)
Great addition to the forum .. thanks.

Question which I hope someone can with :-
Creating a form as a Vendors agreement.
1/ Your Company Name .. Single line text field
2/ Vendors Agreement .. Custom
3/ Comments .. Multi-line text field
4/ Agree to agreement .. yes/no question

When form is submitted, everything but the agreement is submitted but the only place I could place the agreement is in the 'custom' description box. I need that agreement submitted with the form !?

Thanks

I don't understand. Are you using custom output?

markb5900 03-12-2011 07:44 PM

Quote:

Originally Posted by bananalive (Post 2172651)
You'll need to edit template form_list_top and/or form_list_cat.

Thanks

bananalive 03-12-2011 08:13 PM

Quote:

Originally Posted by ascroft (Post 2172180)
Thank you - this is all good. Nearly there.

My one remaining issue is to do with the drop down list of the forums in the custom question (now #1 with prefix #2 question and yes I do have a default forum to get the prefixes from) and filtering using an array. I am using:

$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
if (!in_array($qo['forumid'], array(53,9999,34,55,65)))
{
continue;
}
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

However I still don't get any values displayed - the drop down list is empty - would you mind please checking the syntax for this? (I am launching the form from forum 53 by the way)

Finally - one unrelated question - is it possible to display the prefix in the custom form output - I don't see a variable name for it and wondered.

Many thanks for your help.

Try this: (I've altered line 4)

PHP Code:

$answer "<select name=\"$formbit[id]\" id=\"q_" $formbit[id]  . "\">";
foreach (
$vbulletin->forumcache AS $forumid  => $forum)
{
if (!
in_array($forumid, array(53,9999,34,55,65)))
{
continue;
}
if (
$qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>"

Have you tried using the question hash of the prefix question?

Internetcafe 03-13-2011 12:25 PM

Quote:

Originally Posted by bananalive (Post 2172655)
I don't understand. Are you using custom output?

Custom 'form' template used to create the agreement.
The 'description' box of that template used to add the vendor agreement text.
The custom template added to other already listed elements to complete the form.

All other elements submit as required, but the agreement text does not.

webmaster74 03-14-2011 12:48 AM

hi. it has been a while that I am looking at this mod and would like to know one thing:

can this mod allow the creation of mutliple choice questions and answers that would allow my members to learn new stuff by taking virtual quizzes ?????

Scan Cape Cod 03-14-2011 06:35 PM

I'm running 4.1.2 and the latest version of this mod, which is fantastic. Internet Explorer 8 seems to be having some issues with drop-down menus though...confirmed by two different PC's. The drop-down is only showing the first character of the choices.

It works fine in IE9. Is this an issue anyone else is having? I searched this thread but didn't see anything. As far as I can tell this has only come up after I upgraded to 4.1.2 and the latest version of the mod.

Thanks.

mrbigandwonderf 03-15-2011 12:36 PM

I have a question.... hopefully an easy solution.

Is there a way to have the text editor with the insert picture button. When i chose text editor as an option it appears to be missing.

Everything thing is working great and would love to go live with the forms but this is my missing link to making this happen.

Any help is greatly appreciated

bananalive 03-15-2011 07:06 PM

Quote:

Originally Posted by mrbigandwonderf (Post 2173598)
I have a question.... hopefully an easy solution.

Is there a way to have the text editor with the insert picture button. When i chose text editor as an option it appears to be missing.

Everything thing is working great and would love to go live with the forms but this is my missing link to making this happen.

Any help is greatly appreciated

AdminCP -> vBulletin Options -> BB Code Settings -> Allow [IMG] Code in Non Forum Specific Areas -> Yes

bananalive 03-15-2011 07:07 PM

Quote:

Originally Posted by Scan Cape Cod (Post 2173340)
I'm running 4.1.2 and the latest version of this mod, which is fantastic. Internet Explorer 8 seems to be having some issues with drop-down menus though...confirmed by two different PC's. The drop-down is only showing the first character of the choices.

It works fine in IE9. Is this an issue anyone else is having? I searched this thread but didn't see anything. As far as I can tell this has only come up after I upgraded to 4.1.2 and the latest version of the mod.

Thanks.

Which dropdowns are you having an issue with?

bananalive 03-15-2011 07:09 PM

Quote:

Originally Posted by Internetcafe (Post 2172830)
Custom 'form' template used to create the agreement.
The 'description' box of that template used to add the vendor agreement text.
The custom template added to other already listed elements to complete the form.

All other elements submit as required, but the agreement text does not.

If the agreement text is not included within an answer, for instance if it is in a question description, then it wouldn't go through to the form result


All times are GMT. The time now is 11:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02790 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete