vb.org Archive

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

nlwin 07-13-2012 06:18 PM

Hey buddy, this is definitely a great add-on, and I have installed it on my vb3, one of the large boards. All Admins and Mods love this add-on. Would you be considering to add reCaptcha option to your plugin in the future release for vb3 series?

Thanks again for your great contribution.

viper357 07-25-2012 07:26 AM

Hi bananalive, Does this work seamlessly with your Articles mod?

pattycake 08-28-2012 07:05 PM

Quote:

Originally Posted by Vitaly (Post 1708482)
Wow! Helpfile :) . Product seems to become solid :) .

May be, question _content_ macro ? That's not absilutely necessary, but convenient: no needs to duplicate text in template, and no needs to syncronise template when you clarify question text.

Example:

----------
Question1text: {q_1}
Question2text: {q_1}
----------

Will be:
----------
{qn_1}: {q1}
{qn_2}: {q2}
----------

No ideas about macro name. Just an example.

None of this works....
If you put {q_1} in the email body, it gets changed to $[q_1] and does not show the answer to question 1. Ditto for {q1} - shows nothing when the email gets sent.

{qn_1} in the email body does nothing, displays nothing when the email gets sent.

pattycake 08-28-2012 07:46 PM

Quote:

Originally Posted by bananalive (Post 1747872)
$q[1] is the new format for v3.x

Use $qo[1] for drop down menu

$qn[8] to show question 1 eg. Age
$q[8] $qo[8] to show question 1 answer eg. 45

And make sure you are using the # of the question eg. 8 not 2(see screenshot)

I can't for the life of me figure out how to output the question and the answer in the custom email output for a radio button.
I have tried:
{qn_1}
{q1}
{qo_1}
$qo[1]
$qo[1]
{qo1}
$q[1] {a_1}

None of this works.

pattycake 08-28-2012 08:05 PM

Quote:

Originally Posted by pattycake (Post 2360785)
I can't for the life of me figure out how to output the question and the answer in the custom email output for a radio button.
I have tried:
{qn_1}
{q1}
{qo_1}
$qo[1]
$qo[1]
{qo1}
$q[1] {a_1}

None of this works.

Never mind. I figured it out. I was using {q_1} becuase it was the first question in that particular form.
It was question #16 though of ALL questions of ALL forms.
Once I changed the "{q_1}" to "{q_16}", everything worked.

singabaloo 09-12-2012 01:17 PM

I'm using Easy Forms 3.7 on a 3.8.5 VB install. I've had Easy Forms running for a while ands it's been great, but my forms were/are very basic.

The form(s) create a new thread in a forum when they are submitted. At the moment I ask people to fill in their Username, path to their public profile and even do some simple maths (like field 3 = Field 1 - Field2)

Is there a way I can get Easy Forms to populate some of those fields/questions for me instead of asking the User to fill it in ? I imagine {userrname} and something like
Code:

[URL="$vboptions[bburl]/member.php?u=$user_userid"]
for the username and public transport, but I can't work out how I can make the form return these values and add it to the post created by the form submission.

Is there a simple way to do it that I can't see, or is it going to require some PHP coding ?

Simon Lloyd 09-12-2012 01:32 PM

For the username to be entered put this in the php code box for the answer
PHP Code:

$answer '<input type="text" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '" value="' $vbulletin->userinfo[username] . '" />'


singabaloo 09-12-2012 01:37 PM

Thanks, that worked nicely.

I managed to pull gender out too following your example.

Time to try the profile URL.

Thanks again.

singabaloo 09-13-2012 02:54 AM

I keep being impressed by Easy Forms. Thanks bananalive and Simon for the pointer on pulling DB fields out. I even took a leap of faith and found I could get more complicated results. here's my current effort for grabbing the Gender but displaying just for the first letter.

PHP Code:

$tgen $vbulletin->userinfo[field6];
if (
$tgen=='Male') {$gen 'M';
    }
elseif (
$tgen=='Female') {$gen 'F';
    }
else {
$gen '';}
$answer '<input type="text" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '" value="' $gen '" />'

I'm sure someone could cut that down to 1 line but I'm not fussed.

One question I have is the custom layout. What this particular form does is grab information from a user that an admin will use to add to a table we have on the site. It's a bit manual at the moment but if I could some how format the output like this:
Code:

[ url={q_2}]{q_1}[ /url]|{q_3}|{q_4}|{q_5}|{q_6}|{q_7}|[ URL={q_8}]Diary [/URL]
then everyone's life would become a lot easier.

Actually, what would be perfect is to use the default layout and then tack the above example at the bottom so the admin just needs to copy and then paste and it's all done.

I can't find any examples of custom templates that I can start to hack away with so if anyone knows how to do the above, or could point me to some examples, that would be great.

singabaloo 09-17-2012 12:57 AM

Is there any way I can get the "Form Output Top" to include some of the form answers ?

I can get {formtitle} which is a fixed value for each form. Ideally I want to be able to have the form output to parse the values of {q_1}:{q_2}


All times are GMT. The time now is 11:56 PM.

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.02761 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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