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)

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 06:04 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.02602 seconds
  • Memory Usage 1,764KB
  • 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
  • (2)bbcode_php_printable
  • (5)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