The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Copy forms in MySQL - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Copy forms in MySQL (/showthread.php?tid=1676)



Copy forms in MySQL - Jan - Oct 7th, 2011

Hello,

First thanks to Ben and Joseph.
They offer good help backstage.

Now another question.

How can I copy complete forms in phpMyAdmin?
I know, there is a simple copy button.

What I need to know is witch fields I need to copy to make a complete form work in formtools.
I can change ID numbers of the forms myself and then import again to MySQL.
What more do I need to change?

(the reason: I give every user his/her own form so it stays private. It is just a lot of work to make new forms over and over again..)

Thanks,

Jan



RE: Copy forms in MySQL - Ben - Oct 7th, 2011

Hi Jan,

Have you checked out the Form Backup module?
http://modules.formtools.org/form_backup/

That might be what you need: it lets you make complete copies of a Form Tools form, so they can be used as backups or to re-assign to different clients.

The problem with doing it with phpMyAdmin is the data and configuration for a single form is spread over multiple tables. You can't just copy over data because the IDs for different tables need to be unique for each form.

The Form Backup module does all the nasty stuff for you: it duplicates the necessary database records and that sort of stuff, so you don't need to worry about it.

Hope this helps!

- Ben



RE: Copy forms in MySQL - Jan - Oct 7th, 2011

Hello Ben,

I go try that.
Thanks a lot!




RE: Copy forms in MySQL - Jan - Oct 9th, 2011

Briljant, it works!

Just one more (maby stupid) question.
Is it somehow possible to copy all forms at once?

I am happy with the module anyway, but maby I can save some more work :-)

Thanks!





RE: Copy forms in MySQL - Ben - Oct 10th, 2011

Hey Jan,

Ooh, good idea! That would make a nice addition to the module. But right now, I'm afraid it's only one by one.

All the best -

Ben