View Single Post
  #838  
Old 09-14-2010, 11:08 AM
bananalive bananalive is offline
 
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by riskofficer View Post
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
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01508 seconds
  • Memory Usage 1,792KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete