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)

apokphp 09-11-2010 06:01 PM

Can I change the name from "Forms" to "Surveys" somehow?

Since I'd like to use it as a survey for a debate board (where members vote on things about the debate thread)...can I do the following w/ it? And if so, how?

1) Display the survey at the top of the thread it refers to for members to take?
2) Display the survey results at the top of the thread after the member has taken the survey?

This is what would really make this mod ideal (at least for our community). Having to go out of the thread to take a survey and view results makes it seem like it is apart from the thread. And I'm tryuing to have this be as integrated as possible.

nakedanvil 09-11-2010 06:38 PM

Strange. The first time I made a test form, the title was bold, centered and size 5. Now when I go back to it, it is just plain. What changed? The BB code is still in "Form Output Top BB code" and I re-saved that section. BB codes ARE working, if I enter them directly in the title they work, but that screws up the breadcrumbs. Just tried in default style-same thing.

Also interesting, while the title is plain, the description is bolded.

Also, what is the best way to enter a block of text?

sulasno 09-12-2010 04:01 AM

can this mod do this ?

Admin or members of a private forum creates a form;

Members fill in the form and it gets posted to a private forum; (admin have no access to the private forum)

bananalive 09-12-2010 04:11 PM

Quote:

Originally Posted by sulasno (Post 2096988)
can this mod do this ?

Admin or members of a private forum creates a form;

Members fill in the form and it gets posted to a private forum; (admin have no access to the private forum)

Yes.

bananalive 09-12-2010 04:22 PM

Quote:

Originally Posted by nakedanvil (Post 2096839)
Strange. The first time I made a test form, the title was bold, centered and size 5. Now when I go back to it, it is just plain. What changed? The BB code is still in "Form Output Top BB code" and I re-saved that section. BB codes ARE working, if I enter them directly in the title they work, but that screws up the breadcrumbs. Just tried in default style-same thing.

Are you using the custom output now?
Quote:

Originally Posted by nakedanvil (Post 2096839)
Also interesting, while the title is plain, the description is bolded.

Also, what is the best way to enter a block of text?

I'm not sure what you mean

bananalive 09-12-2010 04:33 PM

Quote:

Originally Posted by apokphp (Post 2096825)
Can I change the name from "Forms" to "Surveys" somehow?

Change phrase 'forms'
Quote:

Since I'd like to use it as a survey for a debate board (where members vote on things about the debate thread)...can I do the following w/ it? And if so, how?

1) Display the survey at the top of the thread it refers to for members to take?
2) Display the survey results at the top of the thread after the member has taken the survey?

This is what would really make this mod ideal (at least for our community). Having to go out of the thread to take a survey and view results makes it seem like it is apart from the thread. And I'm tryuing to have this be as integrated as possible.
You could use radio buttons questions

And select form action 'save to database'

Then view 'Form Results as Poll'

But it's not possible to embed it in top of thread.

bananalive 09-12-2010 07:27 PM

Quote:

Originally Posted by Lazorbeam (Post 2096246)
Another question... is there a way to allow users to only edit their own forms? The current option allows users to delete or edit other users' forms.

Thanks, appreciated :).

This is going to be added in v4.1.9

Inzvestor 09-12-2010 09:19 PM

Firstly, great product, thanks

However, I'm getting the following error which I think is conflicting withCyb - Advanced Permissions Based on Post Count

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]\includes\class_bootstrap.php(1280) : eval()'d code on line 68

Is there a workaround so that I can run both products?

CharlieDelta 09-12-2010 11:57 PM

Great mod, our community has a great amount of uses for this.

I have one question, excuse me if it seems trivial;
How do I skip a question depending on the previous questions answer? For example,
Q#3. Do you own a microphone? If the answer is "yes" then skip to question #5. If the answer is "no" then on to question #4.
Q#4. When do you plan on purchasing a microphone?

Thank you in advance.

bearcub 09-13-2010 12:29 AM

Form failed to submit. The following error(s) occured:
The message you have entered is too short. Please lengthen your message to at least 10 characters.

The above is all I get when I try to post a form. All field minimums are set to zero.

sulasno 09-13-2010 01:20 AM

Quote:

Upload the XML file for the form from your computer



This mod is definitely a 5

sulasno 09-13-2010 04:27 AM

for Address; how do I change the default from

City
State
Zip Code

to something else?

apokphp 09-13-2010 01:48 PM

Quote:

Originally Posted by bananalive (Post 2097196)
Change phrase 'forms'

You could use radio buttons questions

And select form action 'save to database'

Then view 'Form Results as Poll'

But it's not possible to embed it in top of thread.

OK, thanks.

However...

How do I have the member be sent back to the thread that the form refers to? I'm just not sure how to code it.

That is, if the form is about thread X...when the user completes the form, I'd like them to be sent immediately to thread X upon submission.

bananalive 09-13-2010 02:03 PM

Quote:

Originally Posted by apokphp (Post 2097556)
How do I have the member be sent back to the thread that the form refers to? I'm just not sure how to code it.

That is, if the form is about thread X...when the user completes the form, I'd like them to be sent immediately to thread X upon submission.

Edit Form -> After Form is Submitted
  1. Redirect user after form is submitted : Yes
  2. URL of webpage user is redirected to: http://yourforum.com/forums/showthread.php?t=X

bananalive 09-13-2010 02:06 PM

Quote:

Originally Posted by sulasno (Post 2097413)
for Address; how do I change the default from

City
State
Zip Code

to something else?

Either edit the phrases:
  • address_line1
  • address_line2
  • address_city
  • address_state
  • address_zipcode

Or edit template: form_formbit_address

bananalive 09-13-2010 02:07 PM

Quote:

Originally Posted by bearcub (Post 2097356)
Form failed to submit. The following error(s) occured:
The message you have entered is too short. Please lengthen your message to at least 10 characters.

The above is all I get when I try to post a form. All field minimums are set to zero.

This is not due to the field lenths but the whole form output length. (So the thread/post you are trying to post is less than 10 characters)

bananalive 09-13-2010 02:14 PM

Quote:

Originally Posted by CharlieDelta (Post 2097343)
Great mod, our community has a great amount of uses for this.

I have one question, excuse me if it seems trivial;
How do I skip a question depending on the previous questions answer? For example,
Q#3. Do you own a microphone? If the answer is "yes" then skip to question #5. If the answer is "no" then on to question #4.
Q#4. When do you plan on purchasing a microphone?

Thank you in advance.

If you make question 4 non-compulsory and then add the following to Form Hook: Before Submit

PHP Code:

if ($qo['3']==$vbphrase['no'] && !$qo['4'])
{
$incompleteqs[] = $qn['4'];
$complete false;



bananalive 09-13-2010 02:16 PM

Quote:

Originally Posted by Inzvestor (Post 2097300)
Firstly, great product, thanks

However, I'm getting the following error which I think is conflicting withCyb - Advanced Permissions Based on Post Count

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]\includes\class_bootstrap.php(1280) : eval()'d code on line 68

Is there a workaround so that I can run both products?

At what point is the error occurring? when you view a form? when you submit a form?

Shamil. 09-13-2010 02:19 PM

Just wandering, could I make the form public, then post information to it, from a script so:

Post data from a form on the main site, to the form on the forum (which is protected by vB permissions from guests).

Basically, can I interface with the forum without the user having to visit the form on the forum, or will I have CSRF issues?

apokphp 09-13-2010 02:19 PM

Amazing support banana. While this is not exactly what I am looking for, I'm sure I'll find a use for it and do appreciate the hard work and constant support you give to your product.

Great job man.

bananalive 09-13-2010 02:24 PM

Quote:

Originally Posted by ct2k7 (Post 2097579)
Just wandering, could I make the form public, then post information to it, from a script so:

Post data from a form on the main site, to the form on the forum (which is protected by vB permissions from guests).

Basically, can I interface with the forum without the user having to visit the form on the forum, or will I have CSRF issues?

It would not bypass the permissions of the form on the forum. So non-registered users would receive a no permission message on submitting the form.

Inzvestor 09-13-2010 03:21 PM

Thanks for your speedy response. The error is occurring when trying to create a form from the Quick Links tab

When I disable Cyb - Advanced Permissions Based on Post Count the error disappears

CharlieDelta 09-13-2010 03:27 PM

Quote:

Originally Posted by bananalive (Post 2097573)
If you make question 4 non-compulsory and then add the following to Form Hook: Before Submit

PHP Code:

if ($qo['3']==$vbphrase['no'] && !$qo['4'])
{
$incompleteqs[] = $qn['4'];
$complete false;



Thanks for the help bananalive. I pasted this code in and ensured the question numbers matched but it is allowing me to submit the form even though the answer to q#3 is no. What question type should I be using? I have tried several different.

bananalive 09-13-2010 03:37 PM

Quote:

Originally Posted by Inzvestor (Post 2097614)
Thanks for your speedy response. The error is occurring when trying to create a form from the Quick Links tab

When I disable Cyb - Advanced Permissions Based on Post Count the error disappears

The problem is with one of 'Cyb - Advanced Permissions Based on Post Count' plug-ins but there's an easy solution:

Edit plugin: Cyb - APBOUPC - G1 (CT)

Replace PHP Code with:
PHP Code:

if ($vbulletin->options['apboupc_global_enable'] AND (THIS_SCRIPT=='misc'))
        {
            
$globaltemplates array_merge((array)$globaltemplates, array('cyb_apboupc_globalset''cyb_apboupc_globalset_currbit'));
        } 


bananalive 09-13-2010 03:41 PM

1 Attachment(s)
Quote:

Originally Posted by CharlieDelta (Post 2097615)
Thanks for the help bananalive. I pasted this code in and ensured the question numbers matched but it is allowing me to submit the form even though the answer to q#3 is no. What question type should I be using? I have tried several different.

Make sure you are using the correct question hash's, see screenshot

This works for question type 2: 'Yes/No Question'

Inzvestor 09-13-2010 03:45 PM

Superb. Less than 15 minutes from issue to resolution. That is the best IT / software support I have received

Now working too. Thanks for nailing it so quickly

Shamil. 09-13-2010 08:20 PM

Quote:

Originally Posted by bananalive (Post 2097586)
It would not bypass the permissions of the form on the forum. So non-registered users would receive a no permission message on submitting the form.

Could permissions be set that only the forms are accessible to guests?

bananalive 09-13-2010 08:29 PM

Quote:

Originally Posted by ct2k7 (Post 2097758)
Could permissions be set that only the forms are accessible to guests?

Yes, you can set usergroup permission on a per form basis when editing form

bestword 09-13-2010 11:01 PM

what is the change from 4.1.7 to 4.1.9?

bearcub 09-14-2010 12:30 AM

Quote:

Originally Posted by bananalive (Post 2097568)
This is not due to the field lenths but the whole form output length. (So the thread/post you are trying to post is less than 10 characters)

Corrected thank you.

nakedanvil 09-14-2010 01:49 AM

Quote:

Originally Posted by bananalive (Post 2097190)
Are you using the custom output now?


I'm not sure what you mean

1) Do you want to look at it? OK, I set permissions so you can view: HERE Just playing with the mod right now, dummy content.

2) I mean just adding some text (not a question) in the form.

sulasno 09-14-2010 01:53 AM

This mod should be part of vBulletin or at least be an option for the Admins

bananalive 09-14-2010 08:28 AM

Quote:

Originally Posted by bestword (Post 2097822)
what is the change from 4.1.7 to 4.1.9?

'vBulletin Options -> Easy Form Options' usergroup permissions have been made easier.

New option of only allowing users to edit/delete their own forms.

Collapsible Form Categories

New buttons at top of Form to easy editing/ result viewing

bestword 09-14-2010 08:32 AM

There would be better if the Categories could have (unlimited) sub Categories

bananalive 09-14-2010 08:44 AM

Quote:

Originally Posted by nakedanvil (Post 2097892)
1) Do you want to look at it? OK, I set permissions so you can view: HERE Just playing with the mod right now, dummy content.

2) I mean just adding some text (not a question) in the form.

1. The title looks fine to me?

2. Create Custom Question with the following PHP Code:
PHP Code:

$text "some text here...";

$answer $text'<textarea id="q_' $formbit[id] . '" name="' $formbit[id] . '" rows="1" style="visibility: hidden;">' $text  '</textarea>'


riskofficer 09-14-2010 09:10 AM

Hello, bananalive!

My base already has more then 400 entries, each entry has more then 10 columns, some cells could have a lot of chars, so excel export prepare file for 30 seconds now. Could you please give an option to turn off live export, but prepare export file by schedule?

Question 2. For example I had one of the option in drop-down menu named EG1, now i want to rename it to EG1-1 (EG1 -- is incorrect name), how to mass change it in base field which are already filled with wrong name?

Question 3. How to add "edit" link to thread post by easyform?

Question 4. If I delete one question for example "date", and there are a lot of answers on this question, will easyforms delete everything from base? Or it will affect only on new answers? And if so, how to delete all answers with question?

Thank you!

bananalive 09-14-2010 11:08 AM

Quote:

Originally Posted by riskofficer (Post 2098019)
Hello, bananalive!

My base already has more then 400 entries, each entry has more then 10 columns, some cells could have a lot of chars, so excel export prepare file for 30 seconds now. Could you please give an option to turn off live export, but prepare export file by schedule?

Question 2. For example I had one of the option in drop-down menu named EG1, now i want to rename it to EG1-1 (EG1 -- is incorrect name), how to mass change it in base field which are already filled with wrong name?

Question 3. How to add "edit" link to thread post by easyform?

Question 4. If I delete one question for example "date", and there are a lot of answers on this question, will easyforms delete everything from base? Or it will affect only on new answers? And if so, how to delete all answers with question?

Thank you!

1. I'm not sure what you mean? (In v4.2.0 I'm adding option to export by last X results which would decrease time taken to export your results)

2. It would only affect new answers. You would have to manual edit each result and change it or use phpmyadmin and do a mysql replace() query

Code:

update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');
3. If you uncheck 'Save to Database' in Edit Form

Then add the following code to Form Hook: Before Submit:

PHP Code:

    if ($complete && !$show['editing']) 
    { 
        
$sdata serialize($qo); 
        
$db->query_write("INSERT INTO " TABLE_PREFIX "formresults 
        (fid, userid, username, time, title, output, sdata)
        VALUES ('"
.$form[fid]."', '".$vbulletin->userinfo['userid']."', '".$db->escape_string($vbulletin->userinfo['username'])."', ".TIMENOW.", '".$db->escape_string($threadtitle)."', '".$db->escape_string($formoutput)."', '".$db->escape_string($sdata)."') 
        "
); 
        if (
$form[submitmessage]) 
        { 
            
$errormessage $form[submitmessage]; 
        } 
        else 
        { 
            
$errormessage "Form was submitted successfully.";
        } 
         
        
$formoutput .= "\r\n\r\n[url]http://testsite/forums/misc.php?do=editformresult&id=" $db->insert_id() . "&fid=" $fid "[/url]"
    } 

4. No if you delete a field it will not affect results already submitted, but it will remove the column from the form results table

riskofficer 09-14-2010 11:18 AM

Thank you!

Im sorry for my english, I will try to paraphrase.

1. Cron job, that will generate file by schedule, users can download only that file. Just an idea. Your suggestion is greate!

2. Thank you, is it possible to code that into Easyforms? So if I change the name of option, it will change it in base?

3. No-no, I meant only hyperlink to edit form result in database. We have this hyperlink in Form Results, how to add it to posts?

4. Thank you! And from export, yes?

sulasno 09-14-2010 02:03 PM

I hope suggestion to add sections to the form would be considered;

eg

Personal

<questions>

Work details

<questions>

Hobbies

<questions>

CharlieDelta 09-14-2010 02:07 PM

Quote:

Originally Posted by bananalive (Post 2097622)
Make sure you are using the correct question hash's, see screenshot

This works for question type 2: 'Yes/No Question'

Of course! Thanks bananalive, works like a charm. Great support!!!!


All times are GMT. The time now is 08:15 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.02590 seconds
  • Memory Usage 1,878KB
  • 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_code_printable
  • (5)bbcode_php_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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