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)

bananalive 07-06-2009 02:37 PM

1 Attachment(s)
Quote:

Originally Posted by hqlman (Post 1842982)
I found a small bug, when writing a description i used inverted commas like: "Introduce Yourself" , on my form the output is as such: "Introduce Yourself"

Im not sure how this bug can be corrected, anyone?

I can remember fixing this.

TRy attached file

bananalive 07-06-2009 03:06 PM

1 Attachment(s)
Quote:

Originally Posted by Quantnet.org (Post 1843010)
I have added a question with date type and it's not compulsory i.e I don't have to choose any date. However, the default format for that date field is already have Jan chosen and if I don't pick any date, it will display the error and prevent me from go to other questions.

Try attached file

bananalive 07-06-2009 03:07 PM

Quote:

Originally Posted by Quantnet.org (Post 1843011)
1) The date output is right now as 3\30\2006, how do I change it to 3/30/2006
2) Which template I need to edit to show the * in red.

1. Edit question and change the date spacer.

2. Findin plugin Easy Forms Part 1:
PHP Code:

$formbit['question'] = $formbit['question'] . "*"

Replace:
PHP Code:

$formbit['question'] = $formbit['question'] . "[color=red]*[/color]"


bananalive 07-06-2009 03:11 PM

Quote:

Originally Posted by steve71 (Post 1843512)
Is it possible to have the "insert image" icon added to the "field using vb editor"?

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

bananalive 07-06-2009 03:15 PM

Quote:

Originally Posted by Quantnet.org (Post 1843540)
Is there any plan in the future to store the form data as fields in the database. It will allow the sort by column in the result table.
I've seen a couple of people asking this so it would be awesome if you can add this feature.

Second, can you add a features for members to come back later to edit/update/finish their answers in the form?
This will have to do with a tracking of how many forms each member submit.

Yes that is included in v3.7

The number of times a user submits each form is recorded with v3.7 but not ability to update answers already submitted

bananalive 07-06-2009 03:18 PM

Quote:

Originally Posted by ConfusedCartman (Post 1843665)
First of all, thanks for the great mod!

I'm having a bit of an issue, though, and since I'm not too well versed in PHP, I may need your help. I'm trying to work around the fact that there's no easy way to offer the user a choice of a prefix (though if there is, let me know - I tried the code you offered earlier on, but it didn't work). Anyway, I'm adding a radio selection in which the top option will include a preset prefix, and the bottom option will not include any prefix. I'm trying to use an if-else combined with a str_replace in order to add the right "prefix" (actually, it's just extra text) when the option is selected.

In Form Hook: Before Submit:
PHP Code:

if ($q[6] == 1)
{
    
$formoutput str_replace("{f4f}""[f4f]F4F:[/f4f]"$formoutput);
} else {
    
$formoutput str_replace("{f4f}"""$formoutput);


{f4f} is the placeholder that I'm using in order to place the text in the right place. I have the {f4f} placeholder in the Thread/ PM/ Email Title field, but it doesn't get replaced when I submit the form - it just remains in the title. I'm not saying it's your fault - if anything, it's probably a product of poor coding on my part. I'm not very familiar with PHP, so I just know enough to get by. Any chance you can help? It would be greatly appreciated. :)

The prefix is a seperate field in thread database table not part of the post. $formoutput is what gets stored as the post and does not contain prefix data.

Quantnet 07-06-2009 04:31 PM

Quote:

Originally Posted by bananalive (Post 1843835)
1. Edit question and change the date spacer.

2. Findin plugin Easy Forms Part 1:
PHP Code:

$formbit['question'] = $formbit['question'] . "*"

Replace:
PHP Code:

$formbit['question'] = $formbit['question'] . "[color=red]*[/color]"


1) One thing I notice is that for the question of date type which is not required, if you don't choose any date, the result will display as //. Can you make it blank if we don't pick any date?
2) I did as told and the question now show like this
PHP Code:

Program:[color=red]*[/color

Example http://www.quantnet.org/forum/misc.php?do=form&fid=1

bananalive 07-06-2009 05:14 PM

1 Attachment(s)
Quote:

Originally Posted by Quantnet.org (Post 1843899)
1) One thing I notice is that for the question of date type which is not required, if you don't choose any date, the result will display as //. Can you make it blank if we don't pick any date?
2) I did as told and the question now show like this
PHP Code:

Program:[color=red]*[/color

Example http://www.quantnet.org/forum/misc.php?do=form&fid=1

1. Import attached file.

2. Woops, should have been html code

Find in plugin Easy Forms Part 1:

PHP Code:

$formbit['question'] = $formbit['question'] . "*"

Replace:

PHP Code:

$formbit['question'] = $formbit['question'] . "<font color=red>*</font>"


Quantnet 07-06-2009 05:26 PM

bananalive,
Thanks, it works.
1) It would be nice to edit this phrase as well to show the red color.
Quote:

Please Note: Questions proceeded by an asterisk (*) are compulsory.
2) Which template do I edit to rearrange the form result table? I like to remove/add another column, for example
3) The sort by column header still does not work. You mentioned about using javascript in 3.7. Is it implemented yet?

Thanks for all your hard work. This is a heck of a mod.

Quantnet 07-06-2009 05:35 PM

Quote:

Originally Posted by bananalive (Post 1843803)
2. No.
3. You can limit how many times a user can submit the form by editing a form.

You answered to No to the question of whether a member can go back and edit/update their partially filled form.

How about give the user the option to delete their forms and enter a new one with updated info. Would it be able to have a Delete/Add button next to the form result table so the user can click to remove one of their form, and replace it with another.

Can AJAX feature be implemented in the future?

You know i'm trying to mold this into the trackitt.com feature so hope you can understand :)


All times are GMT. The time now is 03:51 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.02324 seconds
  • Memory Usage 1,772KB
  • 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
  • (9)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
  • (4)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