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)

deeshay 06-14-2010 12:35 PM

Thank you very much :)

Quote:

Originally Posted by bananalive (Post 2052595)
Form Hook: Before Submit:
PHP Code:

if ($qo['89'] == 1)
{
/* first dropdown option forumid*/
$form['forumid'] = 87;
}
elseif (
$qo['89'] == 2)
{
/* second dropdown forumid*/
$form['forumid'] = 88;
}
elseif (
$qo['89'] == 3)
{
$form['forumid'] = 89;


where 89 is the question hash


bananalive 06-14-2010 02:52 PM

Quote:

Originally Posted by sean-zigster (Post 2053301)
is there anyway we can make the Columns list alphabetically ? by clicking a button ?

Yes, if your browser supports JavaScript.

Just click on the columns and it will sort table.

bananalive 06-14-2010 02:52 PM

Quote:

Originally Posted by vilhiem (Post 2052839)
Thanks!

And would I be correct to assume that I could use more complex calculations ... for instance if I want to show % difference between two values ...?

Yes

bananalive 06-14-2010 03:59 PM

Quote:

Originally Posted by Dragonsys (Post 2052784)
This is awesome and just what I am needing for one of my customer's vBulletin site.

I have one request.

You currently have this with the ability to format the output of the form, but would it be possible to be able to format the display of the form itself?

For example:
I have a form requesting a mailing address, which has 4 questions related to it (Street, City, State, Zip). Currently this form would have each question on a separate line, but it would be nice if the City, State & Zip were on the same line.

Input Current:
{qn_1}: {qo_1}
{qn_2}: {qo_2}
{qn_3}: {qo_3}
{qn_4}: {qo_4}

Wanted Input:
{qn_1}:
{qo_1}
{qo_2}, {qo_3} {qo_4}

Similar to how you can customize the output display.

In the next version, I've added address question type, which you could customise.

Quote:

Also, the ability to have other user information (such as email) automatically entered from their vBulletin profile, such as how you can get their vb username inserted, would be absolute icing!
Create Custom Question with the following php code:

PHP Code:

$answer '<textarea cols="40" rows="3" class="textbox" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '">' $vbulletin->userinfo[email] . ' </textarea>'

or
PHP Code:

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

First one is multi-line, second one is single lined

bananalive 06-14-2010 04:03 PM

Quote:

Originally Posted by Veer (Post 2052619)
So how do I fix it?

  1. Find in template form_view
    HTML Code:

    <div class="blocksubhead restore">{vb:raw form.description}</div>
  2. Replace with:
    HTML Code:

    <div class="blocksubhead restore" style="font-weight: normal;">{vb:raw form.description}</div>

Dragonsys 06-14-2010 05:03 PM

Quote:

Originally Posted by bananalive (Post 2053546)
In the next version, I've added address question type, which you could customise.


Create Custom Question with the following php code:

PHP Code:

$answer '<textarea cols="40" rows="3" class="textbox" readonly="readonly" id="q_' $formbit[id] . '" name="' $formbit[id] . '">' $vbulletin->userinfo[email] . ' </textarea>'

or
PHP Code:

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

First one is multi-line, second one is single lined

Awesome, I will try this out. Thanks!
Top notch as always :)

promoprompt 06-15-2010 01:33 PM

Quote:

Originally Posted by promoprompt (Post 2052629)
Hello Bananalive,

great tool, I have a question.
If I use Easy Forms to create new Threads in a Forum, an inserted Picture will always inserted as an attachment.

Could you please insert an option to choose as Attachment, or as an Image direktly to the thread (not as Thumbnail)?
Inserted at the cursorposition.

Thanks in advance.

Any Ideas in this or do you work on this?

Thanks in advance.

Mimirswell 06-15-2010 07:09 PM

Whenever someone previews a form on my site, it will autofill in all dropdown select questions. Given that each form has 20+ and users generally only need to fill in 25% of them, it's extremely problematic.

Welshy2008 06-17-2010 12:36 PM

Quote:

Originally Posted by promoprompt (Post 2052629)
Hello Banalive,

great tool, I have a question.
If I use Easy Forms to create new Threads in a Forum, an inserted Picture will always inserted as an attachment.

Could you please insert an option to choose as Attachment, or as an Image direktly to the thread (not as Thumbnail)?Inserted at the cursorposition.

Pushing it here, I know - But would it be possible, not just to add an inline image, but to add a url to make that image a clickable image (To open a new window to visit that webpage), and to have the option to add alt code to it too, Please, BA?

Many Thanks.

Dragonsys 06-17-2010 02:32 PM

Quote:

Originally Posted by Welshy2008 (Post 2054984)
Pushing it here, I know - But would it be possible, not just to add an inline image, but to add a url to make that image a clickable image (To open a new window to visit that webpage), and to have the option to add alt code to it too, Please, BA?

Many Thanks.

You can use the custom format output to do this. Have one question be the url to said picture.

In your custom output (if the img is Q #1):
PHP Code:

Inline:
[
img]https://vborg.vbsupport.ru/[/img]

clickable:
[
url={qo_1}][img]https://vborg.vbsupport.ru/[/img][/url] 

You can do the same with URLs. I have my forms using this.


All times are GMT. The time now is 03:21 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.02587 seconds
  • Memory Usage 1,773KB
  • 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_html_printable
  • (6)bbcode_php_printable
  • (10)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